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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
