public class LocalAudioTrackPublication extends Object implements AudioTrackPublication
LocalAudioTrack
that has been shared to a
Room
.Modifier and Type | Method and Description |
---|---|
AudioTrack |
getAudioTrack()
Unlike
AudioTrackPublication or RemoteAudioTrackPublication this AudioTrack is guaranteed to be non null. |
LocalAudioTrack |
getLocalAudioTrack()
Returns the published local audio track.
|
TrackPriority |
getPriority()
Returns the
TrackPriority of the published local audio track. |
String |
getTrackName()
Returns the name of the local audio track.
|
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's
TrackPriority for this LocalAudioTrack after it has
been published. |
public String getTrackSid()
Room
.getTrackSid
in interface TrackPublication
public String getTrackName()
getTrackName
in interface TrackPublication
public boolean isTrackEnabled()
isTrackEnabled
in interface TrackPublication
public AudioTrack getAudioTrack()
AudioTrackPublication
or RemoteAudioTrackPublication
this AudioTrack
is guaranteed to be non null.getAudioTrack
in interface AudioTrackPublication
LocalAudioTrackPublication
,
RemoteAudioTrackPublication
public LocalAudioTrack getLocalAudioTrack()
public TrackPriority getPriority()
TrackPriority
of the published local audio track.public void setPriority(TrackPriority priority)
TrackPriority
for this LocalAudioTrack
after it has
been published. This method is a no-op if the LocalAudioTrack
has been unpublished,
or the LocalParticipant
has disconnected from the Room
.priority
- The TrackPriority
to be set.5.13.0