You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 00b0daf
Browse filesBrowse the repository at this point in the historyBrowse files
fix: apply data channel priority and reject a malformed certificate
RTCDataChannelInit.priority was looked up natively but never copied
into the native init, so every data channel was created with low
priority and announced as such to the remote peer. Copy it, leaving it
unset when null, and add RTCDataChannel.getPriority(), which rounds a
priority the remote peer announced between two levels up to the next.
A certificate in RTCConfiguration.certificates that did not parse hit
an RTC_CHECK and aborted the JVM. Throw a RuntimeException instead, and
a NullPointerException for a null entry, from both createPeerConnection
and setConfiguration, which now catch conversion errors rather than
letting a C++ exception leave the JNI call.
`getPriority()` returns a channel's priority; a channel the remote peer opened has the priority it announced. WebRTC only uses the priority to share the connection between channels when SCTP message interleaving is on, which needs the field trial `WebRTC-DataChannelMessageInterleaving/Enabled/` on both peers (see [Field Trials](/guide/advanced/field-trials)). Without it, channels take turns regardless of priority.
73
+
72
74
## Handling Data Channel Events
73
75
74
76
To receive events from a data channel, you need to implement the `RTCDataChannelObserver` interface and register it with the data channel:
0 commit comments