You cannot directly create an AVURLAssetHTTP Live stream for a stream, as described in the Apple AV Foundation Programming Guide . You will need to create AVPlayerItemwith the URL of the stream and create AVPlayer with it
AVPlayerItem *pItem = [AVPlayerItem playerItemWithURL:theStreamURL];
AVPlayer *player = [AVPlayer playerWithPlayerItem:pItem];
AVURLAsset, .
1/ status
[playerItem addObserver:self forKeyPath:@"status" options:0 context:nil];
2/ observeValueForKeyPath:ofObject:change:context:
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object
change:(NSDictionary *)change context:(void *)context {
if ([keyPath isEqualToString:@"status"]) {
AVPlayerItem *pItem = (AVPlayerItem *)object;
if (pItem.status == AVPlayerItemStatusReadyToPlay) {
}
}
}
EDIT: