mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Only use jsmpeg sizes for jsmpeg live
This commit is contained in:
parent
e39cb5e2f4
commit
adc287b8bc
@ -99,7 +99,7 @@ export default function Camera({ camera }) {
|
||||
if (viewSource == 'mp4') {
|
||||
player = (
|
||||
<Fragment>
|
||||
<div style={`max-height: ${cameraConfig.live.height}px; max-width: ${liveWidth}px`}>
|
||||
<div>
|
||||
<VideoPlayer
|
||||
live={true}
|
||||
options={{
|
||||
@ -124,7 +124,7 @@ export default function Camera({ camera }) {
|
||||
player = (
|
||||
<Fragment>
|
||||
<div>
|
||||
<WebRtcPlayer camera={camera} width={jsmpegWidth} height={cameraConfig.restream.jsmpeg.height} />
|
||||
<WebRtcPlayer camera={camera} />
|
||||
</div>
|
||||
</Fragment>
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user