[ 
https://issues.apache.org/jira/browse/CB-3353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15263616#comment-15263616
 ] 

Pablo González commented on CB-3353:
------------------------------------

Hi
I found the same issue using the plugin to play streaming in Android and iOS.

In Android I have this code:

{code:javascript}
my_media = new Media($scope.radios[index].url, null, mediaError, mediaStatus);

    var mediaStatus = function (status) {    
            if (status == Media.MEDIA_STARTING) {
                $ionicLoading.show('Loading...');
            } else {
                $ionicLoading.hide();
            }                       
    }
{code}
When the streaming start loading the message is shown. Once start playing the 
status changes and the message is hidden.
Currently the same code does not work for iOS. I could not find any reference 
to MEDIA_STARTING in CDVSound.m

I would be nice to have the same functionality in iOS.

Thanks in advance,
Pablo

> No Media.MEDIA_STARTING status when using media player in iOS
> -------------------------------------------------------------
>
>                 Key: CB-3353
>                 URL: https://issues.apache.org/jira/browse/CB-3353
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media
>    Affects Versions: 2.6.0, 2.7.0
>         Environment: iPhone 5 running iOS version 6.1.3 and 6.1.2
>            Reporter: Jeff Que
>
> After creating a media player object in iOS and calling play() method, the 
> provided mediaStatus function never gets called with the status 
> Media.MEDIA_STARTING. This differs from the Android functionality.
> The issue is in class CDVSound, method "prepareToPlay:withId:" does not send 
> a notification for MEDIA_STARTING



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to