add back overlay

This commit is contained in:
wryk 2020-01-18 17:57:02 +01:00
parent 601652709a
commit 852c4c201b
2 changed files with 13 additions and 13 deletions

View File

@ -1,17 +1,17 @@
<div>
<YoutubePlayer
id={$current ? $current.data.id : null}
paused={$paused}
muted={$muted}
volume={$volume}
bind:ready
bind:ended
bind:currentTime
bind:duration
bind:seek={seek}>
</YoutubePlayer>
<div class="embed-container" class:hidden={!ready}>
<YoutubePlayer
id={$current ? $current.data.id : null}
paused={$paused}
muted={$muted}
volume={$volume}
bind:ready
bind:ended
bind:currentTime
bind:duration
bind:seek={seek}
></YoutubePlayer>
<div class="embed-overlay" on:click={() => $paused = !$paused}></div>
</div>

View File

@ -91,7 +91,7 @@
console.log('stateChange', event)
switch (event.data) {
case STATUS.CUED:
case STATUS.UNSTARTED:
ready = true
break