Package live.hms.video.media.tracks
Class HMSLocalVideoTrack
-
- All Implemented Interfaces:
-
live.hms.video.media.tracks.HMSLocalTrack
public final class HMSLocalVideoTrack extends HMSVideoTrack implements HMSLocalTrack
The video track of the local peer
-
-
Field Summary
Fields Modifier and Type Field Description private final HMSVideoTrackSettingssettingsprivate final HMSTrackTypetypeprivate final BooleanisDegradedprivate final StringtrackIdprivate final Stringdescriptionprivate final BooleanisMuteprivate Stringsource
-
Method Summary
Modifier and Type Method Description final HMSVideoTrackSettingsgetSettings()final JobswitchCamera(HMSActionResultListener onAction)Method to toggle camera between the front and back final JobswitchCamera(HMSVideoTrackSettings.CameraFacing face, HMSActionResultListener onAction)final JobswitchCamera(String deviceId, HMSActionResultListener onAction)Method to switch camera to the given deviceID final CameraControlgetCameraControl()final UnitsetSettings(HMSVideoTrackSettings newSettings)UnitsetDescription(String value)Set description to this track from the app layer, if any UnitsetMute(Boolean value)Sets the local mute status of this track final UnitcaptureImageAtMaxPublishResolution(HmsVideoFrameListener videoFrameListener)final SurfaceTextureHelpergetTextureHelper()final Pair<Size, Integer>getInputResolutionAndFps()final UnitchangeInputFps(Integer fps)StringtoString()final UnitsetIsDispose()-
Methods inherited from class live.hms.video.media.tracks.HMSVideoTrack
addSink, getType, isDegraded, removeSink -
Methods inherited from class live.hms.video.media.tracks.HMSTrack
equals, getDescription, getSource, getTrackId, isMute, setSource -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getSettings
final HMSVideoTrackSettings getSettings()
-
switchCamera
final Job switchCamera(HMSActionResultListener onAction)
Method to toggle camera between the front and back
-
switchCamera
final Job switchCamera(HMSVideoTrackSettings.CameraFacing face, HMSActionResultListener onAction)
-
switchCamera
final Job switchCamera(String deviceId, HMSActionResultListener onAction)
Method to switch camera to the given deviceID
- Parameters:
deviceId- the device Id of the camera to which the capturer should switch to
-
getCameraControl
final CameraControl getCameraControl()
-
setSettings
final Unit setSettings(HMSVideoTrackSettings newSettings)
-
setDescription
Unit setDescription(String value)
Set description to this track from the app layer, if any
- Parameters:
value- the description to be set
-
setMute
Unit setMute(Boolean value)
Sets the local mute status of this track
- Parameters:
value- true - if it needs to be set to mute, false otherwise
-
captureImageAtMaxPublishResolution
final Unit captureImageAtMaxPublishResolution(HmsVideoFrameListener videoFrameListener)
-
getTextureHelper
final SurfaceTextureHelper getTextureHelper()
-
getInputResolutionAndFps
final Pair<Size, Integer> getInputResolutionAndFps()
-
changeInputFps
final Unit changeInputFps(Integer fps)
-
setIsDispose
final Unit setIsDispose()
-
-
-
-