Package com.twilio.video
Class RemoteDataTrack
java.lang.Object
com.twilio.video.DataTrack
com.twilio.video.RemoteDataTrack
- All Implemented Interfaces:
Track
A remote data track represents a unidirectional remote data source from which messages can be
received from a participant.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Interface that providesRemoteDataTrack
events. -
Method Summary
Modifier and TypeMethodDescriptiongetSid()
Returns the remote data track's server identifier.void
setListener
(RemoteDataTrack.Listener listener) Set the remote data track listener.Methods inherited from class com.twilio.video.DataTrack
getMaxPacketLifeTime, getMaxRetransmits, getName, isEnabled, isOrdered, isReliable
-
Method Details
-
getSid
Returns the remote data track's server identifier. This value uniquely identifies the remote data track within the scope of aRoom
. -
setListener
Set the remote data track listener. The thread on which this method is called is the same thread used to notify of received data track messages.- Parameters:
listener
- data track listener
-