             }
             videoPlayer.play()
             loadingView?.stopAnimation()
+            self.bottomView.setPlayButtonState(true)
         }
     }
     

    
    func videoPlayToEnd() -> Void {
        
        self.player?.seek(to: kCMTimeZero)
        bottomView.setPlayButtonState(false)
    }

    fileprivate var bottomView: XRVideoToolBottomView!
    var navigationBar: XRVideoNavigationView!
    fileprivate var pauseByUser: Bool = false
    fileprivate var playStatus: XRVideoPlayerPlayStatus = .playing
    var isLocalResource: Bool = false // 是否是本地资源
    fileprivate var loadingView: XRActivityInditor?
    fileprivate var portraintFrame: CGRect?
