 class vjs.ChromecastComponent extends vjs.Button
   buttonText: "Chromecast"
+  inactivityTimeout: 2000
 
   apiInitialized: false
   apiSession: null

    # Hide the default HTML5 player controls.
    @player_.tech.setControls(false)

    @player_.ready ->
      @player_.currentTime @currentMediaTime
      @player_.play() unless @paused


    @paused = false
    @player_.loadTech "ChromecastTech", {}
    @casting = true

    # Always show the controlbar
    @inactivityTimeout = @player_.options_.inactivityTimeout
    @player_.options_.inactivityTimeout = 0
    @player_.userActive true

  onSessionUpdate: (isAlive) ->
    return unless @apiMedia
