Posts

Post not yet marked as solved
2 Replies
2.1k Views
AVPlayer take too long time to change status to AVPlayerStatusReadyToPlay==========================================================AVURLAsset *asset = [AVURLAsset assetWithURL:videoURL];AVPlayerItem *item = [AVPlayerItem playerItemWithAsset: asset];AVPlayer *player = [[AVPlayer alloc] initWithPlayerItem:self.currentItem];if ([player respondsToSelector:@selector(automaticallyWaitsToMinimizeStalling)]) player.automaticallyWaitsToMinimizeStalling = NO;if ([player respondsToSelector:@selector(playImmediatelyAtRate:)]) [player playImmediatelyAtRate:1.0];else [player play];
Posted
by mehul.
Last updated
.