elixir-webrtc / ex_webrtc

An Elixir implementation of the W3C WebRTC API
Apache License 2.0
270 stars 8 forks source link

Create transceivers on set_remote_description #2

Closed mickel8 closed 8 months ago

mickel8 commented 8 months ago

Definitely not perfect and for sure bugged but maybe this can be a base for further work.

The idea is that we iterate over mlines in SDP, we try to find a transceiver for a given mline, if it exists we potentially update its configuraiton. If it doesn't exist we create a new one. At the end we compare previous transceivers with new transceivers and try to find new MediaStreamTracks

codecov[bot] commented 8 months ago

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Files Coverage Δ
lib/ex_webrtc/media_stream_track.ex 100.00% <100.00%> (ø)
lib/ex_webrtc/peer_connection/configuration.ex 50.00% <ø> (ø)
lib/ex_webrtc/rtp_transceiver.ex 100.00% <100.00%> (ø)
lib/ex_webrtc/utils.ex 0.00% <0.00%> (ø)
lib/ex_webrtc/peer_connection.ex 35.64% <84.21%> (ø)

... and 1 file with indirect coverage changes

:loudspeaker: Thoughts on this report? Let us know!.