Hook for managing media devices (camera, microphone, speaker).
This hook extracts device management logic from ControlBar, providing:
const { videoDevices, audioDevices, selectedVideoDevice, changeVideoDevice, isChangingVideoDevice,} = useDeviceManagement({ client, labels, setVideoDevice: contextSetVideoDevice, setAudioInputDevice: contextSetAudioInputDevice, setAudioOutputDevice: contextSetAudioOutputDevice,}); Copy
const { videoDevices, audioDevices, selectedVideoDevice, changeVideoDevice, isChangingVideoDevice,} = useDeviceManagement({ client, labels, setVideoDevice: contextSetVideoDevice, setAudioInputDevice: contextSetAudioInputDevice, setAudioOutputDevice: contextSetAudioOutputDevice,});
Hook for managing media devices (camera, microphone, speaker).