Add persist volume plugin (#2448)

This commit is contained in:
WithoutPants
2022-03-31 08:33:16 +11:00
committed by GitHub
parent 510bec655b
commit 6c3b493323
2 changed files with 32 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import "videojs-seek-buttons";
import "videojs-landscape-fullscreen";
import "./live";
import "./PlaylistButtons";
import "./persist-volume";
import "./markers";
import cx from "classnames";
@@ -164,6 +165,7 @@ export const ScenePlayer: React.FC<IScenePlayerProps> = ({
(player as any).markers();
(player as any).offset();
(player as any).persistVolume();
player.focus();
playerRef.current = player;