/lib/live.hms.video.media.tracks/HMSVideoTrack
HMSVideoTrack
[androidJvm]\ open class HMSVideoTrack(stream: HMSMediaStream, nativeTrack: VideoTrack, source: String) : HMSTrack
A type of HMSTrack holding only video
Constructors
| HMSVideoTrack | [androidJvm] fun HMSVideoTrack(stream: HMSMediaStream, nativeTrack: VideoTrack, source: String) |
Functions
| Name | Summary |
|---|---|
| addSink | [androidJvm] open fun addSink(sink: VideoSink) Takes in a view on which the video needs to be rendered |
| equals | [androidJvm] open operator override fun equals(other: Any?): Boolean |
| removeSink | [androidJvm] open fun removeSink(sink: VideoSink) Takes in a view that needs to be removed from rendering |
| toString | [androidJvm] open override fun toString(): String |
Properties
| Name | Summary |
|---|---|
| description | [androidJvm] var description: String A description if any that has been set for this track by the app |
| isDegraded | [androidJvm] open var isDegraded: Boolean = false true - if this track has been degraded due to network issues false - no degradation applied on this track |
| isMute | [androidJvm] var isMute: Boolean = false true - if this track is muted, otherwise false |
| source | [androidJvm] var source: String Specifies the source of this track Regular - from default camera/mic Screen - from screenshare Publign - from plugin |
| trackId | [androidJvm] val trackId: String The trackID of this track |
| type | [androidJvm] open override val type: HMSTrackType This specifies the type of track, either one of HMSTrackType |