Make view rspect live size config

This commit is contained in:
Nick Mowen 2022-10-14 09:18:40 -06:00
parent 6c95e78366
commit 8946f09eec

View File

@ -97,10 +97,9 @@ export default function Camera({ camera }) {
if (cameraConfig.live.source == 'restream') { if (cameraConfig.live.source == 'restream') {
player = ( player = (
<Fragment> <Fragment>
<div> <div style={`max-height: ${cameraConfig.live.height}px; max-width: ${liveWidth}px`}>
<VideoPlayer <VideoPlayer
options={{ options={{
preload: 'auto',
autoplay: true, autoplay: true,
sources: [ sources: [
{ {