public class RemoteDataTrackPublication extends java.lang.Object implements DataTrackPublication
RemoteDataTrack
.Modifier and Type | Method and Description |
---|---|
DataTrack |
getDataTrack()
LocalDataTrackPublication and RemoteDataTrackPublication extend DataTrackPublication and each interface implements getDataTrack with different nullability
behavior. |
TrackPriority |
getPublishPriority()
Returns the
TrackPriority set by the publisher for the corresponding RemoteDataTrack . |
RemoteDataTrack |
getRemoteDataTrack()
Returns the published remote data track.
|
java.lang.String |
getTrackName()
Returns the name of the published data track.
|
java.lang.String |
getTrackSid()
Returns the remote data track's server identifier.
|
boolean |
isTrackEnabled()
Returns true if the published data track is enabled or false otherwise.
|
boolean |
isTrackSubscribed()
Check if the remote data track is subscribed to by the
LocalParticipant . |
@NonNull public java.lang.String getTrackSid()
Room
.getTrackSid
in interface TrackPublication
@Nullable public DataTrack getDataTrack()
DataTrackPublication
LocalDataTrackPublication
and RemoteDataTrackPublication
extend DataTrackPublication
and each interface implements getDataTrack with different nullability
behavior. LocalDataTrackPublication.getDataTrack()
is annotated as @NonNull and getDataTrack()
is annotated as @Nullable.
This method is marked as @Nullable because at least one of the subclasses returns null.
getDataTrack
in interface DataTrackPublication
null
is returned if the track is not
subscribed to.LocalDataTrackPublication
,
RemoteDataTrackPublication
@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 RemoteDataTrack
. Returns TrackPriority.STANDARD
if no priority was specified by the
publisher.@Nullable public RemoteDataTrack getRemoteDataTrack()
null
is returned if the track is not
subscribed to.6.4.1