 extension ViewController: PlayerDelegate {
     
     func playerReady(_ player: Player) {
+        print("\(#function) ready")
     }
     
     func playerPlaybackStateDidChange(_ player: Player) {
+        print("\(#function) \(player.playbackState.description)")
     }
     
     func playerBufferingStateDidChange(_ player: Player) {

    }
    
    func player(_ player: Player, didFailWithError error: Error?) {
    }
    
}

        self.view.addSubview(self.player.view)
        self.player.didMove(toParent: self)
        
//        let localUrl = Bundle.main.url(forResource: "IMG_3267", withExtension: "MOV")
//        self.player.url = localUrl
        self.player.url = videoUrl
        
        self.player.playbackLoops = true
