ManagedStream
This class provides access to media control functions during a call This class must never be directly instantiated
Method Summary
Public Methods | ||
public |
Creates a StreamRecorder object that will allow recording the stream |
|
public |
Provides access to the audio tracks of the managed stream |
|
public |
this method was deprecated. This method relies in browser implementation details and must not be used
Provides access to the video tracks that are not a screen of the managed stream |
|
public |
The id of this stream |
|
public |
Provides access to the underlying WebRTC MediaStream object |
|
public |
this method was deprecated. This method relies in browser implementation details and must not be used
Provides access to the screen tracks of the managed stream |
|
public |
Provides access to all the tracks of the managed stream |
|
public |
Provides access to the video tracks of the managed stream |
|
public |
Allows to know if the managed stream has audio tracks |
|
public |
this method was deprecated. This method relies in browser implementation details and must not be used
Allows to know if the managed stream has camera tracks |
|
public |
this method was deprecated. This method relies in browser implementation details and must not be used
Allows to know if the managed stream has screen tracks |
|
public |
Allows to know if the managed stream has video tracks |
|
public |
Indicates if every audio track is muted |
|
public |
Indicates if this managed stream is local. |
|
public |
Indicates if this managed stream is remote. |
|
public |
this method was deprecated. This method relies in browser implementation details and must not be used
Indicates if every screen track is muted |
|
public |
Indicates if every video track is muted |
|
public |
Mutes or unmutes audio tracks of this stream |
|
public |
muteScreen(mute: boolean) this method was deprecated. This method relies in browser implementation details and must not be used
Mutes or unmutes screen tracks of this stream |
|
public |
Mutes or unmutes video tracks of this stream |
|
public |
Stops every track of the underlying MediaStream |
|
public |
async takePhotos(): Promise<Blob[]> Allows taking captures of the video tracks of this stream |
Public Methods
public createStreamRecorder(): StreamRecorder source
Creates a StreamRecorder object that will allow recording the stream
public getAudioTracks(): MediaStreamTrack[] source
Provides access to the audio tracks of the managed stream
public getCameraTracks(): MediaStreamTrack[] source
Provides access to the video tracks that are not a screen of the managed stream
public getMediaStream(): MediaStream source
Provides access to the underlying WebRTC MediaStream object
public getScreenTracks(): MediaStreamTrack[] source
Provides access to the screen tracks of the managed stream
public getTracks(): MediaStreamTrack[] source
Provides access to all the tracks of the managed stream
public getVideoTracks(): MediaStreamTrack[] source
Provides access to the video tracks of the managed stream
public hasCameraTracks(): boolean source
Allows to know if the managed stream has camera tracks
public hasScreenTracks(): boolean source
Allows to know if the managed stream has screen tracks
public isLocal(): boolean source
Indicates if this managed stream is local. This means that its sources are local devices of this machine and that it was obtained of a getUserMedia call and not from a RTCPeerConnection
public isRemote(): boolean source
Indicates if this managed stream is remote. This means that its sources are not local devices of this machine and that it was obtained from a RTCPeerConnection and not from a getUserMedia call
public isScreenMuted(): boolean source
Indicates if every screen track is muted
public muteAudio(mute: boolean) source
Mutes or unmutes audio tracks of this stream
Params:
Name | Type | Attribute | Description |
mute | boolean |
|
If true disables audio tracks, if false enables them If not argument is provided it toggles the mute state on audio tracks |
public muteScreen(mute: boolean) source
Mutes or unmutes screen tracks of this stream
Params:
Name | Type | Attribute | Description |
mute | boolean |
|
If true disables screen tracks, if false enables them If not argument is provided it toggles the mute state on screen tracks |
public muteVideo(mute: boolean) source
Mutes or unmutes video tracks of this stream
Params:
Name | Type | Attribute | Description |
mute | boolean |
|
If true disables video tracks, if false enables them If not argument is provided it toggles the mute state on video tracks |