Click to play/pause

This commit is contained in:
WardPearce
2025-12-22 06:39:18 +13:00
parent 8adf956ab1
commit 2fa07699fd
2 changed files with 13 additions and 2 deletions
+11 -1
View File
@@ -905,6 +905,16 @@
class:contain-video={!$isAndroidTvStore}
class:tv-contain-video={$isAndroidTvStore}
class:hide={showVideoRetry}
role="presentation"
onclick={(event) => {
if (
event.target &&
event.target instanceof HTMLElement &&
event.target.id === 'player-center'
) {
toggleVideoPlaybackStatus();
}
}}
>
<video
controls={false}
@@ -921,7 +931,7 @@
{#if playerIsBuffering}
<progress class="circle large indeterminate" value="50" max="100"></progress>
{:else if !playerCurrentPlaybackState}
<button class="circle large">
<button class="circle extra" onclick={toggleVideoPlaybackStatus}>
<i>play_arrow</i>
</button>
{/if}
+2 -1
View File
@@ -79,7 +79,8 @@ menu {
@media screen and (max-width: 1000px) {
menu.mobile {
position: fixed !important;
top: 10% !important;
top: 20% !important;
height: 100vh !important;
width: 100% !important;
z-index: 99999;
transform: unset !important;