         removeCurrentTimeObserver()
         
         lastPlayerTimeObserve = player
-        self.timeObserverToken = player?.addPeriodicTimeObserverForInterval(interval, queue: dispatch_get_main_queue()) { [weak self] time-> Void in
+        self.timeObserverToken = player?.addPeriodicTimeObserver(forInterval: interval, queue: DispatchQueue.main) { [weak self] time-> Void in
             if let mySelf = self {
-                self?.delegate?.playerVideo(mySelf, currentTime: mySelf.currentTime)
-            }
-        }
+                self?.delegate?.playerVideo(player: mySelf, currentTime: mySelf.currentTime)
+            }
+            } as AnyObject?
     }
     
     func playerItemDidPlayToEndTime(aNotification: NSNotification) {

        }
    }
    
    public var urls: [NSURL]? {
        willSet(newUrls) {
            
            resetPlayer()
            guard let urls = newUrls else {
                return

                return
            }
            let newTime = CMTimeMakeWithSeconds(newValue, timescale)
            player!.seek(to: newTime,toleranceBefore: CMTime.zero,toleranceAfter: CMTime.zero)
        }
    }
    public var interval = CMTimeMake(1, 60) {
