     }
 
     func playTouched() {
-        container.playback?.seek(0)
-        container.playback?.play()
+        container?.playback?.seek(0)
+        container?.playback?.play()
     }
 
     fileprivate func configureViews() {
-        container.addMatchingConstraints(self)
+        container?.addMatchingConstraints(self)
         addSubviewMatchingConstraints(poster)
 
         addSubview(playButton)

    }

    private func bindDidChangePlayback() {
        listenTo(container, eventName: InternalEvent.didChangePlayback.rawValue) { [weak self] _ in self?.didChangePlayback() }
    }

    fileprivate func playbackStalled() {


    fileprivate func playbackStarted() {
        isHidden = true
        container?.mediaControlEnabled = true
    }

    fileprivate func playbackEnded() {
        container?.mediaControlEnabled = false
        playButton.isHidden = false
        isHidden = false
    }

    fileprivate func playbackReady() {
        if container?.playback?.pluginName == "NoOp" {
            isHidden = true
        }
    }

    override open func destroy() {
        super.destroy()
        Logger.logDebug("destroying", scope: "PosterPlugin")
        Logger.logDebug("destroying ui elements", scope: "PosterPlugin")
        removeFromSuperview()
        Logger.logDebug("destroyed", scope: "PosterPlugin")
    }
}
