(id)
| 428 | addListener('video-settings-apply', 'click', () => { |
| 429 | // Collect settings from form |
| 430 | const getVal = (id) => { |
| 431 | const el = document.getElementById(id); |
| 432 | return el ? el.value : ''; |
| 433 | }; |
| 434 | videoSettings.videoCodec = getVal('video-codec'); |
| 435 | videoSettings.videoBitrate = parseFloat(getVal('video-bitrate')) || videoSettingsDefaults.videoBitrate; |
| 436 | videoSettings.audioCodec = getVal('audio-codec'); |