Package com.twilio.video
Class LocalAudioTrackPublication
- java.lang.Object
-
- com.twilio.video.LocalAudioTrackPublication
-
- All Implemented Interfaces:
AudioTrackPublication
,TrackPublication
public class LocalAudioTrackPublication extends java.lang.Object implements AudioTrackPublication
A local audio track publication represents aLocalAudioTrack
that has been shared to aRoom
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AudioTrack
getAudioTrack()
UnlikeAudioTrackPublication
orRemoteAudioTrackPublication
thisAudioTrack
is guaranteed to be non null.LocalAudioTrack
getLocalAudioTrack()
Returns the published local audio track.TrackPriority
getPriority()
Returns theTrackPriority
of the published local audio track.java.lang.String
getTrackName()
Returns the name of the local audio track.java.lang.String
getTrackSid()
Returns the local audio track's server identifier.boolean
isTrackEnabled()
Check if local audio track is enabled.void
setPriority(TrackPriority priority)
Update the publisher'sTrackPriority
for thisLocalAudioTrack
after it has been published.
-
-
-
Method Detail
-
getTrackSid
@NonNull public java.lang.String 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
@NonNull public java.lang.String 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
@NonNull public AudioTrack 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:
LocalAudioTrackPublication
,RemoteAudioTrackPublication
-
getLocalAudioTrack
@NonNull public LocalAudioTrack getLocalAudioTrack()
Returns the published local audio track.
-
getPriority
@NonNull public TrackPriority getPriority()
Returns theTrackPriority
of the published local audio track.
-
setPriority
public void setPriority(TrackPriority priority)
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.
-
-