Remove chromecast icon by default

This commit is contained in:
Nick Mowen 2023-12-15 07:25:54 -07:00
parent de689d6f56
commit 8992a5f8c0

View File

@ -13,6 +13,7 @@ type VideoPlayerProps = {
forward?: number;
backward?: number;
};
remotePlayback?: boolean;
onReady?: (player: Player) => void;
onDispose?: () => void;
};
@ -21,6 +22,7 @@ export default function VideoPlayer({
children,
options,
seekOptions = { forward: 30, backward: 10 },
remotePlayback = false,
onReady = (_) => {},
onDispose = () => {},
}: VideoPlayerProps) {
@ -49,6 +51,8 @@ export default function VideoPlayer({
videoElement.controls = true;
// @ts-ignore
videoElement.playsInline = true;
// @ts-ignore
videoElement.disableRemotePlayback = remotePlayback;
videoElement.classList.add("small-player");
videoElement.classList.add("video-js");
videoElement.classList.add("vjs-default-skin");