You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2014/05/05 23:39:21 UTC

[jira] [Updated] (CB-5378) Media plugin downloads media on main UI thread.

     [ https://issues.apache.org/jira/browse/CB-5378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-5378:
---------------------------------

    Component/s:     (was: iOS)

> Media plugin downloads media on main UI thread.
> -----------------------------------------------
>
>                 Key: CB-5378
>                 URL: https://issues.apache.org/jira/browse/CB-5378
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media
>    Affects Versions: 3.1.0
>            Reporter: Michal Mocny
>
> Reported on the mailing list by Nick Burka:
> "I’ve been implementing a simple Media playback app. It looks something like:
> console.log(’start');
> mediaPlayer = new Media(
>     uri_to_my_mp3_file,
>     mediaSuccess,
>     mediaError,
>     mediaStatus);
> console.log(’end’);
> mediaPlayer.play();
> When the JavaScript executes, it takes 20+ seconds between the ‘start’ and ‘end’ logs. Then when I seekTo() on the playing file, it’s virtually instantaneous. I presume that the Media class is downloading the entire file on instantiation?
> A few other people seem to have the same problem:
> http://stackoverflow.com/questions/19938383/phonegap-build-media-play-takes-a-long-time-to-start-playing
> http://community.phonegap.com/nitobi/topics/phone_gap_media_api_ios_slow_loading
> Any help would be much appreciated."



--
This message was sent by Atlassian JIRA
(v6.2#6252)