Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Merge branch 'master' of github.com:jitsi/jitsi-meet

hristoterezov02ca5e573242
diff --cc libs/modules/RTC.bundle.js
index af91415b62,dfb3918f31..bf676bbcdb
--- a/libs/modules/RTC.bundle.js
+++ b/libs/modules/RTC.bundle.js
@@@ -149,12 -152,11 +149,12 @@@ var DataChannels
* Binds "ondatachannel" event listener to given PeerConnection instance.
* @param peerConnection WebRTC peer connection instance.
*/
- bindDataChannelListener: function (peerConnection) {
+ init: function (peerConnection, emitter) {
if(!config.openSctp)
- retrun;
+ return;
peerConnection.ondatachannel = this.onDataChannel;
+ eventEmitter = emitter;
// Sample code for opening new data channel from Jitsi Meet to the bridge.
// Although it's not a requirement to open separate channels from both bridge
diff --cc modules/RTC/DataChannels.js
index b0d39dd225,ec2a9e7000..6d371664c9
--- a/modules/RTC/DataChannels.js
+++ b/modules/RTC/DataChannels.js
@@@ -148,12 -151,11 +148,12 @@@ var DataChannels
* Binds "ondatachannel" event listener to given PeerConnection instance.
* @param peerConnection WebRTC peer connection instance.
*/
- bindDataChannelListener: function (peerConnection) {
+ init: function (peerConnection, emitter) {
if(!config.openSctp)
- retrun;
+ return;
peerConnection.ondatachannel = this.onDataChannel;
+ eventEmitter = emitter;
// Sample code for opening new data channel from Jitsi Meet to the bridge.
// Although it's not a requirement to open separate channels from both bridge