{#if $showCallOverlay}
{#if camera}
{#if emoji}
{emoji}
{:else if loading}
{:else}
{/if}
{/if}
{#if !camera} {#if emoji}
{emoji}
{:else if loading}
{:else}
{/if} {:else}
{ stopCamera(); }} >
{/if}
{#if camera}
{ console.log(e.detail); selectedVideoInputDeviceId = e.detail; await stopVideoStream(); await startVideoStream(); }} >
{:else}
{ await navigator.mediaDevices.getUserMedia({ video: true }); startCamera(); }} >
{/if}
{#if loading} {$i18n.t('Thinking...')} {:else} {$i18n.t('Listening...')} {/if}
{ showCallOverlay.set(false); }} type="button" >
{/if}