public class RemoteAudioTrackPublication extends java.lang.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.
|
java.lang.String |
getTrackName()
Returns the name of the published audio track.
|
java.lang.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 . |
@NonNull public java.lang.String getTrackSid()
Room
.getTrackSid
in interface TrackPublication
@Nullable public AudioTrack getAudioTrack()
null
is
returned if the track is not subscribed to.getAudioTrack
in interface AudioTrackPublication
LocalAudioTrackPublication
,
RemoteAudioTrackPublication
@NonNull public java.lang.String getTrackName()
getTrackName
in interface TrackPublication
public boolean isTrackEnabled()
isTrackEnabled
in interface TrackPublication
public boolean isTrackSubscribed()
LocalParticipant
.@NonNull public TrackPriority getPublishPriority()
TrackPriority
set by the publisher for the corresponding RemoteAudioTrack
. Returns TrackPriority.STANDARD
if no priority was specified by the
publisher.@Nullable public RemoteAudioTrack getRemoteAudioTrack()
null
is returned if the track is not
subscribed to.6.0.0