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") {
|
||||
player = (
|
||||
<WebRtcPlayer
|
||||
className="rounded-2xl"
|
||||
className="rounded-2xl w-full"
|
||||
camera={cameraConfig.live.stream_name}
|
||||
/>
|
||||
);
|
||||
@ -78,7 +78,7 @@ export default function LivePlayer({
|
||||
if ("MediaSource" in window || "ManagedMediaSource" in window) {
|
||||
player = (
|
||||
<MSEPlayer
|
||||
className="rounded-2xl"
|
||||
className="rounded-2xl w-full"
|
||||
camera={cameraConfig.live.stream_name}
|
||||
/>
|
||||
);
|
||||
|
||||
@ -248,11 +248,9 @@ function MSEPlayer({ camera, className }: MSEPlayerProps) {
|
||||
<video
|
||||
ref={videoRef}
|
||||
className={className}
|
||||
controls
|
||||
playsInline
|
||||
preload="auto"
|
||||
muted
|
||||
style={{ display: "block", width: "100%", height: "100%" }}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user