the type of media to use.
user
causes media to be obtained via https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia|getUserMediadisplay
causes media to be obtained via https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia|getDisplayMediasee UserMediaState and DisplayMediaState for more information.
Hook that allows the caller to obtain and manage media on behalf of the user.
Most commonly, this is used to access webcams, microphones, or mirrored media.