Package com.twilio.video
Class LocalDataTrackPublication
java.lang.Object
com.twilio.video.LocalDataTrackPublication
- All Implemented Interfaces:
DataTrackPublication
,TrackPublication
A local data track publication represents a
LocalDataTrack
that has been shared to a
Room
.-
Method Summary
Modifier and TypeMethodDescriptionUnlikeDataTrackPublication
orRemoteDataTrackPublication
thisDataTrack
is guaranteed to be non null.Returns the published local data track.Returns theTrackPriority
of the published local data track.Returns the name of the local data track.Returns the local data track's server identifier.boolean
Check if local data track is enabled.void
setPriority
(TrackPriority priority) Update the publisher'sTrackPriority
for thisLocalDataTrack
after it has been published.
-
Method Details
-
getTrackSid
Returns the local data track's server identifier. This value uniquely identifies the local data track within the scope of aRoom
.- Specified by:
getTrackSid
in interfaceTrackPublication
-
getTrackName
Returns the name of the local data track. An empty string is returned if no name was specified.- Specified by:
getTrackName
in interfaceTrackPublication
-
isTrackEnabled
public boolean isTrackEnabled()Check if local data track is enabled.- Specified by:
isTrackEnabled
in interfaceTrackPublication
-
getDataTrack
UnlikeDataTrackPublication
orRemoteDataTrackPublication
thisDataTrack
is guaranteed to be non null.- Specified by:
getDataTrack
in interfaceDataTrackPublication
- Returns:
- Returns the base data track object of the published local data track.
- See Also:
-
getLocalDataTrack
Returns the published local data track. -
getPriority
Returns theTrackPriority
of the published local data track. -
setPriority
Update the publisher'sTrackPriority
for thisLocalDataTrack
after it has been published. This method is a no-op if theLocalDataTrack
has been unpublished, or theLocalParticipant
has disconnected from theRoom
.- Parameters:
priority
- TheTrackPriority
to be set.
-