         defaults.synchronize();
         return !defaults.boolForKey("differentDisplays");
     }
+    
+    static var sharedViews:[AerialView] = []
     
     // MARK: - Shared Player
     

    // MARK: - Playing Videos
    
    func playNextVideo() {
        
        let player = AVPlayer()
        // play another video
        let oldPlayer = self.player
        self.player = player
        self.playerView.player = self.player
        
        if (oldPlayer == AerialView.previewPlayer) {
            AerialView.previewPlayer = self.player
        }
        
        
        let randomVideo = ManifestLoader.instance.randomVideo();
        



@objc(AerialView) class AerialView : ScreenSaverView {
//    var playerView: AVPlayerView!
    var playerLayer:AVPlayerLayer!
    var preferencesController:PreferencesWindowController?
    static var players:[AVPlayer] = [AVPlayer]()
    static var previewPlayer:AVPlayer?
    static var previewView:AerialView?
    
    var player:AVPlayer?
    static let defaults:NSUserDefaults = ScreenSaverDefaults(forModuleWithName: "com.JohnCoates.Aerial")! as ScreenSaverDefaults
