Methods
Static
audioEnabled
- audioEnabled(stream): Nullable<boolean>
-
Returns Nullable<boolean>
Static
createStream
- createStream(constraints?): Promise<MediaStream>
-
Parameters
-
constraints: MediaStreamConstraints = ...
Returns Promise<MediaStream>
Static
disposeStream
- disposeStream(stream): void
-
Returns void
Static
getAudioTrackSettings
- getAudioTrackSettings(stream): Nullable<MediaTrackSettings>
-
Returns Nullable<MediaTrackSettings>
Static
getSyntheticMediaStreamConstraints
- getSyntheticMediaStreamConstraints(stream): MediaStreamConstraints
-
Returns MediaStreamConstraints
Static
getVideoTrackSettings
- getVideoTrackSettings(stream): Nullable<MediaTrackSettings>
-
Returns Nullable<MediaTrackSettings>
Static
hasAudio
- hasAudio(stream): boolean
-
Returns boolean
Static
hasVideo
- hasVideo(stream): boolean
-
Returns boolean
Static
setAudioTracksTo
- setAudioTracksTo(stream, isEnabled): void
-
Parameters
-
stream: MediaStream
-
isEnabled: boolean
Returns void
Static
setVideoTracksTo
- setVideoTracksTo(stream, enabled): void
-
Parameters
-
stream: MediaStream
-
enabled: boolean
Returns void
Static
videoEnabled
- videoEnabled(stream): Nullable<boolean>
-
Returns Nullable<boolean>
Checks if any audio track in a MediaStream is enabled.