Improve default camera player sizing

This commit is contained in:
Nicolas Mowen 2024-02-06 15:22:35 -07:00
parent aefb4bf354
commit deb49df5c9
2 changed files with 2 additions and 4 deletions

View File

@ -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}
/>
);

View File

@ -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%" }}
/>
);
}