mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 09:59:41 +05:00
feat: add fast-forward button to player controls
Some checks are pending
V3 Preview Deployment / Deploy-Preview (push) Waiting to run
Some checks are pending
V3 Preview Deployment / Deploy-Preview (push) Waiting to run
This commit is contained in:
parent
b0ba6c9efc
commit
563af656a4
6 changed files with 770 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue