AVPlayer cannot remove a time observer that was added by a different instance of AVPlayer

xiaoxiao2021-02-28  104

AVPlayer 

An instance of AVPlayer cannot remove a time observer that was added by a different instance of AVPlayer.

解决办法

- (void)removeTimeObserver{ //[self.player removeTimeObserver:self.playbackTimeObserver]; @try{ [self.player removeTimeObserver:self.playbackTimeObserver]; }@catch(id anException){ //do nothing, obviously it wasn't attached because an exception was thrown } } 问题 原因 重复释放   playbackTimeObserver 

转载请注明原文地址: https://www.6miu.com/read-53896.html

最新回复(0)