Provide default value for dashboard audio support (#17495)

* Provide default value for audio support to fix crash

* optional
This commit is contained in:
Josh Hawkins 2025-04-02 07:43:28 -05:00 committed by GitHub
parent 907283b9a4
commit f0b15e1f04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -582,7 +582,8 @@ export default function DraggableGridLayout({
preferredLiveMode={preferredLiveModes[camera.name] ?? "mse"}
isRestreamed={isRestreamedStates[camera.name]}
supportsAudio={
supportsAudioOutputStates[streamName].supportsAudio
supportsAudioOutputStates[streamName]?.supportsAudio ??
false
}
audioState={audioStates[camera.name]}
toggleAudio={() => toggleAudio(camera.name)}