{realm ? `${$siteSettings.site_title} - ${realm.displayName || realm.name}` : $siteSettings.site_title} {#if loading}

Loading stream...

{:else if error && !realm}

Stream Not Found

{error}

Back to Home
{:else if realm}
{#if hasTiledStreams}
{#if totalStreams === 2}
{#if !stats.isLive && !isStreaming && !playerPlaying && !playerInitializing && !playerBuffering}
{#if realm.offlineImageUrl} Stream offline {:else}
{realm.displayName || realm.name}
{/if}
OFFLINE
{/if}
{:else if totalStreams >= 3}
{#if !stats.isLive && !isStreaming && !playerPlaying && !playerInitializing && !playerBuffering}
{#if realm.offlineImageUrl} Stream offline {:else}
{realm.displayName || realm.name}
{/if}
OFFLINE
{/if}
{#if tiledStreams[0]} {/if}
{#if tiledStreams[1]} {:else}
Add stream from terminal
{/if}
{#if tiledStreams[2]} {:else}
Add stream from terminal
{/if}
{/if}
{:else}
{#if !stats.isLive && !isStreaming && !playerPlaying && !playerInitializing && !playerBuffering}
{#if realm.offlineImageUrl} Stream offline {:else}
{realm.displayName || realm.name}
{/if}
OFFLINE
{/if}
{/if}

{realm.displayName || realm.name}

{stats.isLive ? stats.connections : realm.viewerCount} viewers {#if stats.isLive && stats.bitrate > 0} {formatBitrate(stats.bitrate)} {/if} {#if stats.isLive && durationDisplay} {durationDisplay} {/if} {stats.isLive ? 'LIVE' : 'Offline'}
{#if realm.avatarUrl} {realm.username} {:else} {realm.username?.charAt(0).toUpperCase() || '?'} {/if}
{realm.username} {#if stats.isLive && stats.resolution !== 'N/A'}
{stats.resolution}
{/if}
{#if realm.description}
{realm.description}
{/if}
{/if} {#if message}
{message}
{/if}