{#if isOpen}
{ if (e.key === 'Escape' && onClose) onClose(); }} role="dialog" aria-modal="true" aria-labelledby="session-picker-title" tabindex="-1" >
e.stopPropagation()} role="none" >

Cast to Device

{#if $sessions.isLoading && $controllableSessions.length === 0}

Searching for devices...

{:else if $controllableSessions.length > 0}
{#if $selectedSession}
Connected
{#if getSessionIcon($selectedSession.client) === "tv"} {:else if getSessionIcon($selectedSession.client) === "web"} {:else if getSessionIcon($selectedSession.client) === "phone"} {:else} {/if}

{$selectedSession.deviceName}

{$selectedSession.client}

{/if} {#each $controllableSessions as session (session.id)} {#if session.id !== $selectedSession?.id} {/if} {/each}
{:else}

No Devices Found

Start playing media on another Jellyfin client to cast to it from here.

{/if}
{#if $controllableSessions.length > 0}
{#if $selectedSession && $playbackMode.mode === "remote"} {/if}
{$controllableSessions.length} device{$controllableSessions.length !== 1 ? "s" : ""} available
{/if} {#if $isTransferring}

Transferring playback...

{/if} {#if $transferError}
{$transferError}
{/if}
{/if}