ep_webrtc 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git@github.com:ether/ep_webrtc.git",
6
6
  "type": "git"
7
7
  },
8
- "version": "2.0.0",
8
+ "version": "2.0.1",
9
9
  "description": "WebRTC based audio/video chat to Etherpad",
10
10
  "author": "John McLear <john@mclear.co.uk>",
11
11
  "contributors": [],
@@ -2405,7 +2405,7 @@ function shimCreateOfferLegacy(window) {
2405
2405
  }
2406
2406
  }
2407
2407
  } else if (offerOptions.offerToReceiveAudio === true && !audioTransceiver) {
2408
- this.addTransceiver('audio');
2408
+ this.addTransceiver('audio', { direction: 'recvonly' });
2409
2409
  }
2410
2410
 
2411
2411
  if (typeof offerOptions.offerToReceiveVideo !== 'undefined') {
@@ -2430,7 +2430,7 @@ function shimCreateOfferLegacy(window) {
2430
2430
  }
2431
2431
  }
2432
2432
  } else if (offerOptions.offerToReceiveVideo === true && !videoTransceiver) {
2433
- this.addTransceiver('video');
2433
+ this.addTransceiver('video', { direction: 'recvonly' });
2434
2434
  }
2435
2435
  }
2436
2436
  return origCreateOffer.apply(this, arguments);