public class RemoteAudioTrackPublication extends Object implements AudioTrackPublication
RemoteAudioTrack
that has been shared to a
Room
.Modifier and Type | Method and Description |
---|---|
AudioTrack |
getAudioTrack()
Returns the base audio track object of the published remote audio track.
|
TrackPriority |
getPublishPriority()
Returns the
TrackPriority set by the publisher for the corresponding RemoteAudioTrack . |
RemoteAudioTrack |
getRemoteAudioTrack()
Returns the published remote audio track.
|
String |
getTrackName()
Returns the name of the published audio track.
|
String |
getTrackSid()
Returns the remote audio track's server identifier.
|
boolean |
isTrackEnabled()
Check if remote audio track is enabled.
|
boolean |
isTrackSubscribed()
Check if the remote audio track is subscribed to by the
LocalParticipant . |
public String getTrackSid()
Room
.getTrackSid
in interface TrackPublication
public AudioTrack getAudioTrack()
null
is
returned if the track is not subscribed to.getAudioTrack
in interface AudioTrackPublication
LocalAudioTrackPublication
,
RemoteAudioTrackPublication
public String getTrackName()
getTrackName
in interface TrackPublication
public boolean isTrackEnabled()
isTrackEnabled
in interface TrackPublication
public boolean isTrackSubscribed()
LocalParticipant
.public TrackPriority getPublishPriority()
TrackPriority
set by the publisher for the corresponding RemoteAudioTrack
. Returns TrackPriority.STANDARD
if no priority was specified by the
publisher.public RemoteAudioTrack getRemoteAudioTrack()
null
is returned if the track is not
subscribed to.5.13.0