Skip to main content

MediaController

Properties

PropertyModifierTypeDescription
devicesreadonlyIndexedDevicesCurrent device list
getUserMediapublic(constraints) => voidExecute the media pipeline immediately with provided constraints See MediaDeviceRequest
getUserMediaAsyncpublic(constraints) => Promise<void>Execute the media pipeline immediately with provided constraints. An explicit version of getUserMedia to make it possible to chain other async actions See MediaDeviceRequest
media?readonlyMediaCurrent Media
tryAndGetUserMediapublic(constraints) => voidCross-check PermissionState and available devices before requesting user media, the request will be skipped if there is no granted device.
updatingAudioreadonlyboolean-
updatingVideoreadonlyboolean-