Skip to main content

MediaAttributes

Extended by

Properties

PropertyModifierTypeDescription
activereadonlybooleanIndicating whether the media is active A stream is considered active if at least one of its MediaStreamTracks does not have its property MediaStreamTrack.readyState set to ended. Once every track has ended, the stream's active property becomes false.
audioInput?publicMediaDeviceInfoLikeAudio input device is used for the audio track from the current stream
audioMutedpublicundefined | booleanCurrent mute state of audio track undefined means there is no such track from the stream
devicespublicIndexedDevicesThe devices used for the media
expectedAudioInput?publicMediaDeviceInfoLikeThe audio input device which is expected to be used for the current stream based on the provided constraints
expectedVideoInput?publicMediaDeviceInfoLikeThe video input device which is expected to be used for the current stream based on the provided constraints
idreadonlystringA string containing a 36-character universally unique identifier (UUID) for the object.
statuspublicUserMediaStatusThe status of the media
streampublicMediaStreamMedia stream for the media
videoInput?publicMediaDeviceInfoLikeVideo input device is used for the video track from the current stream
videoMutedpublicundefined | booleanCurrent mute state of video track undefined means there is no such track from the stream