     
     /// 移除播放进度通知
     private func removeprogressObser(){
-        player.removeTimeObserver(self)
+        //MARK: 注意这里的释放方法，一定要释放。不然那个方法会走很多次
+        player.removeTimeObserver(timerReturn)
     }
     
     /// 计算缓冲时长

    
    deinit {
        removeAllObser()
    }
    
    /// 添加所有通知
    private func addAllObser(){
        playEndObserve() // 播放结束的通知
        progressObser() // 进度
        if let item = player.currentItem{
            addobserToItem(playItem: item) // kvo

    }
    
    /// 添加播放结束通知
    private func addPlayEndObserve()  {
        NotificationCenter.default.addObserver(self, selector: #selector(playend), name: Notification.Name.AVPlayerItemDidPlayToEndTime, object: nil)
    }
    
    func playend()  {
        self.next()
    }
    
    /// 移除通知
    private func removePlayEndObser(){
        NotificationCenter.default.removeObserver(self)
    }
    
