()
| 329 | |
| 330 | // Always use default settings (no localStorage persistence) |
| 331 | function loadVideoSettings() { |
| 332 | // Aggressive cleanup of any video-related localStorage keys |
| 333 | const keysToRemove = [ |
| 334 | 'videoRecordingSettings', |
| 335 | 'videoSettings', |
| 336 | 'fastled_video_settings', |
| 337 | 'recording_settings' |
| 338 | ]; |
| 339 | |
| 340 | keysToRemove.forEach(key => { |
| 341 | if (localStorage.getItem(key)) { |
| 342 | localStorage.removeItem(key); |
| 343 | console.log(`Removed old ${key} from localStorage`); |
| 344 | } |
| 345 | }); |
| 346 | |
| 347 | // Always return fresh defaults - no persistence needed |
| 348 | videoSettings = { ...videoSettingsDefaults }; |
| 349 | console.log('Video settings reset to defaults:', videoSettings); |
| 350 | return videoSettings; |
| 351 | } |
| 352 | |
| 353 | // No longer saving to localStorage - always use defaults |
| 354 | function saveVideoSettings() { |
no test coverage detected