Stream

class Stream(    userAgent: UserAgent,     createStreamOptions: UserAgent.CreateStreamOptions?,     remoteMediaStream: MediaStream? = null)

A stream.

Parameters

createStreamOptions
remoteMediaStream

Constructors

Link copied to clipboard
fun Stream(    userAgent: UserAgent,     createStreamOptions: UserAgent.CreateStreamOptions?,     remoteMediaStream: MediaStream? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun attachToElement(videoView: SurfaceViewRenderer?)

Attaches stream to SurfaceViewRenderer element

Link copied to clipboard
fun detachFromElement(videoView: SurfaceViewRenderer?)
Link copied to clipboard
fun getType(): String
Link copied to clipboard
fun muteAudio()

Mutes this stream's audio If this stream is published to another contact, the stream will also be muted on the contact's side If this stream is subscribed from another contact, muting the stream will have no impact on the contact's side

Link copied to clipboard
fun muteVideo()

Mutes this stream's video If this stream is published to another contact, the stream will also be muted on the contact's side If this stream is subscribed from another contact, muting the stream will have no impact on the contact's side

Link copied to clipboard
fun release()

Release all tracks (either video or audio) used by this stream

Link copied to clipboard
fun unmuteAudio()

Unmutes this stream's audio If this stream is published to another contact, the stream will also be unmuted on the contact's side If this stream is subscribed from another contact, unmuting the stream will have no impact on the contact's side, moreover, it will not unmute the stream if it has been muted by the contact

Link copied to clipboard
fun unmuteVideo()

Unmutes this stream's video If this stream is published to another contact, the stream will also be unmuted on the contact's side If this stream is subscribed from another contact, muting the stream will have no impact on the contact's side, moreover, it will not unmute the stream if it has been muted by the contact