Class RemoteVideoTrackPublication

All Implemented Interfaces:
TrackPublication, VideoTrackPublication

public class RemoteVideoTrackPublication extends Object implements VideoTrackPublication
A remote video track publication represents a RemoteVideoTrack that has been shared to a Room.
  • Method Details

    • getTrackSid

      @NonNull public String getTrackSid()
      Returns the remote video track's server identifier. This value uniquely identifies the remote video track within the scope of a Room.
      Specified by:
      getTrackSid in interface TrackPublication
    • getVideoTrack

      @Nullable public VideoTrack getVideoTrack()
      Returns the base video track object of the published remote video track. null is returned if the track is not subscribed to.
      Specified by:
      getVideoTrack in interface VideoTrackPublication
      the published video track.
      See Also:
    • getTrackName

      @NonNull public String getTrackName()
      Returns the name of the published video track. An empty string is returned if no track name was specified.
      Specified by:
      getTrackName in interface TrackPublication
    • isTrackEnabled

      public boolean isTrackEnabled()
      Returns true if the published video track is enabled or false otherwise.
      Specified by:
      isTrackEnabled in interface TrackPublication
    • isTrackSubscribed

      public boolean isTrackSubscribed()
      Check if the remote video track is subscribed to by the LocalParticipant.
    • getPublishPriority

      @NonNull public TrackPriority getPublishPriority()
      Returns the TrackPriority set by the publisher for the corresponding RemoteVideoTrack. Returns TrackPriority.STANDARD if no priority was specified by the publisher.
    • getRemoteVideoTrack

      @Nullable public RemoteVideoTrack getRemoteVideoTrack()
      Returns the published remote video track. null is returned if the track is not subscribed to.