WebRTC refactor. data channels, STUN/TURN support. #28964
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A big refactor to the WebRTC module. API is now considered quite stable.
Highlights:
WebRTCPeer
toWebRTCPeerConnection
.WebRTCPeerConnection
no longer act asPacketPeer
, it only handle the connection itself (a bit likeTCP_Server
)WebRTCDataChannel
class which inherits fromPacketPeer
to handle data transfer.WebRTCPeerConnection.initialize
method to create a new connection with the desired configuration provided as dictionary (see MDN docs).WebRTCPeerConnection.create_data_channel
method to create a data channel for the given connection. The connection must be inSTATE_NEW
as specified by the standard (see MDN docs for options).data_channel_received
signal toWebRTCPeerConnection
for in-band (not negotiated) channels.WebRTCPeerConnection
offer_created
signal tosession_description_created
.WebRTCPeerConnection
new_ice_candidate
signal toice_candidate_created
EDIT:
webrtc-native release (binaries win/lin 32/64): https://github.com/Faless/webrtc-native/releases/tag/0.2.90
Demo project (with bundled libraries): https://github.com/Faless/webrtc-native-demo/releases/tag/0.2.90
EDIT2: Added doc screens

