You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/10/08 17:39:07 UTC

[GitHub] [cordova-plugin-media] nickh364 commented on issue #256: Can't get icecast streams to work on iOS

nickh364 commented on issue #256: Can't get icecast streams to work on iOS
URL: https://github.com/apache/cordova-plugin-media/issues/256#issuecomment-539623141
 
 
   > Yes, rolling back to 4.0.0 seems to solve the problem for now..
   
   I ended up tracking down what broke it.
   It looks like it was broke in 5.0.3 with this code on line 270 of the CDVSound.m
   ```
   if ([NSProcessInfo.processInfo isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion){10,0,0}]) {
       avPlayer.automaticallyWaitsToMinimizeStalling = NO;
   }
   ```
   
   I ended up changing that to the code below so it would work for our icecast streams and the podcasts would load faster. then before 5.0.3
   
   ```
   if ([NSProcessInfo.processInfo isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion){10,0,0}] 
   && ![resourcePath hasPrefix:@"https://IcecastServerUrl"]) {
       avPlayer.automaticallyWaitsToMinimizeStalling = NO;
   }
   ```
   
   A better way to do it would probably be to send in a var in the on create to for something like isStream or something like that

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org