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 aRemoteVideoTrack
that has been shared to aRoom
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TrackPriority
getPublishPriority()
Returns theTrackPriority
set by the publisher for the correspondingRemoteVideoTrack
.RemoteVideoTrack
getRemoteVideoTrack()
java.lang.String
getTrackName()
Returns the name of the published video track.java.lang.String
getTrackSid()
Returns the remote video track's server identifier.VideoTrack
getVideoTrack()
Returns the base video track object of the published remote video track.boolean
isTrackEnabled()
Returns true if the published video track is enabled or false otherwise.boolean
isTrackSubscribed()
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:
getTrackSid
in interfaceTrackPublication
-
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 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:
getTrackName
in interfaceTrackPublication
-
isTrackEnabled
public boolean isTrackEnabled()
Returns true if the published video track is enabled or false otherwise.- Specified by:
isTrackEnabled
in interfaceTrackPublication
-
isTrackSubscribed
public boolean isTrackSubscribed()
Check if the remote video track is subscribed to by theLocalParticipant
.
-
getPublishPriority
@NonNull public TrackPriority getPublishPriority()
Returns theTrackPriority
set by the publisher for the correspondingRemoteVideoTrack
. ReturnsTrackPriority.STANDARD
if no priority was specified by the publisher.
-
getRemoteVideoTrack
@Nullable public RemoteVideoTrack getRemoteVideoTrack()
- Returns:
- Returns the published remote video track.
null
is returned if the track is not subscribed to.
-
-