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