HMSRemoteVideoTrack

This contains the video track of the HMSRemotePeer

Functions

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

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

Link copied to clipboard
fun addSinkInternal(sink: VideoSink, selectedLayer: HMSLayer)

adds sink with selectedLayer as params

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

Public API to get current layer value

Link copied to clipboard

Public API to get layers definition

Link copied to clipboard
open override fun removeSink(sink: VideoSink)

Takes in a view that needs to be removed from rendering

Link copied to clipboard
fun setLayer(HMSLayer: HMSLayer, resultListener: HMSAddSinkResultListener? = null)

Public api to set layer to HMSLayer.HIGH, HMSLayer.LOW, HMSLayer.MEDIUM

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 override var isDegraded: Boolean = false

Is true if this track has been degraded due to auto degradation by the SDK

Link copied to clipboard
var isMute: Boolean = false

true - if this track is muted, otherwise false

Link copied to clipboard
open override var isPlaybackAllowed: Boolean

Method to set if playback is needed of this remote track or not

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
open override var ssrc: Long
Link copied to clipboard
val TAG: String
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