OptionaldeviceAn optional flag that causes the https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/devicechange_event|devicechange event to be monitored, automatically requesting updated devices as needed.
Default: true.
OptionalfilterAn optional filter to further limit the results.
the device to process.
true when included, false when excluded.
Default: () => true.
Options for the useMediaDevices hook.