     
     func playerItemFailedtoPlayToEnd(aNotification: NSNotification) {
         NSLog("AVPlayerItemFailedToPlayToEndTimeNotification \(aNotification)");
-        guard let player = self.player else {
-            return;
-        }
-        
-        playNextVideo(player);
+        
+        playNextVideo();
     }
     
     func playerItemNewErrorLogEntryNotification(aNotification: NSNotification) {

        
        
        ManifestLoader.instance.addCallback { (videos:[AerialVideo]) -> Void in
            self.playNextVideo(player);
        };
    }
    

            return;
        }
        let videoURL = video.url;
        
        let asset = CachedOrCachingAsset(videoURL)
//        let asset = AVAsset(URL: videoURL);
        
        let item = AVPlayerItem(asset: asset);
        
        player.replaceCurrentItemWithPlayerItem(item);
        
        debugLog("playing video: \(video.url)");
