We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6bc98b commit 5cf51e5Copy full SHA for 5cf51e5
src/ios/CDVSound.m
@@ -265,7 +265,10 @@ - (void)create:(CDVInvokedUrlCommand*)command
265
// Pass the AVPlayerItem to a new player
266
avPlayer = [[AVPlayer alloc] initWithPlayerItem:playerItem];
267
// don't download whole file before playing
268
- avPlayer.automaticallyWaitsToMinimizeStalling = false;
+ NSArray *osVersion = [[UIDevice currentDevice].systemVersion componentsSeparatedByString:@"."];
269
+ if ([[osVersion objectAtIndex:0] intValue] >= 10) {
270
+ avPlayer.automaticallyWaitsToMinimizeStalling = false;
271
+ }
272
273
//avPlayer = [[AVPlayer alloc] initWithURL:resourceUrl];
274
}
0 commit comments