open-webrtc-toolkit / owt-client-native

Open WebRTC Toolkit client SDK for native Windows/Linux/iOS applications.
https://01.org/open-webrtc-toolkit
Apache License 2.0
384 stars 180 forks source link

Remove SDP munging for P2P mode. #706

Open jianjunz opened 1 year ago

jianjunz commented 1 year ago

This change replaces SDP munging with setCodecPreference for P2P mode. Changes of OWT APIs are needed to fully support setCodecPreference. For example, OWT APIs allow different bitrate settings for different codecs, which is not supported by WebRTC, so only the first codec's bitrate setting takes effect at this time.