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

View File

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