     }
 
     open var fullscreenDisabled: Bool {
-        return container.options[kFullscreenDisabled] as? Bool ?? false
+        return container?.options[kFullscreenDisabled] as? Bool ?? false
     }
 
     fileprivate var duration: CGFloat {
-        return CGFloat(container.playback?.duration ?? 0.0)
+        return CGFloat(container?.playback?.duration ?? 0.0)
     }
 
     public required init?(coder aDecoder: NSCoder) {

        return 0
    }

    deinit {
        stopListening()
        NotificationCenter.default.removeObserver(self)
    }
}


    fileprivate func pause() {
        playbackControlState = .paused
        container?.playback?.pause()
        trigger(Event.didPause.rawValue)
    }

    fileprivate func play() {
        playbackControlState = .playing
        container?.playback?.play()
        trigger(Event.playing.rawValue)
    }

    fileprivate func stop() {
        playbackControlState = .stopped
        container?.playback?.stop()
        trigger(Event.didStop.rawValue)
    }

