From 2ecf252a573963c15018519dd5a28e90841a6ef2 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Wed, 25 Sep 2024 15:03:18 +0200 Subject: [PATCH] Fix settings name, disable select --- src/misc/controls/Preview.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/misc/controls/Preview.js b/src/misc/controls/Preview.js index 1078b66..580537e 100644 --- a/src/misc/controls/Preview.js +++ b/src/misc/controls/Preview.js @@ -47,7 +47,7 @@ export default function Control(props) { Enable browser-compatible H.264 stream} checked={settings.enable} onChange={handleChange('enable')} /> - Video Codec} value={settings.video_encoder} disabled={!settings.enable} onChange={handleChange('video_encoder')}> H.264 (libx264) @@ -77,5 +77,6 @@ export default function Control(props) { Control.defaulProps = { settings: {}, + encoders: [], onChange: function (settings, automatic) {}, };