I am using AVPlayer it is working perfectly on device as well, but after suddenly it stopped working on device while it is still working on the simulator. I don’t understand why it stopped working. Please check below code
NSURL *url=[NSURL URLWithString:self.urlStr];
self.audioSound = [[AVPlayer alloc] init];
playerItem = [AVPlayerItem playerItemWithURL:url];
[playerItem addObserver:self forKeyPath:@"playbackBufferEmpty" options:NSKeyValueObservingOptionNew context:nil];
[playerItem addObserver:self forKeyPath:@"status" options:0 context:nil];
[self.audioSound replaceCurrentItemWithPlayerItem:playerItem];
i am not seeing any code for playing video, like
[player play];.Have you written this code?