podchat-browser 11.3.1 → 11.3.2-snapshot.0

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": "podchat-browser",
3
- "version": "11.3.1",
3
+ "version": "11.3.2-snapshot.0",
4
4
  "description": "Javascript SDK to use POD's Chat Service - Browser Only",
5
5
  "main": "./src/chat.js",
6
6
  "scripts": {
@@ -739,12 +739,18 @@
739
739
  if(i === 'screenShare')
740
740
  continue;
741
741
 
742
- if (params.callVideo) {
742
+ if(callUsers[i].video) {
743
743
  callController.startParticipantVideo(i);
744
744
  }
745
- if(params.callAudio) {
745
+ if(!callUsers[i].mute) {
746
746
  callController.startParticipantAudio(i);
747
747
  }
748
+ /*if (params.callVideo) {
749
+ callController.startParticipantVideo(i);
750
+ }*/
751
+ /*if(params.callAudio) {
752
+ callController.startParticipantAudio(i);
753
+ }*/
748
754
  }
749
755
  },
750
756
  setupCallParticipant: function (participant) {
@@ -1246,7 +1252,7 @@
1246
1252
  if(callUsers[i] && callUsers[i].peers[videoTopic] && callUsers[i].peers[videoTopic].peerConnection.connectionState === 'failed'){
1247
1253
  this.shouldReconnectTopic(i, videoTopic, 'video', callUsers[i].direction)
1248
1254
  }
1249
- if(callUsers[i] && callUsers[i].peers[audioTopic] && callUsers[i].peers[videoTopic].peerConnection.connectionState === 'failed'){
1255
+ if(callUsers[i] && callUsers[i].peers[audioTopic] && callUsers[i].peers[audioTopic].peerConnection.connectionState === 'failed'){
1250
1256
  this.shouldReconnectTopic(i, audioTopic, 'audio', callUsers[i].direction)
1251
1257
  }
1252
1258
  }