@reactoo/watchtogether-sdk-js 2.5.65 → 2.5.68

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactoo/watchtogether-sdk-js",
3
- "version": "2.5.65",
3
+ "version": "2.5.68",
4
4
  "description": "Javascript SDK for Reactoo",
5
5
  "main": "src/index.js",
6
6
  "unpkg": "dist/watchtogether-sdk.min.js",
@@ -1,14 +1,26 @@
1
1
  'use strict';
2
2
 
3
3
  export default {
4
- getUserStream({hasVideo, isHd, aDeviceId, vDeviceId, lfps, autoGainControl = false, muteAudio = false, muteVideo = false} = {}) {
4
+ getUserStream({
5
+ hasVideo,
6
+ isHd,
7
+ aDeviceId,
8
+ vDeviceId,
9
+ lfps,
10
+ autoGainControl = false,
11
+ echoCancellation = true,
12
+ noiseSuppression = true,
13
+ channelCount = 1,
14
+ muteAudio = false,
15
+ muteVideo = false} = {}
16
+ ) {
5
17
  let fullConstraints = {
6
18
  audio: {
7
19
  ...(aDeviceId && {deviceId: {exact:aDeviceId}}),
8
20
  autoGainControl,
9
- echoCancellation: true,
10
- noiseSuppression: true,
11
- channelCount: 1
21
+ echoCancellation,
22
+ noiseSuppression,
23
+ channelCount
12
24
  },
13
25
  video: {
14
26
  ...(vDeviceId && {deviceId: {exact:vDeviceId}}),
@@ -303,7 +303,7 @@ class RoomSession {
303
303
  case 'participant':
304
304
  return 'removeRemoteParticipant';
305
305
  case 'talkback':
306
- return 'addRemoteTalkback';
306
+ return 'removeRemoteTalkback';
307
307
  case 'monitor':
308
308
  return 'removeRemoteTalkback';
309
309
  case 'observer':