-
- All Implemented Interfaces:
-
com.twilio.video.TrackPublication,com.twilio.video.VideoTrackPublication
public class RemoteVideoTrackPublication implements VideoTrackPublication
A remote video track publication represents a RemoteVideoTrack that has been shared to a Room.
-
-
Field Summary
Fields Modifier and Type Field Description private RemoteVideoTrackremoteVideoTrackprivate TrackPrioritypublishPriority
-
Method Summary
Modifier and Type Method Description synchronized RemoteVideoTrackgetRemoteVideoTrack()synchronized voidsetRemoteVideoTrack(RemoteVideoTrack remoteVideoTrack)synchronized TrackPrioritygetPublishPriority()Returns the TrackPriority set by the publisher for the corresponding . synchronized voidsetPublishPriority(TrackPriority publishPriority)StringgetTrackSid()Returns the remote video track's server identifier. synchronized VideoTrackgetVideoTrack()Returns the base video track object of the published remote video track. StringgetTrackName()Returns the name of the published video track. synchronized booleanisTrackEnabled()Returns true if the published video track is enabled or false otherwise. synchronized booleanisTrackSubscribed()Check if the remote video track is subscribed to by the LocalParticipant. -
-
Method Detail
-
getRemoteVideoTrack
@Nullable() synchronized RemoteVideoTrack getRemoteVideoTrack()
-
setRemoteVideoTrack
synchronized void setRemoteVideoTrack(RemoteVideoTrack remoteVideoTrack)
-
getPublishPriority
@NonNull() synchronized TrackPriority getPublishPriority()
Returns the TrackPriority set by the publisher for the corresponding . Returns STANDARD if no priority was specified by thepublisher.
-
setPublishPriority
synchronized void setPublishPriority(TrackPriority publishPriority)
-
getTrackSid
@NonNull() String getTrackSid()
Returns the remote video track's server identifier. This value uniquely identifies the remotevideo track within the scope of a Room.
-
getVideoTrack
@Nullable() synchronized VideoTrack getVideoTrack()
Returns the base video track object of the published remote video track.
{@code null}isreturned if the track is not subscribed to.
-
getTrackName
@NonNull() String getTrackName()
Returns the name of the published video track. An empty string is returned if no track namewas specified.
-
isTrackEnabled
synchronized boolean isTrackEnabled()
Returns true if the published video track is enabled or false otherwise.
-
isTrackSubscribed
synchronized boolean isTrackSubscribed()
Check if the remote video track is subscribed to by the LocalParticipant.
-
-
-
-