{#if $showCallOverlay}
{#if camera}
{#if loading}
{:else if emoji}
{emoji}
{:else}
{/if}
{/if}
{#if !camera} {#if loading}
{:else if emoji}
{emoji}
{: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}