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

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

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