{{#if playerIsVisible}}
  {{#if isMini}}
    <div class="player-mini__titlebar js-player-mini__titlebar">
      <h3 class="player-mini__title ellipsis">
        {{#if isContentHosted}}
          {{i18n 'Hosting'}}
        {{else}}
          {{i18n 'Watching'}}
        {{/if}}

        {{#if isContentHosted}}
          <a {{action 'visitHostedChannel'}} class='player-mini__channel js-player-mini__channel' data-tt_medium='mini_player' data-tt_content='maximize'>
            {{targetChannel.displayName}}
          </a>
        {{else}}
          <span>
            {{targetChannel.displayName}}
          </span>
        {{/if}}
      </h3>
      <div {{action 'hideMiniPlayer'}} class='flex__item player-mini__action close-button close-button--flex js-close-button'>
        {{partial 'svg/chat/close'}}
      </div>
    </div>
  {{/if}}

  {{twitch-player2
    playerName='peristent_player'
    channel=targetChannel
    hostChannel=currentChannel
    video=vodId
    collection=currentCollection
    showTheatre=true
    showInfo=isSubNavExperiment
    canGenerateClips=canGenerateClips
    playerIsPersistent=true
    hasMiniControls=hasMiniControls
    onPlayerInit=(action 'setPlayerComponent')
    handleExitFullscreen=(action 'handleExitFullscreen')
    videoPlayed=(action 'videoPlayed')
    videoPaused=(action 'videoPaused')
    persistenceUpdateHandler=(action 'onPersistenceUpdate')
    videoPlayerContentShowing=(action 'videoPlayerContentShowing')
  }}

  {{#if isMini}}
    <div class="player-mini__controls {{unless isPlaying 'player-mini__controls--force-show'}}">
      <button class="player-mini__btn player-mini__cn-link js-player-mini__expand-channel" {{action 'anchorPlayer'}} data-tt_medium='mini_player' data-tt_content='maximize'>
        {{partial 'svg/player-mini-expand'}}
      </button>
      <button class="player-mini__btn player-mini__playpause" {{action 'togglePlay'}}>
        {{#if isPlaying}}
          {{partial 'svg/player-mini-pause'}}
        {{else}}
          {{partial 'svg/player-mini-play'}}
        {{/if}}
      </button>
    </div>
  {{/if}}
{{/if}}
