()
| 364 | |
| 365 | // Show video settings popup |
| 366 | function showVideoSettingsPopup() { |
| 367 | const overlay = document.getElementById('video-settings-overlay'); |
| 368 | const popup = document.getElementById('video-settings-popup'); |
| 369 | if (!overlay || !popup) return; |
| 370 | |
| 371 | // Load current settings |
| 372 | loadVideoSettings(); |
| 373 | |
| 374 | // Set form values |
| 375 | setInputValue('video-codec', videoSettings.videoCodec); |
| 376 | setInputValue('video-bitrate', videoSettings.videoBitrate); |
| 377 | setInputValue('audio-codec', videoSettings.audioCodec); |
| 378 | setInputValue('audio-bitrate', videoSettings.audioBitrate); |
| 379 | setInputValue('video-fps', videoSettings.fps); |
| 380 | |
| 381 | // Update bitrate displays |
| 382 | updateBitrateDisplays(); |
| 383 | |
| 384 | // Show popup |
| 385 | overlay.style.display = 'block'; |
| 386 | popup.style.display = 'block'; |
| 387 | overlay.style.opacity = '0'; |
| 388 | void overlay.offsetWidth; |
| 389 | overlay.style.opacity = '1'; |
| 390 | } |
| 391 | |
| 392 | // Hide video settings popup |
| 393 | function hideVideoSettingsPopup() { |
no test coverage detected