Package com.twilio.video
Class RemoteVideoTrackPublication
java.lang.Object
com.twilio.video.RemoteVideoTrackPublication
- All Implemented Interfaces:
TrackPublication
,VideoTrackPublication
A remote video track publication represents a
RemoteVideoTrack
that has been shared to a
Room
.-
Method Summary
Modifier and TypeMethodDescriptionReturns theTrackPriority
set by the publisher for the correspondingRemoteVideoTrack
.Returns the name of the published video track.Returns the remote video track's server identifier.Returns the base video track object of the published remote video track.boolean
Returns true if the published video track is enabled or false otherwise.boolean
Check if the remote video track is subscribed to by theLocalParticipant
.
-
Method Details
-
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
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:
-
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
Returns theTrackPriority
set by the publisher for the correspondingRemoteVideoTrack
. ReturnsTrackPriority.STANDARD
if no priority was specified by the publisher. -
getRemoteVideoTrack
- Returns:
- Returns the published remote video track.
null
is returned if the track is not subscribed to.
-