             
             if isPlayToTheEnd {
                 isPlayToTheEnd = false
-                seek(target, completion: { 
+                seek(target, completion: {
                     self.play()
                 })
                 controlView.hidePlayToTheEndView()

            if !isPauseByUser {
                play()
            }
            
        case BMPlayerState.bufferFinished:
            autoPlay()

                    pause()
                } else {
                    if isPlayToTheEnd {
                        seek(0, completion: {
                            self.play()
                        })
                        controlView.hidePlayToTheEndView()
