VNC-151 Fix for the script

This commit is contained in:
El 2026-01-29 15:39:59 +00:00
parent 08169f624f
commit 660e2f7b99
No known key found for this signature in database
GPG Key ID: 205388FEB607950A

View File

@ -2102,8 +2102,9 @@ sub DefineConfigToCLIConversion {
configKeys => [
KasmVNC::ConfigKey->new({
name => "encoding.video_streaming_mode.codec",
validator => KasmVNC::EnumValidator->new({
allowedValues => [qw(auto h264 h264_vaapi avc avc_vaapi h265 h265_vaapi hevc hevc_vaapi av1 av1_vaapi)]
validator => KasmVNC::PatternValidator->new({
pattern => qr/^(auto|h264|h264_vaapi|avc|avc_vaapi|h265|h265_vaapi|hevc|hevc_vaapi)(,(auto|h264|h264_vaapi|avc|avc_vaapi|h265|h265_vaapi|hevc|hevc_vaapi))*$/,
errorMessage => "must be one of [auto, h264, h264_vaapi, avc, avc_vaapi, h265, h265_vaapi, hevc, hevc_vaapi, av1, av1_vaapi] or a comma-separated list of those values"
})
})
]