HMSLocalVideoTrack

The video track of the local peer

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
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getTextureHelper(): SurfaceTextureHelper
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 setDescription(value: String)

Set description to this track from the app layer, if any

Link copied to clipboard
open override fun setMute(value: Boolean)

Sets the local mute status of this track

Link copied to clipboard
suspend fun setSettings(newSettings: HMSVideoTrackSettings)
Link copied to clipboard
fun switchCamera(onAction: HMSActionResultListener? = null): Job

Method to toggle camera between the front and back

fun switchCamera(deviceId: String, onAction: HMSActionResultListener?): Job

Method to switch camera to the given deviceID

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
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