Skip to content

Commit b6bc98b

Browse files
author
Buddy Reno
committed
Don't download file before playing media
1 parent 7693701 commit b6bc98b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ios/CDVSound.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,8 @@ - (void)create:(CDVInvokedUrlCommand*)command
264264

265265
// Pass the AVPlayerItem to a new player
266266
avPlayer = [[AVPlayer alloc] initWithPlayerItem:playerItem];
267+
// don't download whole file before playing
268+
avPlayer.automaticallyWaitsToMinimizeStalling = false;
267269

268270
//avPlayer = [[AVPlayer alloc] initWithURL:resourceUrl];
269271
}

0 commit comments

Comments
 (0)