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
@@ -65,6 +72,11 @@ defmodule ExWebRTC.PeerConnection do
65
72
66
73
Most of the messages match the [RTCPeerConnection events](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection#events),
67
74
except for:
75
+
* `:dtls_transport_state_change` - traditional WebRTC implementation does not emit such event.
76
+
Instead, developer can read DTLS transport state by iterating over RTP receiver/senders, and checking their
77
+
DTLS transports states. See https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/transport.
78
+
However, because Elixir WebRTC creates a single DTLS transport for all receivers and senders, there is one generic
79
+
notification informing about DTLS transport state.
68
80
* `:track_muted`, `:track_ended` - these match the [MediaStreamTrack events](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack#events).
69
81
* `:data` - data received from DataChannel identified by its `ref`.
70
82
* `:rtp` and `:rtcp` - these contain packets received by the PeerConnection. The third element of `:rtp` tuple is a simulcast RID and is set to `nil` if simulcast
@@ -79,6 +91,7 @@ defmodule ExWebRTC.PeerConnection do
0 commit comments