fix: do not limit video width in live view

This commit is contained in:
Ramūnas Dronga 2023-11-12 16:57:11 +02:00 committed by Ramūnas Dronga
parent 563fdec211
commit c10cfc1a0b
No known key found for this signature in database

View File

@ -119,7 +119,7 @@ export default function Camera({ camera }) {
if ('MediaSource' in window || 'ManagedMediaSource' in window) { if ('MediaSource' in window || 'ManagedMediaSource' in window) {
player = ( player = (
<Fragment> <Fragment>
<div className="max-w-5xl"> <div>
<video-stream <video-stream
mode="mse" mode="mse"
src={ src={
@ -141,7 +141,7 @@ export default function Camera({ camera }) {
} else if (viewSource == 'webrtc' && restreamEnabled) { } else if (viewSource == 'webrtc' && restreamEnabled) {
player = ( player = (
<Fragment> <Fragment>
<div className="max-w-5xl"> <div>
<WebRtcPlayer camera={cameraConfig.live.stream_name} /> <WebRtcPlayer camera={cameraConfig.live.stream_name} />
</div> </div>
</Fragment> </Fragment>