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