meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8.17k stars 2.47k forks source link

Update janus.js to allow a flexible usage of insertable streams and e2ee #3267

Closed veeting closed 1 year ago

veeting commented 1 year ago

This PR will allow a more flexible usage of insertable streams and e2ee.

When using externalEncryption in offer or answer janus.js will activate "encodedInsertableStreams" and will use e2ee: true parameter, even if encodedInsertableStreams is not supported and even if "transforms" callbacks are not provided.

The change also allows developers to handle the encryption of the streams (either with createEncodedStreams or RTCRtpScriptTransform) outside of janus.js.

lminiero commented 1 year ago

Thanks, merging then!