Properties:
Name | Type | Argument | Description |
---|---|---|---|
isEnabled |
boolean | true |
|
kind |
Track.Kind | "data" |
|
maxPacketLifeTime |
number |
<nullable> |
If non-null, this represents a time limit (in milliseconds) during which data will be transmitted or retransmitted if not acknowledged on the underlying RTCDataChannel. |
maxRetransmits |
number |
<nullable> |
If non-null, this represents the number of times the data will be retransmitted if not successfully received on the underlying RTCDataChannel. |
ordered |
boolean | true if data on the RemoteDataTrack can be received out-of-order. |
|
reliable |
boolean | This is true if both
|
Fires:
Extends
Members
-
id
-
The RemoteDataTrack's ID.
- Overrides:
- Deprecated:
-
- Use the parent RemoteTrackPublication's .trackName or .trackSid instead
Properties:
Type Description Track.ID -
isSubscribed
-
Whether the RemoteDataTrack is subscribed to
- Deprecated:
-
- Use the parent RemoteTrackPublication's .isSubscribed instead
Properties:
Type Description boolean -
sid
-
The SID assigned to the RemoteMediaTrack
Properties:
Type Description Track.SID
Events
-
message
-
A message was received over the RemoteDataTrack.
Parameters:
Name Type Description data
string | ArrayBuffer track
RemoteDataTrack The RemoteDataTrack that received the message
-
unsubscribed
-
The RemoteDataTrack was unsubscribed from.
Parameters:
Name Type Description track
RemoteDataTrack The RemoteDataTrack that was unsubscribed from
- Deprecated:
-
- Use the parent RemoteTrackPublication's "unsubscribed" event instead