Package com.twilio.video
Class RemoteVideoTrackPublication
- java.lang.Object
-
- com.twilio.video.RemoteVideoTrackPublication
-
- All Implemented Interfaces:
TrackPublication,VideoTrackPublication
public class RemoteVideoTrackPublication extends java.lang.Object implements VideoTrackPublication
A remote video track publication represents aRemoteVideoTrackthat has been shared to aRoom.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrackPrioritygetPublishPriority()Returns theTrackPriorityset by the publisher for the correspondingRemoteVideoTrack.RemoteVideoTrackgetRemoteVideoTrack()java.lang.StringgetTrackName()Returns the name of the published video track.java.lang.StringgetTrackSid()Returns the remote video track's server identifier.VideoTrackgetVideoTrack()Returns the base video track object of the published remote video track.booleanisTrackEnabled()Returns true if the published video track is enabled or false otherwise.booleanisTrackSubscribed()Check if the remote video track is subscribed to by theLocalParticipant.
-
-
-
Method Detail
-
getTrackSid
@NonNull public java.lang.String getTrackSid()
Returns the remote video track's server identifier. This value uniquely identifies the remote video track within the scope of aRoom.- Specified by:
getTrackSidin interfaceTrackPublication
-
getVideoTrack
@Nullable public VideoTrack getVideoTrack()
Returns the base video track object of the published remote video track.nullis returned if the track is not subscribed to.- Specified by:
getVideoTrackin interfaceVideoTrackPublication- Returns:
- the published video track.
- See Also:
LocalVideoTrackPublication,RemoteVideoTrackPublication
-
getTrackName
@NonNull public java.lang.String getTrackName()
Returns the name of the published video track. An empty string is returned if no track name was specified.- Specified by:
getTrackNamein interfaceTrackPublication
-
isTrackEnabled
public boolean isTrackEnabled()
Returns true if the published video track is enabled or false otherwise.- Specified by:
isTrackEnabledin interfaceTrackPublication
-
isTrackSubscribed
public boolean isTrackSubscribed()
Check if the remote video track is subscribed to by theLocalParticipant.
-
getPublishPriority
@NonNull public TrackPriority getPublishPriority()
Returns theTrackPriorityset by the publisher for the correspondingRemoteVideoTrack. ReturnsTrackPriority.STANDARDif no priority was specified by the publisher.
-
getRemoteVideoTrack
@Nullable public RemoteVideoTrack getRemoteVideoTrack()
- Returns:
- Returns the published remote video track.
nullis returned if the track is not subscribed to.
-
-