audio/wav data URIs stopped working in Mobile Safari in iOS 5.1
| Originator: | tadpol | ||
| Number: | rdar://11130923 | Date Originated: | 27-Mar-2012 |
| Status: | Open | Resolved: | |
| Product: | Safari | Product Version: | 5.1 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: I am trying to dynamically generate audio data in javascript and then play it. The method is build a wav file and encode it into a data URI. (https://en.wikipedia.org/wiki/Data_URI_scheme) Then playing it by putting the data URI into a HTML5 audio element or by calling open() on it. This works on the desktop, and used to work in older versions of Mobile Safari. Now it just displays a dialog saying "The operation could not be completed" Steps to Reproduce: 1. In Safari on iPod/iPad/iPhone with iOS 5.1 2. Goto http://tadpol.github.com/Avrian-Jump/avrianjump.html 3. Tap on the right arrow button on the lower right hand side of the page. (➜) 4. Get the dialog saying: "The operation could not be completed" Expected Results: Expected that it will play the sound data. Actual Results: Get the dialog saying: "The operation could not be completed" Regression: Prior iOS version 5.0 would play the sound. Notes: A web page doing a very similar thing: http://www.sk89q.com/playground/jswav/
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Duplicate of 8103801