MediaControl
Beta
MediaControl Interface
Properties
| Property | Type | Description |
|---|---|---|
deviceChanged | (fn) => () => void | Beta Unified interface for subscribing DeviceChangedChanges Event |
getDevices | () => Promise<MediaDeviceInfo[]> | Beta Future proofing: in case we want to alter the values or type returned by enumerateDevices |
getUserMedia | (__namedParameters) => Promise<MediaStream> | Beta Get MediaStream with provided input constraints |
MediaEventType | typeof MediaEventType | Beta MediaStreamTrack Events Remarks See MDN Events |
setDefaultConstraints | (newConstraints) => void | Beta Set default media stream constraints A MediaStreamConstraints object specifying the types of media to request, along with any requirements for each type. |
subscribe | (listener) => () => void | Beta Subscribe media events |