gram wideo tvOS stosując następujący kod:błąd AVPlayer podczas gry na 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];
Ale ja dostaję następujący błąd
ERROR: >aqme> 718: MEMixerChannel::EnableProcessor: failed to open processor type 0x705f6571
jakieś pomysły jak to naprawić ?
Tak, używam go na symulatorze. Myślałem, że tak być może. Niestety nie mam jeszcze apletu TV, aby go przetestować. W każdym razie dzięki. – Wojtek
Miał ten sam błąd w symulatorze, działa poprawnie na urządzeniu. – tagy22
@Wojtek Widziałeś moją odpowiedź? Mam kod działający poprawnie na symulatorze. – ABeanSits