     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 bufferPercentage: CGFloat = 0.0
+    private var seekPercentage: CGFloat = 0.0
     private var scrubberInitialPosition: CGFloat!
     private var hideControlsTimer: NSTimer!
-    private var enabled: Bool = false
+    private var enabled = false
+    private var livePlayback = false
     
     public var playbackControlState: PlaybackControlState = .Stopped {
         didSet {

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


    @IBAction func togglePlay(sender: UIButton) {
        if playbackControlState == .Playing {
            livePlayback ? stop() : pause()
        } else {
            play()
            scheduleTimerToHideControls()
