AVPlayer を使用してメディア URL を再生しようとすると、エラー コード -11819 で AVPlayerStatusFailed が表示されます。お知らせ下さい。
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change: (NSDictionary *)change context:(void *)context
{
if (context == &AVPlayerItemStatusContext) {
AVPlayerItem *playerItem = (AVPlayerItem *)object;
NSInteger status = [playerItem status];
switch (status) {
case AVPlayerStatusFailed:
{
NSError *error = [playerItem error];
NSLog(@"%s %d\n", __FUNCTION__, [error code]);
.....
}
....
}