-
- All Implemented Interfaces:
-
com.twilio.video.AudioTrackPublication,com.twilio.video.TrackPublication
public class RemoteAudioTrackPublication implements AudioTrackPublication
A remote audio track publication represents a RemoteAudioTrack that has been shared to a Room.
-
-
Field Summary
Fields Modifier and Type Field Description private RemoteAudioTrackremoteAudioTrackprivate TrackPrioritypublishPriority
-
Method Summary
Modifier and Type Method Description synchronized RemoteAudioTrackgetRemoteAudioTrack()Returns the published remote audio track. synchronized voidsetRemoteAudioTrack(RemoteAudioTrack remoteAudioTrack)synchronized TrackPrioritygetPublishPriority()Returns the TrackPriority set by the publisher for the corresponding . synchronized voidsetPublishPriority(TrackPriority publishPriority)StringgetTrackSid()Returns the remote audio track's server identifier. synchronized AudioTrackgetAudioTrack()Returns the base audio track object of the published remote audio track. StringgetTrackName()Returns the name of the published audio track. synchronized booleanisTrackEnabled()Check if remote audio track is enabled. synchronized booleanisTrackSubscribed()Check if the remote audio track is subscribed to by the LocalParticipant. -
-
Method Detail
-
getRemoteAudioTrack
@Nullable() synchronized RemoteAudioTrack getRemoteAudioTrack()
Returns the published remote audio track.
{@code null}is returned if the track is notsubscribed to.
-
setRemoteAudioTrack
synchronized void setRemoteAudioTrack(RemoteAudioTrack remoteAudioTrack)
-
getPublishPriority
@NonNull() synchronized TrackPriority getPublishPriority()
Returns the TrackPriority set by the publisher for the corresponding . Returns STANDARD if no priority was specified by thepublisher.
-
setPublishPriority
synchronized void setPublishPriority(TrackPriority publishPriority)
-
getTrackSid
@NonNull() String getTrackSid()
Returns the remote audio track's server identifier. This value uniquely identifies the remoteaudio track within the scope of a Room.
-
getAudioTrack
@Nullable() synchronized AudioTrack getAudioTrack()
Returns the base audio track object of the published remote audio track.
{@code null}isreturned if the track is not subscribed to.
-
getTrackName
@NonNull() String getTrackName()
Returns the name of the published audio track. An empty string is returned if no track namewas specified.
-
isTrackEnabled
synchronized boolean isTrackEnabled()
Check if remote audio track is enabled.
-
isTrackSubscribed
synchronized boolean isTrackSubscribed()
Check if the remote audio track is subscribed to by the LocalParticipant.
-
-
-
-