Package com.twilio.video
Class LocalAudioTrackPublication
java.lang.Object
com.twilio.video.LocalAudioTrackPublication
- All Implemented Interfaces:
AudioTrackPublication
,TrackPublication
A local audio track publication represents a
LocalAudioTrack
that has been shared to a
Room
.-
Method Summary
Modifier and TypeMethodDescriptionUnlikeAudioTrackPublication
orRemoteAudioTrackPublication
thisAudioTrack
is guaranteed to be non null.Returns the published local audio track.Returns theTrackPriority
of the published local audio track.Returns the name of the local audio track.Returns the local audio track's server identifier.boolean
Check if local audio track is enabled.void
setPriority
(TrackPriority priority) Update the publisher'sTrackPriority
for thisLocalAudioTrack
after it has been published.
-
Method Details
-
getTrackSid
Returns the local audio track's server identifier. This value uniquely identifies the local audio track within the scope of aRoom
.- Specified by:
getTrackSid
in interfaceTrackPublication
-
getTrackName
Returns the name of the local audio track. An empty string is returned if not name was specified.- Specified by:
getTrackName
in interfaceTrackPublication
-
isTrackEnabled
public boolean isTrackEnabled()Check if local audio track is enabled.- Specified by:
isTrackEnabled
in interfaceTrackPublication
-
getAudioTrack
UnlikeAudioTrackPublication
orRemoteAudioTrackPublication
thisAudioTrack
is guaranteed to be non null.- Specified by:
getAudioTrack
in interfaceAudioTrackPublication
- Returns:
- Returns the base audio track object of the published local audio track.
- See Also:
-
getLocalAudioTrack
Returns the published local audio track. -
getPriority
Returns theTrackPriority
of the published local audio track. -
setPriority
Update the publisher'sTrackPriority
for thisLocalAudioTrack
after it has been published. This method is a no-op if theLocalAudioTrack
has been unpublished, or theLocalParticipant
has disconnected from theRoom
.- Parameters:
priority
- TheTrackPriority
to be set.
-