Package com.twilio.video
Class RemoteAudioTrackPublication
- java.lang.Object
-
- com.twilio.video.RemoteAudioTrackPublication
-
- All Implemented Interfaces:
AudioTrackPublication,TrackPublication
public class RemoteAudioTrackPublication extends java.lang.Object implements AudioTrackPublication
A remote audio track publication represents aRemoteAudioTrackthat has been shared to aRoom.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AudioTrackgetAudioTrack()Returns the base audio track object of the published remote audio track.TrackPrioritygetPublishPriority()Returns theTrackPriorityset by the publisher for the correspondingRemoteAudioTrack.RemoteAudioTrackgetRemoteAudioTrack()Returns the published remote audio track.java.lang.StringgetTrackName()Returns the name of the published audio track.java.lang.StringgetTrackSid()Returns the remote audio track's server identifier.booleanisTrackEnabled()Check if remote audio track is enabled.booleanisTrackSubscribed()Check if the remote audio track is subscribed to by theLocalParticipant.
-
-
-
Method Detail
-
getTrackSid
@NonNull public java.lang.String getTrackSid()
Returns the remote audio track's server identifier. This value uniquely identifies the remote audio track within the scope of aRoom.- Specified by:
getTrackSidin interfaceTrackPublication
-
getAudioTrack
@Nullable public AudioTrack getAudioTrack()
Returns the base audio track object of the published remote audio track.nullis returned if the track is not subscribed to.- Specified by:
getAudioTrackin interfaceAudioTrackPublication- Returns:
- the published audio track.
- See Also:
LocalAudioTrackPublication,RemoteAudioTrackPublication
-
getTrackName
@NonNull public java.lang.String getTrackName()
Returns the name of the published audio track. An empty string is returned if no track name was specified.- Specified by:
getTrackNamein interfaceTrackPublication
-
isTrackEnabled
public boolean isTrackEnabled()
Check if remote audio track is enabled.- Specified by:
isTrackEnabledin interfaceTrackPublication
-
isTrackSubscribed
public boolean isTrackSubscribed()
Check if the remote audio track is subscribed to by theLocalParticipant.
-
getPublishPriority
@NonNull public TrackPriority getPublishPriority()
Returns theTrackPriorityset by the publisher for the correspondingRemoteAudioTrack. ReturnsTrackPriority.STANDARDif no priority was specified by the publisher.
-
getRemoteAudioTrack
@Nullable public RemoteAudioTrack getRemoteAudioTrack()
Returns the published remote audio track.nullis returned if the track is not subscribed to.
-
-