Class HMSVideoTrack

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      HMSTrackType getType() This specifies the type of track, either one of HMSTrackType
      Boolean isDegraded() true - if this track has been degraded due to network issues false - no degradation applied on this track
      Unit addSink(VideoSink sink, HMSAddSinkResultListener resultListener) Takes in a view on which the video needs to be rendered
      Unit removeSink(VideoSink sink) Takes in a view that needs to be removed from rendering
      String toString()
      • 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
    • Constructor Detail

    • Method Detail

      • 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