/lib/live.hms.video.media.tracks/HMSLocalVideoTrack
HMSLocalVideoTrack
[androidJvm]\ class HMSLocalVideoTrack : HMSVideoTrack, HMSLocalTrack
The video track of the local peer
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 |
setDescription | [androidJvm] open override fun setDescription(value: String) Set description to this track from the app layer, if any |
setMute | [androidJvm] open override fun setMute(value: Boolean) Sets the local mute status of this track |
setSettings | [androidJvm] suspend fun setSettings(newSettings: HMSVideoTrackSettings) |
switchCamera | [androidJvm] suspend fun switchCamera() Method to toggle camera between the front and back [androidJvm] suspend fun switchCamera(deviceId: String) Method to switch camera to the given deviceID [androidJvm] suspend fun switchCamera(face: HMSVideoTrackSettings.CameraFacing) |
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 |
settings | [androidJvm] var settings: HMSVideoTrackSettings |
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 |