mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-12 02:29:59 +00:00
Remove player state restrictions for play/pause and quick seek buttons
This commit is contained in:
@@ -262,7 +262,7 @@
|
|||||||
<button
|
<button
|
||||||
class="media__backward-button ghost"
|
class="media__backward-button ghost"
|
||||||
title={_("popupMediaSeekBackward")}
|
title={_("popupMediaSeekBackward")}
|
||||||
disabled={!isPlayingOrPaused}
|
disabled={status.playerState === PlayerState.IDLE}
|
||||||
on:click={() =>
|
on:click={() =>
|
||||||
dispatch("seek", { position: currentTime - 5 })}
|
dispatch("seek", { position: currentTime - 5 })}
|
||||||
/>
|
/>
|
||||||
@@ -280,7 +280,6 @@
|
|||||||
status.playerState === PlayerState.PLAYING
|
status.playerState === PlayerState.PLAYING
|
||||||
? _("popupMediaPause")
|
? _("popupMediaPause")
|
||||||
: _("popupMediaPlay")}
|
: _("popupMediaPlay")}
|
||||||
disabled={!isPlayingOrPaused}
|
|
||||||
on:click={() => dispatch("togglePlayback")}
|
on:click={() => dispatch("togglePlayback")}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -288,7 +287,7 @@
|
|||||||
{#if status.supportedMediaCommands & _MediaCommand.SEEK}
|
{#if status.supportedMediaCommands & _MediaCommand.SEEK}
|
||||||
<button
|
<button
|
||||||
class="media__forward-button ghost"
|
class="media__forward-button ghost"
|
||||||
disabled={!isPlayingOrPaused}
|
disabled={status.playerState === PlayerState.IDLE}
|
||||||
title={_("popupMediaSeekForward")}
|
title={_("popupMediaSeekForward")}
|
||||||
on:click={() =>
|
on:click={() =>
|
||||||
dispatch("seek", { position: currentTime + 5 })}
|
dispatch("seek", { position: currentTime + 5 })}
|
||||||
|
|||||||
Reference in New Issue
Block a user