         case "playbackLikelyToKeepUp":
             do {
                 bufferState = .keepUp
+                print("ready")
             }
             break
         case "playbackBufferEmpty":

        btn.frame = CGRect.init(x: 0, y: 0, width: 50, height: 50)
        btn.backgroundColor = UIColor.purpleColor()
        btn.addTarget(self, action: #selector(MXPlayerViewController.onTapStart), forControlEvents: .TouchUpInside)
        self.view.addSubview(btn)
    }
    func onTapStart() -> Void {
        self.play()
    }

    override func didReceiveMemoryWarning() {

    }
    
    func seekToTime(time: NSTimeInterval) -> Void {
        player.seekToTime(CMTimeMakeWithSeconds(time, Int32(kCMTimeMaxTimescale)), toleranceBefore: CMTimeMakeWithSeconds(0.2, Int32(kCMTimeMaxTimescale)), toleranceAfter: CMTimeMakeWithSeconds(0.2, Int32(kCMTimeMaxTimescale))) { (result) in
            print(result)
        }
    }
