 
     @IBAction func togglePlay(sender: UIButton) {
         if playbackControlState == .Playing {
-            container.playback.type() == .Live ? stop() : pause()
+            livePlayback ? stop() : pause()
         } else {
             play()
             scheduleTimerToHideControls()

        var imageName: String
        
        if playbackControlState == .Playing {
            imageName = container.playback.type() == .Live ? "stop" : "pause"
        } else {
            imageName = "play"
        }

    public internal(set) var container: Container!
    public internal(set) var controlsHidden = false
    
    private var bufferPercentage: CGFloat = 0.0
    private var seekPercentage: CGFloat = 0.0
    private var scrubberInitialPosition: CGFloat!
    private var hideControlsTimer: NSTimer!
    private var enabled = false
    private var livePlayback = false
    
    public var playbackControlState: PlaybackControlState = .Stopped {
        didSet {
