[ https://issues.apache.org/jira/browse/CB-1176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13478376#comment-13478376 ]
Shazron Abdullah edited comment on CB-1176 at 11/13/13 7:36 PM: ---------------------------------------------------------------- Network downloads are sync because of an Apple issue: https://github.com/apache/cordova-ios/blob/2.3.0/CordovaLib/Classes/CDVSound.m#L283 So we synchronously download the media file first. See the File Transfer API to see async download use. was (Author: shazron): Network downloads are sync because of an Apple issue: https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVSound.m#L283 So we synchronously download the media file first. See the File Transfer API to see async download use. > Media.play() freezes app until file has loaded > ---------------------------------------------- > > Key: CB-1176 > URL: https://issues.apache.org/jira/browse/CB-1176 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Affects Versions: 1.9.0 > Reporter: Christoph Pojer > > When calling myMedia.play() with an external Media file, the app fully > freezes until the file can be played back. > Steps to reproduce: > var media = new Media(url, success, error); > media.play(); // Browser freezes. > It would be great if this could be changed so the browser does not freeze. It > would make it easier for the developer to display a loading indicator or > similar to the user for visual feedback. -- This message was sent by Atlassian JIRA (v6.1#6144)