Add device validation before using saved audio device
- Validate device has supported output configs before using - Fall back to default if saved device is invalid - Reduces polling frequency to 10 seconds
This commit is contained in:
1 parent
f6b2b07f5d
commit
3fd3d25bdc
2 files changed
+25
-6
No files matched your search
@@ -61,8 +61,8 @@
|
||||
onMount(() => {
|
||||
loadStatus();
|
||||
|
||||
// Poll for updates while playing
|
||||
const interval = setInterval(loadStatus, 5000);
|
||||
// Poll less frequently - only needed to detect settings changes
|
||||
const interval = setInterval(loadStatus, 10000);
|
||||
return () => clearInterval(interval);
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in new issue
Block a user