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

ASF GitHub Bot commented on CB-13445:
-------------------------------------

ghenry22 commented on issue #149: CB-13445: (ios) Streaming media can take up 
to 8-10 seconds to start - fixed!
URL: 
https://github.com/apache/cordova-plugin-media/pull/149#issuecomment-346538770
 
 
   wrap it like so:
   
   ```
   if ([NSProcessInfo.processInfo 
isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion){10,0,0}]) {
       avPlayer.automaticallyWaitsToMinimizeStalling = NO;
   }
   ```
   
   on OS prior to iOS10 this was the default playback behaviour anyway for 
everything except HLS format streams.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Streaming media in iOS has long load times
> ------------------------------------------
>
>                 Key: CB-13445
>                 URL: https://issues.apache.org/jira/browse/CB-13445
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: cordova-plugin-media
>         Environment: iOS platform within cordova 
>            Reporter: Ashish Mehra
>            Priority: Major
>
> Using the plugin, cordova-plugin-media, one can stream audio/video media. On 
> the iOS front, streaming media can take anywhere from 8-10 seconds to start 
> playing, even if the length of the media is < 10 mins. 
> The culprit here is `automaticallyWaitsToMinimizeStalling` property, that 
> seems to buffer a more than required amount of the media causing load time 
> delays. In some cases, it actually downloads the entire media file before 
> starting and on slow internet connections this can mean load times of > 15 
> seconds.
> Disabling this property should make iOS media load times to almost instant as 
> it will only buffer a default/set amount.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to