feat: add fast-forward button to player controls
Some checks are pending
V3 Preview Deployment / Deploy-Preview (push) Waiting to run

This commit is contained in:
Kentai Radiquum 2025-03-16 15:54:30 +05:00
parent b0ba6c9efc
commit 563af656a4
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
6 changed files with 770 additions and 21 deletions

View file

@ -11,8 +11,9 @@ import { Spinner } from "../Spinner/Spinner";
import { useUserPlayerPreferencesStore } from "#/store/player";
import HlsVideo from "hls-video-element/react";
import MediaThemeSutro from "player.style/sutro/react";
import MediaThemeSutro from "./MediaThemeSutro";
import { getAnonEpisodesWatched } from "./ReleasePlayer";
import { MediaControlBar, MediaSeekForwardButton } from "media-chrome/react";
export const ReleasePlayerCustom = (props: {
id: number;
@ -280,6 +281,9 @@ export const ReleasePlayerCustom = (props: {
poster={playerProps.poster}
></video>
}
<MediaControlBar>
<MediaSeekForwardButton></MediaSeekForwardButton>
</MediaControlBar>
</MediaThemeSutro>
: <iframe src={playerProps.src} className="w-full aspect-video" />}
<EpisodeSelector