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

Gaven Henry commented on CB-57:
-------------------------------

I have done a little work on modifying Media plugin to use avplayer for playing 
back URL's on iOS.  This is implemented and working at the repo location below.

I need to tidy it up a bit before submitting a pull request with the updates 
but so far so good, I am using it in my app and streams start playing almost 
instantly and all works as expected so far.

I also want to implement some events for tracking current buffer amount and 
buffer status (empty / full) so that playback can be automatically resumed and 
the user can see buffer status but this would require platform specific changes 
to the media.js so I will hold off on those until after I have a clean PR in.

All current Media functions work (seek, duration, getCurrentPosition, play, 
pause.  Stop just calls pause at the moment as avplayer doesn't seem to have a 
"stop" method.

In the mean time anyone that wants/needs it can just install from this branch 
on my fork:

https://github.com/ghenry22/cordova-plugin-media/tree/background-threading

> Feature request: update media to support streaming
> --------------------------------------------------
>
>                 Key: CB-57
>                 URL: https://issues.apache.org/jira/browse/CB-57
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: Plugin Media
>         Environment: iOS
>            Reporter: Shazron Abdullah
>            Priority: Minor
>
> reported at: https://github.com/phonegap/phonegap-iphone/issues/55
> by: https://github.com/hardeep
> The AVAudioPlayer used to implement iOS media does not support streaming 
> audio.  In order to do that we need to use the Audio Toolbox.   Example and 
> more info here:  
> http://cocoawithlove.com/2009/06/revisiting-old-post-streaming-and.html
> [Original LightHouse 
> ticket](http://phonegap.lighthouseapp.com/projects/20116/tickets/105)
>  This ticket has 0 attachment(s).



--
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