add back overlay
This commit is contained in:
parent
601652709a
commit
852c4c201b
@ -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>
|
||||
|
||||
|
@ -91,7 +91,7 @@
|
||||
console.log('stateChange', event)
|
||||
|
||||
switch (event.data) {
|
||||
case STATUS.CUED:
|
||||
case STATUS.UNSTARTED:
|
||||
ready = true
|
||||
break
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user