mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 12:15:25 +03:00
Improve default camera player sizing
This commit is contained in:
parent
aefb4bf354
commit
deb49df5c9
@ -70,7 +70,7 @@ export default function LivePlayer({
|
|||||||
if (liveMode == "webrtc") {
|
if (liveMode == "webrtc") {
|
||||||
player = (
|
player = (
|
||||||
<WebRtcPlayer
|
<WebRtcPlayer
|
||||||
className="rounded-2xl"
|
className="rounded-2xl w-full"
|
||||||
camera={cameraConfig.live.stream_name}
|
camera={cameraConfig.live.stream_name}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
@ -78,7 +78,7 @@ export default function LivePlayer({
|
|||||||
if ("MediaSource" in window || "ManagedMediaSource" in window) {
|
if ("MediaSource" in window || "ManagedMediaSource" in window) {
|
||||||
player = (
|
player = (
|
||||||
<MSEPlayer
|
<MSEPlayer
|
||||||
className="rounded-2xl"
|
className="rounded-2xl w-full"
|
||||||
camera={cameraConfig.live.stream_name}
|
camera={cameraConfig.live.stream_name}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
@ -248,11 +248,9 @@ function MSEPlayer({ camera, className }: MSEPlayerProps) {
|
|||||||
<video
|
<video
|
||||||
ref={videoRef}
|
ref={videoRef}
|
||||||
className={className}
|
className={className}
|
||||||
controls
|
|
||||||
playsInline
|
playsInline
|
||||||
preload="auto"
|
preload="auto"
|
||||||
muted
|
muted
|
||||||
style={{ display: "block", width: "100%", height: "100%" }}
|
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user