-
- All Implemented Interfaces:
-
com.twilio.video.DataTrackPublication,com.twilio.video.TrackPublication
public class LocalDataTrackPublication implements DataTrackPublication
A local data track publication represents a LocalDataTrack that has been shared to a Room.
-
-
Field Summary
Fields Modifier and Type Field Description private final LocalDataTracklocalDataTrackprivate TrackPrioritypriority
-
Method Summary
Modifier and Type Method Description LocalDataTrackgetLocalDataTrack()Returns the published local data track. TrackPrioritygetPriority()Returns the TrackPriority of the published local data track. voidsetPriority(TrackPriority priority)Update the publisher's TrackPriority for this LocalDataTrack after it hasbeen published. StringgetTrackSid()Returns the local data track's server identifier. StringgetTrackName()Returns the name of the local data track. booleanisTrackEnabled()Check if local data track is enabled. DataTrackgetDataTrack()Unlike DataTrackPublication or RemoteDataTrackPublication this is guaranteed to be non null. -
-
Method Detail
-
getLocalDataTrack
@NonNull() LocalDataTrack getLocalDataTrack()
Returns the published local data track.
-
getPriority
@NonNull()@Deprecated() TrackPriority getPriority()
Returns the TrackPriority of the published local data track.
-
setPriority
@Deprecated() void setPriority(TrackPriority priority)
Update the publisher's TrackPriority for this LocalDataTrack after it hasbeen published. This method is a no-op if the LocalDataTrack has been unpublished, orthe LocalParticipant has disconnected from the Room.
- Parameters:
priority- The TrackPriority to be set.
-
getTrackSid
@NonNull() String getTrackSid()
Returns the local data track's server identifier. This value uniquely identifies the localdata track within the scope of a Room.
-
getTrackName
@NonNull() String getTrackName()
Returns the name of the local data track. An empty string is returned if no name wasspecified.
-
isTrackEnabled
boolean isTrackEnabled()
Check if local data track is enabled.
-
getDataTrack
DataTrack getDataTrack()
Unlike DataTrackPublication or RemoteDataTrackPublication this is guaranteed to be non null.
-
-
-
-