-
- All Implemented Interfaces:
-
com.twilio.video.DataTrackPublication,com.twilio.video.TrackPublication
public class RemoteDataTrackPublication implements DataTrackPublication
A remote data track publication represents a RemoteDataTrack.
-
-
Field Summary
Fields Modifier and Type Field Description private RemoteDataTrackremoteDataTrackprivate TrackPrioritypublishPriority
-
Method Summary
Modifier and Type Method Description synchronized RemoteDataTrackgetRemoteDataTrack()Returns the published remote data track. synchronized voidsetRemoteDataTrack(RemoteDataTrack remoteDataTrack)synchronized TrackPrioritygetPublishPriority()Returns the TrackPriority set by the publisher for the corresponding . synchronized voidsetPublishPriority(TrackPriority publishPriority)StringgetTrackSid()Returns the remote data track's server identifier. synchronized DataTrackgetDataTrack()StringgetTrackName()Returns the name of the published data track. booleanisTrackEnabled()Returns true if the published data track is enabled or false otherwise. synchronized booleanisTrackSubscribed()Check if the remote data track is subscribed to by the LocalParticipant. -
-
Method Detail
-
getRemoteDataTrack
@Nullable() synchronized RemoteDataTrack getRemoteDataTrack()
Returns the published remote data track.
{@code null}is returned if the track is notsubscribed to.
-
setRemoteDataTrack
synchronized void setRemoteDataTrack(RemoteDataTrack remoteDataTrack)
-
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 data track's server identifier. This value uniquely identifies the remotedata track within the scope of a Room.
-
getDataTrack
@Nullable() synchronized DataTrack getDataTrack()
-
getTrackName
@NonNull() String getTrackName()
Returns the name of the published data track. An empty string is returned if no track namewas specified.
-
isTrackEnabled
boolean isTrackEnabled()
Returns true if the published data track is enabled or false otherwise.
-
isTrackSubscribed
synchronized boolean isTrackSubscribed()
Check if the remote data track is subscribed to by the LocalParticipant.
-
-
-
-