mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-07 03:35:26 +03:00
Remove chromecast icon by default
This commit is contained in:
parent
de689d6f56
commit
8992a5f8c0
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user