Package live.hms.video.media.tracks
Class HMSVideoTrack
-
- All Implemented Interfaces:
public class HMSVideoTrack extends HMSTrack
A type of HMSTrack holding only video
-
-
Field Summary
Fields Modifier and Type Field Description private final HMSTrackTypetypeprivate final BooleanisDegradedprivate final StringtrackIdprivate final Stringdescriptionprivate final BooleanisMuteprivate Stringsource
-
Constructor Summary
Constructors Constructor Description HMSVideoTrack(HMSMediaStream stream, VideoTrack nativeTrack, String source)
-
Method Summary
Modifier and Type Method Description HMSTrackTypegetType()This specifies the type of track, either one of HMSTrackType BooleanisDegraded()true - if this track has been degraded due to network issues false - no degradation applied on this track UnitaddSink(VideoSink sink, HMSAddSinkResultListener resultListener)Takes in a view on which the video needs to be rendered UnitremoveSink(VideoSink sink)Takes in a view that needs to be removed from rendering StringtoString()-
-
Constructor Detail
-
HMSVideoTrack
HMSVideoTrack(HMSMediaStream stream, VideoTrack nativeTrack, String source)
-
-
Method Detail
-
getType
HMSTrackType getType()
This specifies the type of track, either one of HMSTrackType
-
isDegraded
Boolean isDegraded()
true - if this track has been degraded due to network issues false - no degradation applied on this track
-
addSink
Unit addSink(VideoSink sink, HMSAddSinkResultListener resultListener)
Takes in a view on which the video needs to be rendered
- Parameters:
sink- A view of type VideoSink that needs to be rendered
-
removeSink
Unit removeSink(VideoSink sink)
Takes in a view that needs to be removed from rendering
- Parameters:
sink- A view of type VideoSink that does not need to be rendered anymore
-
-
-
-