Speed up camera source modal with cached enumeration and instant open

Cache camera enumeration results for 30s and limit probe range using
WMI camera count on Windows. Open source modal instantly with a loading
spinner while dropdowns are populated asynchronously.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 13:35:26 +03:00
parent 9ee6dcf94a
commit ddfa7637d6
7 changed files with 76 additions and 4 deletions

View File

@@ -6,6 +6,11 @@
<button class="modal-close-btn" onclick="closeStreamModal()" title="Close" data-i18n-aria-label="aria.close">&#x2715;</button>
</div>
<div class="modal-body">
<!-- Loading overlay shown while dropdowns are being populated -->
<div id="stream-modal-loading" class="modal-body-loading" style="display:none">
<div class="loading-spinner"></div>
<div class="modal-body-loading-text" data-i18n="streams.modal.loading">Loading...</div>
</div>
<input type="hidden" id="stream-id">
<form id="stream-form">
<div class="form-group">