{device.friendlyName}
{#if application && !application.isIdleScreen}
{application.displayName}
{#if application.statusText !== application.displayName} ยท {application.statusText} {/if}
{/if}
{#if application && !application.isIdleScreen}
dispatch("stop", { device })} > {_("popupStopButtonTitle")}
{:else if isAnyMediaTypeAvailable}
{ isConnecting = true; dispatch("cast", { device }); }} > {#if isConnecting} {_("popupCastingButtonTitle", "")}
{:else} {_("popupCastButtonTitle")} {/if}
{/if}
{ isExpanded = !isExpanded; isExpandedUserModified = true; }} /> {#if isExpanded && mediaStatus}
handleMediaPlayPause()} on:previous={() => handleMediaSkipPrevious()} on:next={() => handleMediaSkipNext()} on:seek={ev => { sendMediaMessage({ type: "SEEK", currentTime: ev.detail.position }); }} on:trackChanged={ev => handleMediaTrackChange(ev.detail.activeTrackIds)} on:volumeChanged={ev => handleVolumeChange(ev.detail)} />
{/if}