HMSVideoTrack

open class HMSVideoTrack(stream: HMSMediaStream, nativeTrack: VideoTrack, var source: String) : HMSTrack

A type of HMSTrack holding only video

Constructors

Link copied to clipboard
fun HMSVideoTrack(stream: HMSMediaStream, nativeTrack: VideoTrack, source: String)

Functions

Link copied to clipboard
open fun addSink(sink: VideoSink, resultListener: HMSAddSinkResultListener? = null)

Takes in a view on which the video needs to be rendered

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun removeSink(sink: VideoSink)

Takes in a view that needs to be removed from rendering

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard

A description if any that has been set for this track by the app

Link copied to clipboard
open var isDegraded: Boolean = false

true - if this track has been degraded due to network issues false - no degradation applied on this track

Link copied to clipboard
var isMute: Boolean = false

true - if this track is muted, otherwise false

Link copied to clipboard

Specifies the source of this track Regular - from default camera/mic Screen - from screenshare Plugin - from plugin

Link copied to clipboard

The trackID of this track

Link copied to clipboard
open override val type: HMSTrackType

This specifies the type of track, either one of HMSTrackType

Inheritors

Link copied to clipboard
Link copied to clipboard