tôi đang chơi một đoạn video trên tvOS sử dụng đoạn mã sau:AVPlayer lỗi khi chơi trên tvOS
NSString *filePath = [[NSBundle mainBundle] pathForResource:name ofType:@"mov"];
NSURL *fileUrl = [NSURL fileURLWithPath:filePath];
self.player = [AVPlayer playerWithURL:fileUrl];
AVPlayerLayer *avPlayerLayer = [AVPlayerLayer playerLayerWithPlayer:self.player];
avPlayerLayer.frame = CGRectMake(0, 0, view.frame.size.width, view.frame.size.height);
[view.layer addSublayer:avPlayerLayer];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(replayMovie:) name:AVPlayerItemDidPlayToEndTimeNotification object:nil];
[self.player play];
Nhưng tôi nhận được lỗi sau
ERROR: >aqme> 718: MEMixerChannel::EnableProcessor: failed to open processor type 0x705f6571
Bất kỳ ý tưởng làm thế nào để sửa chữa nó ?
Vâng, tôi đang chạy trên trình mô phỏng. Tôi nghĩ rằng nó có thể là trường hợp. Đáng tiếc là tôi chưa có Applet TV để kiểm tra nó. Dù sao cũng cảm ơn. – Wojtek
Có lỗi tương tự trong trình mô phỏng, hoạt động tốt trên thiết bị. – tagy22
@Wojtek Bạn có thấy câu trả lời của tôi không? Tôi nhận được mã hoạt động tốt trong trình mô phỏng. – ABeanSits