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

来源:互联网 发布:ubuntu怎样设置中文 编辑:程序博客网 时间:2024/06/10 19:02

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 

原创粉丝点击