react_hsbc_teller 0.7.9 → 0.8.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": "react_hsbc_teller",
3
- "version": "0.7.9",
3
+ "version": "0.8.0",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -37,7 +37,7 @@ class Video extends Component {
37
37
  cancel = axios.CancelToken.source()
38
38
  signCanvas = React.createRef();
39
39
  state = {
40
- sessionType: true,
40
+ sessionType: false,
41
41
  isWhiteboard: false,
42
42
  isSelect: '',
43
43
  loading: false,
@@ -1140,7 +1140,7 @@ class Video extends Component {
1140
1140
  console.log('deviceId' + devicesInfo[i].deviceId);
1141
1141
 
1142
1142
  b.actionid = devicesInfo[i].deviceId;
1143
- b.groupId = devicesInfo[i].groupId;
1143
+ b.groupId = devicesInfo[i].groupId || 'empty';
1144
1144
  if (
1145
1145
  devicesInfo[i].label === '' ||
1146
1146
  devicesInfo[i].label === undefined ||
@@ -1154,7 +1154,7 @@ class Video extends Component {
1154
1154
  } else if (devicesInfo[i].kind === 'audioinput') {
1155
1155
  // 麦克风
1156
1156
  b.actionid = devicesInfo[i].deviceId;
1157
- b.groupId = devicesInfo[i].groupId;
1157
+ b.groupId = devicesInfo[i].groupId || 'empty';
1158
1158
  if (
1159
1159
  devicesInfo[i].label === '' ||
1160
1160
  devicesInfo[i].label === undefined ||
@@ -1168,7 +1168,7 @@ class Video extends Component {
1168
1168
  } else if (devicesInfo[i].kind === 'audiooutput') {
1169
1169
  // 喇叭
1170
1170
  b.actionid = devicesInfo[i].deviceId;
1171
- b.groupId = devicesInfo[i].groupId;
1171
+ b.groupId = devicesInfo[i].groupId || 'empty';
1172
1172
  if (
1173
1173
  devicesInfo[i].label === '' ||
1174
1174
  devicesInfo[i].label === undefined ||
@@ -1205,10 +1205,11 @@ class Video extends Component {
1205
1205
  arr2[obj2[i].groupId] = true;
1206
1206
  }
1207
1207
  }
1208
+ console.log(objList, objList1, objList2 )
1208
1209
  this.setState({
1209
1210
  cameraList: objList,
1210
1211
  microphoneList: objList1,
1211
- speakerList: [objList2[0]]
1212
+ speakerList: [objList2.length>0? objList2[0]: []]
1212
1213
  })
1213
1214
  if (!this.state.appId && this.state.sessionType) {
1214
1215
  this.mpaasSig(data);
@@ -1318,6 +1319,9 @@ class Video extends Component {
1318
1319
  // 发布媒体流成功
1319
1320
  this.test_controller.OnPublishSucc = (sid) => {
1320
1321
  console.log('发布媒体流成功', sid)
1322
+ this.setState({
1323
+ sessionType: true
1324
+ })
1321
1325
  if (sid == document.getElementById('video20').name) {
1322
1326
  callNimIM('sendCustomCmdMsg', {
1323
1327
  customId: this.state.imRoomId,