mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 01:35: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') {
|
if (viewSource == 'mp4') {
|
||||||
player = (
|
player = (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<div style={`max-height: ${cameraConfig.live.height}px; max-width: ${liveWidth}px`}>
|
<div>
|
||||||
<VideoPlayer
|
<VideoPlayer
|
||||||
live={true}
|
live={true}
|
||||||
options={{
|
options={{
|
||||||
@ -124,7 +124,7 @@ export default function Camera({ camera }) {
|
|||||||
player = (
|
player = (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<div>
|
<div>
|
||||||
<WebRtcPlayer camera={camera} width={jsmpegWidth} height={cameraConfig.restream.jsmpeg.height} />
|
<WebRtcPlayer camera={camera} />
|
||||||
</div>
|
</div>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user