public class RemoteDataTrackPublication extends 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.
|
String |
getTrackName()
Returns the name of the published data track.
|
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 . |
public String getTrackSid()
Room
.getTrackSid
in interface TrackPublication
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
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 RemoteDataTrack
. Returns TrackPriority.STANDARD
if no priority was specified by the
publisher.public RemoteDataTrack getRemoteDataTrack()
null
is returned if the track is not
subscribed to.5.13.0