Audio/video - Device Selection
To let the user choose between multiple available input / output devices, you can use the <RtkSettings >
component
function DeviceSettings({ open, onClose }) {
return (
<SomeDialogComponent open={open} onClose={onClose}>
<RtkSettings />
</SomeDialogComponent>
);
}
If you added RtkDialogManager
as suggested in the Basic Structure guide, you can also use <RtkSettingsToggle>
component to trigger the inbuilt Dialog.
Extending the last code sample with device selector.