react_hsbc_teller 1.9.14 → 1.9.16

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.
@@ -221,33 +221,18 @@ class Video extends Component {
221
221
  isPictureInPicture: false,
222
222
  clickedFacial: false,
223
223
  clickedOcr: false,
224
- videoOneName: '',
225
- videoTwoName: '',
226
- videoThreeName: '',
227
- videoFourName: '',
228
- videoFiveName: '',
229
- videoSixName: '',
230
- videoSevenName: '',
231
- videoEightName: '',
232
- videoTenName: '',
233
- videoNineName: '',
234
- videoTwelveName: '',
235
- videoElevenName: '',
236
224
  tabTitles: [
237
225
  ],
238
- videoList: [],
239
- voiceVideoOne: false,
240
- voiceVideoTwo: false,
241
- voiceVideoThree: false,
242
- voiceVideoFour: false,
243
- voiceVideoFive: false,
244
- voiceVideoSix: false,
245
- voiceVideoSeven: false,
246
- voiceVideoEight: false,
247
- voiceVideoNine: false,
248
- voiceVideoTen: false,
249
- voiceVideoEleven: false,
250
- voiceVideoTwelve: false,
226
+ videoList: [{
227
+ videoName: '',
228
+ mute: false,
229
+ noVideo: false,
230
+ isPIBIntranet: false,
231
+ idIndex: 1,
232
+ userSide: 1,
233
+ userId: '',
234
+ hasOcr: 0, // 0: 未做ocr 1:非身份证ocr 2:身份证ocr
235
+ }],
251
236
  cameraList: [],
252
237
  microphoneList: [],
253
238
  speakerList: [],
@@ -259,59 +244,9 @@ class Video extends Component {
259
244
  analyserData: new Map(),
260
245
  analyserHeight: new Map(),
261
246
  OnVolumeAnalyserMap: new Map(),
262
- noVideoOne: false,
263
- noVideoTwo: false,
264
- noVideoThree: false,
265
- noVideoFour: false,
266
- noVideoFive: false,
267
- noVideoSix: false,
268
- noVideoSeven: false,
269
- noVideoEight: false,
270
- noVideoNine: false,
271
- noVideoTen: false,
272
- noVideoEleven: false,
273
- noVideoTwelve: false,
274
247
  manualClose: false,
275
248
  defaultValue: '1',
276
249
  customOcrSid: '',
277
- isPIBIntranet: [
278
- {
279
- type: false
280
- },
281
- {
282
- type: false
283
- },
284
- {
285
- type: false
286
- },
287
- {
288
- type: false
289
- },
290
- {
291
- type: false
292
- },
293
- {
294
- type: false
295
- },
296
- {
297
- type: false
298
- },
299
- {
300
- type: false
301
- },
302
- {
303
- type: false
304
- },
305
- {
306
- type: false
307
- },
308
- {
309
- type: false
310
- },
311
- {
312
- type: false
313
- }
314
- ],
315
250
  shareMaskState: false,
316
251
  idCardName: '',
317
252
  idCardNameFace: '',
@@ -357,7 +292,7 @@ class Video extends Component {
357
292
  saveLog = (val) => {
358
293
  axios({
359
294
  method: 'get',
360
- baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.14&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
295
+ baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.16&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
361
296
 
362
297
  }).then(res => {
363
298
 
@@ -532,6 +467,7 @@ class Video extends Component {
532
467
  // 允许最大断网时间 (超过未重连, 直接关闭)
533
468
  config_param.network_check_timeout = 10000;
534
469
  this.test_controller.Connect(config_param)
470
+ this.saveLog('mrtc connect start')
535
471
  };
536
472
  // 初始化视频
537
473
  ConnectMRTC = () => {
@@ -588,6 +524,7 @@ class Video extends Component {
588
524
  }
589
525
  ];
590
526
  this.test_controller.InitRoomConfig(config_param)
527
+ this.saveLog('mrtc InitRoomConfig start')
591
528
  };
592
529
  rateAll = async () => {
593
530
  let data = ''
@@ -829,6 +766,13 @@ class Video extends Component {
829
766
  console.log(this.state.faceCustomerUid, userInfo)
830
767
  if (!userInfo || !userInfo.idCardNumber) {
831
768
  console.log('没有身份证ocr信息')
769
+ this.setState({
770
+ loadingFace: false,
771
+ faceResuly: 'fail',
772
+ isFaceImage: '',
773
+ // faceFailReason: result.message
774
+ })
775
+ this.errorCodeClick('face', 201)
832
776
  return
833
777
  }
834
778
  let result = await API.contrastFaceVerify({
@@ -864,6 +808,7 @@ class Video extends Component {
864
808
  // faceFailReason: result.message
865
809
  })
866
810
  this.errorCodeClick('face',result.code)
811
+ this.saveLog('meeting ID&V error, code=' + result.code )
867
812
  }
868
813
 
869
814
 
@@ -917,112 +862,17 @@ class Video extends Component {
917
862
  // 获取人员客户列表
918
863
  selectCustomer = (val) => {
919
864
  const list = []
920
- if (document.getElementById('video1').name && !this.state.isPIBIntranet[0].type) {
921
- console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText))
922
- // document.getElementById("feedId1").innerText
923
- list.push({
924
- feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).feedId,
925
- customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid,
926
- name: this.state.videoOneName,
927
- tourist: false
928
- })
929
- }
930
- if (document.getElementById('video2').name && !this.state.isPIBIntranet[1].type) {
931
- console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText))
932
- // document.getElementById("feedId1").innerText
933
- list.push({
934
- feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).feedId,
935
- customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid,
936
- name: this.state.videoTwoName,
937
- tourist: false
938
- })
939
- }
940
- if (document.getElementById('video3').name && !this.state.isPIBIntranet[2].type) {
941
- console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText))
942
- // document.getElementById("feedId1").innerText
943
- list.push({
944
- feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).feedId,
945
- customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid,
946
- name: this.state.videoThreeName,
947
- tourist: false
948
- })
949
- }
950
- if (document.getElementById('video4').name && !this.state.isPIBIntranet[3].type) {
951
- console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText))
952
- // document.getElementById("feedId1").innerText
953
- list.push({
954
- feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).feedId,
955
- customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid,
956
- name: this.state.videoFourName,
957
- tourist: false
958
- })
959
- }
960
- if (document.getElementById('video5').name && !this.state.isPIBIntranet[4].type) {
961
- console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText))
962
- // document.getElementById("feedId1").innerText
963
- list.push({
964
- feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).feedId,
965
- customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid,
966
- name: this.state.videoFiveName,
967
- tourist: false
968
- })
969
- }
970
- if (document.getElementById('video6').name && !this.state.isPIBIntranet[5].type) {
971
- console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText))
972
- list.push({
973
- feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
974
- customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
975
- name: this.state.videoSixName,
976
- tourist: false
977
- })
978
- }
979
- if (document.getElementById('video7').name && !this.state.isPIBIntranet[6].type) {
980
- list.push({
981
- feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).feedId,
982
- customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid,
983
- name: this.state.videoSevenName,
984
- tourist: false
985
- })
986
- }
987
- if (document.getElementById('video8').name && !this.state.isPIBIntranet[7].type) {
988
- list.push({
989
- feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).feedId,
990
- customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid,
991
- name: this.state.videoEightName,
992
- tourist: false
993
- })
994
- }
995
- if (document.getElementById('video9').name && !this.state.isPIBIntranet[8].type) {
996
- list.push({
997
- feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).feedId,
998
- customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid,
999
- name: this.state.videoNineName,
1000
- tourist: false
1001
- })
1002
- }
1003
- if (document.getElementById('video10').name && !this.state.isPIBIntranet[9].type) {
1004
- list.push({
1005
- feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).feedId,
1006
- customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid,
1007
- name: this.state.videoTenName,
1008
- tourist: false
1009
- })
1010
- }
1011
- if (document.getElementById('video11').name && !this.state.isPIBIntranet[10].type) {
1012
- list.push({
1013
- feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).feedId,
1014
- customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid,
1015
- name: this.state.videoElevenName,
1016
- tourist: false
1017
- })
1018
- }
1019
- if (document.getElementById('video12').name && !this.state.isPIBIntranet[11].type) {
1020
- list.push({
1021
- feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).feedId,
1022
- customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid,
1023
- name: this.state.videoTwelveName,
1024
- tourist: false
1025
- })
865
+ for (let i =1;i<=12;i++){
866
+ let item = this.state.videoList[i-1];
867
+ if (document.getElementById('video'+ i).name && !item.isPIBIntranet && item.userSide===1) {
868
+ // console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId"+i).innerText))
869
+ list.push({
870
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId"+i).innerText).feedId,
871
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId"+i).innerText).uid,
872
+ name: item.videoName,
873
+ tourist: false
874
+ })
875
+ }
1026
876
  }
1027
877
  console.log(list)
1028
878
  this.setState({
@@ -1143,110 +993,28 @@ class Video extends Component {
1143
993
  pictureInPictureClick = (val) => {
1144
994
  let interval
1145
995
  const list = []
1146
- if (document.getElementById('video1').name) {
1147
- list.push({
1148
- name: 'video1',
1149
- title: this.state.videoOneName,
1150
- voice: 'voiceVideoOne',
1151
- noVideo: this.state.noVideoOne
1152
- })
1153
- }
1154
996
  if (document.getElementById('publish_video1').name) {
1155
997
  list.push({
1156
998
  name: 'publish_video1',
1157
999
  title: this.props.meetingInfo.host ? this.props.meetingInfo.host : '客户经理1',
1158
- voice: 'voiceStatue',
1000
+ mute: this.state.voiceStatue,
1159
1001
  noVideo: false
1160
1002
  })
1161
1003
  }
1162
- if (document.getElementById('video2').name) {
1163
- list.push({
1164
- name: 'video2',
1165
- title: this.state.videoTwoName,
1166
- voice: 'voiceVideoTwo',
1167
- noVideo: this.state.noVideoTwo
1168
- })
1169
- }
1170
- if (document.getElementById('video3').name) {
1171
- list.push({
1172
- name: 'video3',
1173
- title: this.state.videoThreeName,
1174
- voice: 'voiceVideoThree',
1175
- noVideo: this.state.noVideoThree
1176
- })
1177
- }
1178
- if (document.getElementById('video4').name) {
1179
- list.push({
1180
- name: 'video4',
1181
- title: this.state.videoFourName,
1182
- voice: 'voiceVideoFour',
1183
- noVideo: this.state.noVideoFour
1184
- })
1185
- }
1186
- if (document.getElementById('video5').name) {
1187
- list.push({
1188
- name: 'video5',
1189
- title: this.state.videoFiveName,
1190
- voice: 'voiceVideoFive',
1191
- noVideo: this.state.noVideoFive
1192
- })
1193
- }
1194
- if (document.getElementById('video6').name) {
1195
- list.push({
1196
- name: 'video6',
1197
- title: this.state.videoSixName,
1198
- voice: 'voiceVideoSix',
1199
- noVideo: this.state.noVideoSix
1200
- })
1201
- }
1202
-
1203
- if (document.getElementById('video7').name) {
1204
- list.push({
1205
- name: 'video7',
1206
- title: this.state.videoSevenName,
1207
- voice: 'voiceVideoSeven',
1208
- noVideo: this.state.noVideoSeven
1209
- })
1210
- }
1211
- if (document.getElementById('video8').name) {
1212
- list.push({
1213
- name: 'video8',
1214
- title: this.state.videoEightName,
1215
- voice: 'voiceVideoEight',
1216
- noVideo: this.state.noVideoEight
1217
- })
1218
- }
1219
- if (document.getElementById('video9').name) {
1220
- list.push({
1221
- name: 'video9',
1222
- title: this.state.videoNineName,
1223
- voice: 'voiceVideoNine',
1224
- noVideo: this.state.noVideoNine
1225
- })
1226
- }
1227
- if (document.getElementById('video10').name) {
1228
- list.push({
1229
- name: 'video10',
1230
- title: this.state.videoTenName,
1231
- voice: 'voiceVideoTen',
1232
- noVideo: this.state.noVideoTen
1233
- })
1234
- }
1235
- if (document.getElementById('video11').name) {
1236
- list.push({
1237
- name: 'video11',
1238
- title: this.state.videoElevenName,
1239
- voice: 'voiceVideoEleven',
1240
- noVideo: this.state.noVideoEleven
1241
- })
1242
- }
1243
- if (document.getElementById('video12').name) {
1244
- list.push({
1245
- name: 'video12',
1246
- title: this.state.videoTwelveName,
1247
- voice: 'voiceVideoTwelve',
1248
- noVideo: this.state.noVideoTwelve
1249
- })
1004
+ console.log(this.state.videoList)
1005
+ var sortedlist = [...this.state.videoList]
1006
+ sortedlist.sort((a, b)=>{
1007
+ return a.order - b.order;
1008
+ })
1009
+ for (let i =1;i<=12;i++){
1010
+ if(document.getElementById('video'+i).name){
1011
+ list.push({
1012
+ name: 'video' + i,
1013
+ title: sortedlist[i-1].videoName,
1014
+ mute: sortedlist[i-1].mute,
1015
+ noVideo: sortedlist[i-1].noVideo
1016
+ })
1017
+ }
1250
1018
  }
1251
1019
  console.log(list)
1252
1020
  this.state.listVideoPicture = list
@@ -1367,7 +1135,7 @@ class Video extends Component {
1367
1135
  let microphoneSize = 50
1368
1136
  var img = document.getElementById("icon_huatong");
1369
1137
  var img1 = document.getElementById("icon_huatong_close");
1370
- if (this.state[this.state.listVideoPicture[i].voice]) {
1138
+ if (this.state.listVideoPicture[i].mute) {
1371
1139
  cobj.drawImage(img1, 10, 360 * (i + 1) - 60, microphoneSize, microphoneSize);
1372
1140
  } else {
1373
1141
  cobj.drawImage(img, 10, 360 * (i + 1) - 60, microphoneSize, microphoneSize);
@@ -1532,167 +1300,38 @@ class Video extends Component {
1532
1300
  // this.endSession('customerHangUp')
1533
1301
  // }
1534
1302
  // }
1535
- else if (Mival.typeId == 3002) {
1303
+ else if (Mival.typeId == 3002) { // app进入后台
1536
1304
  if (Mival.data.sessionId == this.state.sessionId) {
1537
- if (Mival.data.userId == this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid) {
1538
- this.setState({
1539
- noVideoOne: true
1540
- })
1541
- }
1542
- if (Mival.data.userId == (document.getElementById("feedId2").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid : '')) {
1543
-
1544
- this.setState({
1545
- noVideoTwo: true
1546
- })
1547
- }
1548
- if (Mival.data.userId == (document.getElementById("feedId3").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid : '')) {
1549
- this.setState({
1550
- noVideoThree: true
1551
- })
1552
-
1553
- }
1554
- if (Mival.data.userId == (document.getElementById("feedId4").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid : '')) {
1555
-
1556
- this.setState({
1557
- noVideoFour: true
1558
- })
1559
- }
1560
- if (Mival.data.userId == (document.getElementById("feedId5").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid : '')) {
1561
- this.setState({
1562
- noVideoFive: true
1563
- })
1564
-
1565
- }
1566
- if (Mival.data.userId == (document.getElementById("feedId6").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid : '')) {
1567
-
1568
- this.setState({
1569
- noVideoSix: true
1570
- })
1571
- }
1572
- if (Mival.data.userId == (document.getElementById("feedId7").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid : '')) {
1573
-
1574
- this.setState({
1575
- noVideoSeven: true
1576
- })
1577
- }
1578
- if (Mival.data.userId == (document.getElementById("feedId8").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid : '')) {
1579
- this.setState({
1580
- noVideoEight: true
1581
- })
1582
-
1583
- }
1584
- if (Mival.data.userId == (document.getElementById("feedId9").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid : '')) {
1585
-
1586
- this.setState({
1587
- noVideoNine: true
1588
- })
1589
- }
1590
- if (Mival.data.userId == (document.getElementById("feedId10").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid : '')) {
1591
- this.setState({
1592
- noVideoTen: true
1593
- })
1594
-
1595
- }
1596
- if (Mival.data.userId == (document.getElementById("feedId11").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid : '')) {
1597
-
1598
- this.setState({
1599
- noVideoEleven: true
1600
- })
1601
- }
1602
- if (Mival.data.userId == (document.getElementById("feedId12").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid : '')) {
1603
-
1604
- this.setState({
1605
- noVideoTwelve: true
1606
- })
1305
+ for(let i=1;i<=12;i++){
1306
+ if(Mival.data.userId == (document.getElementById("feedId"+i).innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId"+i).innerText).uid : '')) {
1307
+ this.state.videoList[i-1].noVideo = true
1308
+ }
1607
1309
  }
1608
- if (this.state.isPictureInPicture) {
1310
+ this.setState({
1311
+ videoList: this.state.videoList
1312
+ }, ()=>{
1609
1313
  this.pictureInPicture('Refresh')
1610
- }
1611
-
1314
+ })
1612
1315
  }
1613
1316
  }
1614
- else if (Mival.typeId == 3003) {
1317
+ else if (Mival.typeId == 3003) { // app进入前台
1615
1318
  if (Mival.data.sessionId == this.state.sessionId) {
1616
- if (Mival.data.userId == this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid) {
1617
- this.setState({
1618
- noVideoOne: false
1619
- })
1620
- }
1621
- if (Mival.data.userId == (document.getElementById("feedId2").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid : '')) {
1622
-
1623
- this.setState({
1624
- noVideoTwo: false
1625
- })
1626
- }
1627
- if (Mival.data.userId == (document.getElementById("feedId3").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid : '')) {
1628
- this.setState({
1629
- noVideoThree: false
1630
- })
1631
-
1632
- }
1633
- if (Mival.data.userId == (document.getElementById("feedId4").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid : '')) {
1634
-
1635
- this.setState({
1636
- noVideoFour: false
1637
- })
1638
- }
1639
- if (Mival.data.userId == (document.getElementById("feedId5").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid : '')) {
1640
- this.setState({
1641
- noVideoFive: false
1642
- })
1643
-
1644
- }
1645
- if (Mival.data.userId == (document.getElementById("feedId6").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid : '')) {
1646
-
1647
- this.setState({
1648
- noVideoSix: false
1649
- })
1650
- }
1651
- if (Mival.data.userId == (document.getElementById("feedId7").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid : '')) {
1652
-
1653
- this.setState({
1654
- noVideoSeven: false
1655
- })
1656
- }
1657
- if (Mival.data.userId == (document.getElementById("feedId8").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid : '')) {
1658
- this.setState({
1659
- noVideoEight: false
1660
- })
1661
-
1662
- }
1663
- if (Mival.data.userId == (document.getElementById("feedId9").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid : '')) {
1664
-
1665
- this.setState({
1666
- noVideoNine: false
1667
- })
1668
- }
1669
- if (Mival.data.userId == (document.getElementById("feedId10").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid : '')) {
1670
- this.setState({
1671
- noVideoTen: false
1672
- })
1673
-
1674
- }
1675
- if (Mival.data.userId == (document.getElementById("feedId11").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid : '')) {
1676
-
1677
- this.setState({
1678
- noVideoEleven: false
1679
- })
1680
- }
1681
- if (Mival.data.userId == (document.getElementById("feedId12").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid : '')) {
1682
-
1683
- this.setState({
1684
- noVideoTwelve: false
1685
- })
1319
+ for(let i=1;i<=12;i++){
1320
+ if(Mival.data.userId == (document.getElementById("feedId"+i).innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId"+i).innerText).uid : '')) {
1321
+ this.state.videoList[i-1].noVideo = false
1322
+ }
1686
1323
  }
1687
- if (this.state.isPictureInPicture) {
1324
+ this.setState({
1325
+ videoList: this.state.videoList
1326
+ }, ()=>{
1688
1327
  this.pictureInPicture('Refresh')
1689
- }
1328
+ })
1690
1329
  }
1691
1330
  }
1692
1331
  else if (Mival.typeId == 1220) {
1693
1332
  // 一炒多的图片 1214
1694
1333
  if (Mival.sessionId == this.state.sessionId) {
1695
- this.saveLog('imgCallback success' + Mival.data.type)
1334
+ this.saveLog('imgCallback success, typeId=1220, type=' + Mival.data.type)
1696
1335
  this.tabTitlesClick('customerScreen', 'delect')
1697
1336
  this.props.imgCallback({
1698
1337
  type: Mival.data.type + '',
@@ -1703,11 +1342,12 @@ class Video extends Component {
1703
1342
  }
1704
1343
  } else if (Mival.typeId == 1321) {
1705
1344
  this.getBase64Image(Mival.fileName)
1345
+ this.saveLog('signCallback success, typeId=1321, fileName=' + Mival.fileName)
1706
1346
  } else if (Mival.typeId == 1216) {
1707
1347
  // 签字回调 1213
1708
1348
  if (Mival.sessionId == this.state.sessionId) {
1709
1349
  this.tabTitlesClick('customerScreen', 'delect')
1710
- this.saveLog('signatureCallback success')
1350
+ this.saveLog('signatureCallback success, typeId=1216,')
1711
1351
  this.props.signatureCallback({
1712
1352
  errorType: 0
1713
1353
  })
@@ -1717,6 +1357,7 @@ class Video extends Component {
1717
1357
  // 1-开启,2-关闭
1718
1358
  if (Mival.type == 1) {
1719
1359
  this.switchExternal()
1360
+ this.saveLog('whiteboard start, typeId=1218,')
1720
1361
  } else if (Mival.type == 2) {
1721
1362
  if (streamShare) {
1722
1363
  streamShare.getTracks().forEach(track => track.stop());
@@ -1735,174 +1376,35 @@ class Video extends Component {
1735
1376
  isWhiteboard: false
1736
1377
  })
1737
1378
  }
1379
+ this.saveLog('whiteboard close, typeId=1218,')
1738
1380
  }
1739
1381
 
1740
1382
  }
1741
1383
 
1742
1384
  } else if (Mival.typeId == 3100) {
1743
- if (Mival.data.sessionId == this.state.sessionId) {
1744
- muteJson.set(Mival.data.userId, JSON.stringify(Mival))
1745
- if (Mival.data.userId == this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid) {
1746
- muteJson.delete(Mival.data.userId)
1747
- if (Mival.muteStatus == 0) {
1748
- this.setState({
1749
- voiceVideoOne: false
1750
- })
1751
- } else if (Mival.muteStatus == 1) {
1752
- this.setState({
1753
- voiceVideoOne: true
1754
- })
1755
- }
1756
-
1757
- }
1758
- if (Mival.data.userId == (document.getElementById("feedId2").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid : '')) {
1759
- muteJson.delete(Mival.data.userId)
1760
- if (Mival.muteStatus == 0) {
1761
- this.setState({
1762
- voiceVideoTwo: false
1763
- })
1764
- } else if (Mival.muteStatus == 1) {
1765
- this.setState({
1766
- voiceVideoTwo: true
1767
- })
1768
- }
1769
-
1770
- }
1771
- if (Mival.data.userId == (document.getElementById("feedId3").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid : '')) {
1772
- muteJson.delete(Mival.data.userId)
1773
- if (Mival.muteStatus == 0) {
1774
- this.setState({
1775
- voiceVideoThree: false
1776
- })
1777
- } else if (Mival.muteStatus == 1) {
1778
- this.setState({
1779
- voiceVideoThree: true
1780
- })
1781
- }
1782
-
1783
- }
1784
- if (Mival.data.userId == (document.getElementById("feedId4").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid : '')) {
1785
- muteJson.delete(Mival.data.userId)
1786
- if (Mival.muteStatus == 0) {
1787
- this.setState({
1788
- voiceVideoFour: false
1789
- })
1790
- } else if (Mival.muteStatus == 1) {
1791
- this.setState({
1792
- voiceVideoFour: true
1793
- })
1794
- }
1795
-
1796
- }
1797
- if (Mival.data.userId == (document.getElementById("feedId5").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid : '')) {
1798
- muteJson.delete(Mival.data.userId)
1799
- if (Mival.muteStatus == 0) {
1800
- this.setState({
1801
- voiceVideoFive: false
1802
- })
1803
- } else if (Mival.muteStatus == 1) {
1804
- this.setState({
1805
- voiceVideoFive: true
1806
- })
1807
- }
1808
-
1809
- }
1810
- if (Mival.data.userId == (document.getElementById("feedId6").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid : '')) {
1811
- muteJson.delete(Mival.data.userId)
1812
- if (Mival.muteStatus == 0) {
1813
- this.setState({
1814
- voiceVideoSix: false
1815
- })
1816
- } else if (Mival.muteStatus == 1) {
1817
- this.setState({
1818
- voiceVideoSix: true
1819
- })
1820
- }
1821
-
1822
- }
1823
-
1824
- if (Mival.data.userId == (document.getElementById("feedId7").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid : '')) {
1825
- muteJson.delete(Mival.data.userId)
1826
- if (Mival.muteStatus == 0) {
1827
- this.setState({
1828
- voiceVideoSeven: false
1829
- })
1830
- } else if (Mival.muteStatus == 1) {
1831
- this.setState({
1832
- voiceVideoSeven: true
1833
- })
1834
- }
1835
-
1836
- }
1837
- if (Mival.data.userId == (document.getElementById("feedId8").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid : '')) {
1838
- muteJson.delete(Mival.data.userId)
1839
- if (Mival.muteStatus == 0) {
1840
- this.setState({
1841
- voiceVideoEight: false
1842
- })
1843
- } else if (Mival.muteStatus == 1) {
1844
- this.setState({
1845
- voiceVideoEight: true
1846
- })
1847
- }
1848
-
1849
- }
1850
- if (Mival.data.userId == (document.getElementById("feedId9").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid : '')) {
1851
- muteJson.delete(Mival.data.userId)
1852
- if (Mival.muteStatus == 0) {
1853
- this.setState({
1854
- voiceVideoNine: false
1855
- })
1856
- } else if (Mival.muteStatus == 1) {
1857
- this.setState({
1858
- voiceVideoNine: true
1859
- })
1860
- }
1861
-
1862
- }
1863
- if (Mival.data.userId == (document.getElementById("feedId10").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid : '')) {
1864
- muteJson.delete(Mival.data.userId)
1865
- if (Mival.muteStatus == 0) {
1866
- this.setState({
1867
- voiceVideoTen: false
1868
- })
1869
- } else if (Mival.muteStatus == 1) {
1870
- this.setState({
1871
- voiceVideoTen: true
1872
- })
1873
- }
1874
-
1875
- }
1876
- if (Mival.data.userId == (document.getElementById("feedId11").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid : '')) {
1877
- muteJson.delete(Mival.data.userId)
1878
- if (Mival.muteStatus == 0) {
1879
- this.setState({
1880
- voiceVideoEleven: false
1881
- })
1882
- } else if (Mival.muteStatus == 1) {
1883
- this.setState({
1884
- voiceVideoEleven: true
1885
- })
1886
- }
1887
-
1888
- }
1889
- if (Mival.data.userId == (document.getElementById("feedId12").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid : '')) {
1890
- muteJson.delete(Mival.data.userId)
1891
- if (Mival.muteStatus == 0) {
1892
- this.setState({
1893
- voiceVideoTwelve: false
1894
- })
1895
- } else if (Mival.muteStatus == 1) {
1896
- this.setState({
1897
- voiceVideoTwelve: true
1898
- })
1899
- }
1900
-
1385
+ if(Mival.data.sessionId == this.state.sessionId) {
1386
+ muteJson.set(Mival.data.userId, JSON.stringify(Mival))
1387
+ for(let i=1;i<=12;i++){
1388
+ if(Mival.data.userId == (document.getElementById("feedId"+i).innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId"+i).innerText).uid : '')) {
1389
+ muteJson.delete(Mival.data.userId)
1390
+ if(Mival.muteStatus == 0) {
1391
+ this.state.videoList[i-1].mute = false
1392
+ this.setState({
1393
+ videoList: this.state.videoList
1394
+ })
1395
+ } else if(Mival.muteStatus == 1) {
1396
+ this.state.videoList[i-1].mute = true
1397
+ this.setState({
1398
+ videoList: this.state.videoList
1399
+ })
1400
+ }
1401
+
1402
+ }
1901
1403
  }
1902
1404
  }
1903
1405
  } else if (Mival.typeId == 121305) {
1904
1406
  if (Mival.sessionId == this.state.sessionId) {
1905
- this.saveLog('signatureCallback fail')
1407
+ this.saveLog('signatureCallback fail, typeId=121305, ')
1906
1408
  this.props.signatureCallback({
1907
1409
  errorType: -1
1908
1410
  })
@@ -1910,7 +1412,7 @@ class Video extends Component {
1910
1412
  } else if (Mival.typeId == 121405) {
1911
1413
  if (Mival.sessionId == this.state.sessionId) {
1912
1414
  console.log('imgCallback')
1913
- this.saveLog('imgCallback fail')
1415
+ this.saveLog('imgCallback fail, typeId=121405, ')
1914
1416
  this.props.imgCallback({
1915
1417
  type: '',
1916
1418
  file: '',
@@ -1920,72 +1422,19 @@ class Video extends Component {
1920
1422
  } else if (Mival.typeId == 4001) {
1921
1423
  // 手机端停止投屏
1922
1424
  this.tabTitlesClick('customerScreen', 'delect')
1425
+ this.saveLog('app stop sharing screen, typeId=4001, ')
1923
1426
 
1924
1427
  } else if (Mival.typeId == 1401) {
1428
+ // 用户修改名字
1925
1429
  if (Mival.sessionId == this.state.sessionId) {
1926
- if (Mival.userId == this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid) {
1927
- this.setState({
1928
- videoOneName: Mival.name
1929
- })
1930
-
1931
- }
1932
- if (Mival.userId == (document.getElementById("feedId2").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid : '')) {
1933
- this.setState({
1934
- videoTwoName: Mival.name
1935
- })
1936
- }
1937
- if (Mival.userId == (document.getElementById("feedId3").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid : '')) {
1938
- this.setState({
1939
- videoThreeName: Mival.name
1940
- })
1941
- }
1942
- if (Mival.userId == (document.getElementById("feedId4").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid : '')) {
1943
- this.setState({
1944
- videoFourName: Mival.name
1945
- })
1946
- }
1947
- if (Mival.userId == (document.getElementById("feedId5").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid : '')) {
1948
- this.setState({
1949
- videoFiveName: Mival.name
1950
- })
1951
- }
1952
- if (Mival.userId == (document.getElementById("feedId6").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid : '')) {
1953
- this.setState({
1954
- videoSixName: Mival.name
1955
- })
1956
- }
1957
-
1958
- if (Mival.userId == (document.getElementById("feedId7").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid : '')) {
1959
- this.setState({
1960
- videoSevenName: Mival.name
1961
- })
1962
- }
1963
- if (Mival.userId == (document.getElementById("feedId8").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid : '')) {
1964
- this.setState({
1965
- videoEightName: Mival.name
1966
- })
1967
- }
1968
- if (Mival.userId == (document.getElementById("feedId9").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid : '')) {
1969
- this.setState({
1970
- videoNineName: Mival.name
1971
- })
1972
- }
1973
- if (Mival.userId == (document.getElementById("feedId10").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid : '')) {
1974
- this.setState({
1975
- videoTenName: Mival.name
1976
- })
1977
- }
1978
- if (Mival.userId == (document.getElementById("feedId11").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid : '')) {
1979
- this.setState({
1980
- videoElevenName: Mival.name
1981
- })
1982
- }
1983
- if (Mival.userId == (document.getElementById("feedId12").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid : '')) {
1984
- this.setState({
1985
- videoTwelveName: Mival.name
1986
- })
1430
+ for(let i=1;i<=12;i++){
1431
+ if(Mival.userId == (document.getElementById("feedId"+i).innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId"+i).innerText).uid : '')) {
1432
+ this.state.videoList[i-1].videoName = Mival.name
1433
+ }
1987
1434
  }
1988
-
1435
+ this.setState({
1436
+ videoList: this.state.videoList
1437
+ })
1989
1438
  }
1990
1439
  }
1991
1440
  };
@@ -2142,7 +1591,7 @@ class Video extends Component {
2142
1591
  // 获取设备失败
2143
1592
  this.test_controller.OnGetDevicesFailed = (code, msg) => {
2144
1593
  console.log('获取设备失败', code, msg)
2145
- this.saveLog('Failed to get device')
1594
+ this.saveLog('Failed to get device, code='+code)
2146
1595
  this.state.sessionType = false
2147
1596
  this.messageClick('获取设备失败,请检查摄像头设备是否可用或是否禁用摄像头', 'error')
2148
1597
  this.roomCallBack(2, '获取设备失败', 1)
@@ -2183,6 +1632,7 @@ class Video extends Component {
2183
1632
  } else {
2184
1633
  this.test_controller.CreateRoom()
2185
1634
  }
1635
+ this.saveLog('InitRoomConfig successfully')
2186
1636
 
2187
1637
  };
2188
1638
  // 创建房间成功
@@ -2192,6 +1642,7 @@ class Video extends Component {
2192
1642
  this.state.channelId = room_id,
2193
1643
  this.state.rtoken = rtoken
2194
1644
  this.createRoom()
1645
+ this.saveLog('RM mrtc create room successfully, room_id=' + room_id)
2195
1646
  };
2196
1647
  // 创建房间失败
2197
1648
  this.test_controller.OnCreateRoomFailed = (err_code, err_msg) => {
@@ -2203,10 +1654,12 @@ class Video extends Component {
2203
1654
  // 初始化⾳视频成功
2204
1655
  this.test_controller.OnMediaCallSucc = (sid) => {
2205
1656
  console.log('初始化⾳视频成功', sid)
1657
+ this.saveLog('OnMediaCallSucc:' + sid)
2206
1658
  };
2207
1659
  // 初始化音视频失败
2208
1660
  this.test_controller.OnMediaCallFail = (err_code, err_msg) => {
2209
1661
  console.log('初始化音视频失败', err_code, err_msg)
1662
+ this.saveLog('OnMediaCallFail, code=' + err_code)
2210
1663
  };
2211
1664
  // 音视频关闭通知
2212
1665
  this.test_controller.OnMediaClose = (code, sid) => {
@@ -2237,10 +1690,11 @@ class Video extends Component {
2237
1690
  publish_config.publish_tag = 'tag1'
2238
1691
  this.test_controller.Publish(publish_config)
2239
1692
  this.roomCallBack(1, '', 0)
1693
+ this.saveLog('mrtc join room success')
2240
1694
  };
2241
1695
  // 加入房间失败
2242
1696
  this.test_controller.OnJoinRoomFailed = (err_code, err_msg) => {
2243
- this.saveLog('Join room failed,' + err_code)
1697
+ this.saveLog('mrtc join room failed,' + err_code)
2244
1698
  console.log('加入房间失败', err_code, err_msg)
2245
1699
  // this.setState({
2246
1700
  // sessionType: false,
@@ -2272,12 +1726,14 @@ class Video extends Component {
2272
1726
  documentError: '',
2273
1727
  isModalVisibleCustomer: false,
2274
1728
  })
1729
+ this.saveLog('mrtc OnSendTextMsgSucc:' + msgId)
2275
1730
  }
2276
1731
  this.test_controller.OnSendTextMsgFailed = (msgId, code, msg) => {
2277
1732
  console.log('发送失败', msgId, code, msg)
2278
1733
  this.setState({
2279
1734
  documentError: '推送授权白板失败,请重试'
2280
1735
  })
1736
+ this.saveLog('mrtc OnSendTextMsgFail:' + msgId +', code=' + code + ',msg=' + msg)
2281
1737
  }
2282
1738
  this.test_controller.OnReceiveTextMsg = (uid, msg) => {
2283
1739
  console.log('收到手机端消息', uid, msg, JSON.parse(msg).typeId, JSON.parse(msg).data.sessionId, this.state.sessionId)
@@ -2287,6 +1743,7 @@ class Video extends Component {
2287
1743
  this.customerFaceClick(this.state.customerList[this.state.customerSelect - 1])
2288
1744
  }
2289
1745
  }
1746
+ this.saveLog('mrtc OnReceiveTextMsg info:', uid, msg, JSON.parse(msg).typeId, JSON.parse(msg).data.sessionId, this.state.sessionId)
2290
1747
  }
2291
1748
  this.test_controller.StreamFilterHandler = async (publish_tag, stream, stream_type, publish_device, media_type) => {
2292
1749
  console.log(`stream processed by client, publish_device=${publish_device}, media_type=${media_type}, publish_tag=${publish_tag},stream_type=${stream_type}`);
@@ -2451,7 +1908,7 @@ class Video extends Component {
2451
1908
  };
2452
1909
  // 发布媒体流失败
2453
1910
  this.test_controller.OnPublishFailed = (sid, err_code, err_msg) => {
2454
- this.saveLog('发布失败' + err_code)
1911
+ this.saveLog('mrtc OnPublishFailed 发布失败, code=' + err_code)
2455
1912
  console.log('Publishing media stream failed,', sid, err_code, err_msg)
2456
1913
  if (sid == document.getElementById('publish_video1').name) {
2457
1914
  this.state.sessionType = false
@@ -2467,169 +1924,27 @@ class Video extends Component {
2467
1924
 
2468
1925
  this.appGetUsername(sid)
2469
1926
  console.log(muteJson, muteJson.size)
2470
- if (muteJson.size > 0) {
2471
- let userId = ''
2472
- if (muteJson.get(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid)) {
2473
- userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid
2474
- if (JSON.parse(muteJson.get(userId)).muteStatus == 0) {
2475
- this.setState({
2476
- voiceVideoOne: false
2477
- })
2478
- } else if (JSON.parse(muteJson.get(userId)).muteStatus == 1) {
2479
- this.setState({
2480
- voiceVideoOne: true
2481
- })
2482
- }
2483
- muteJson.delete(userId)
2484
- }
2485
- if (muteJson.get(document.getElementById("feedId2").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid : '')) {
2486
- userId = document.getElementById("feedId2").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid : ''
2487
- if (JSON.parse(muteJson.get(userId)).muteStatus == 0) {
2488
- this.setState({
2489
- voiceVideoTwo: false
2490
- })
2491
- } else if (JSON.parse(muteJson.get(userId)).muteStatus == 1) {
2492
- this.setState({
2493
- voiceVideoTwo: true
2494
- })
2495
- }
2496
- muteJson.delete(userId)
2497
- }
2498
- if (muteJson.get(document.getElementById("feedId3").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid : '')) {
2499
- userId = document.getElementById("feedId3").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid : ''
2500
- if (JSON.parse(muteJson.get(userId)).muteStatus == 0) {
2501
- this.setState({
2502
- voiceVideoThree: false
2503
- })
2504
- } else if (JSON.parse(muteJson.get(userId)).muteStatus == 1) {
2505
- this.setState({
2506
- voiceVideoThree: true
2507
- })
2508
- }
2509
- muteJson.delete(userId)
2510
- }
2511
- if (muteJson.get(document.getElementById("feedId4").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid : '')) {
2512
- userId = document.getElementById("feedId4").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid : ''
2513
- if (JSON.parse(muteJson.get(userId)).muteStatus == 0) {
2514
- this.setState({
2515
- voiceVideoFour: false
2516
- })
2517
- } else if (JSON.parse(muteJson.get(userId)).muteStatus == 1) {
2518
- this.setState({
2519
- voiceVideoFour: true
2520
- })
2521
- }
2522
- muteJson.delete(userId)
2523
- }
2524
- if (muteJson.get(document.getElementById("feedId5").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid : '')) {
2525
- userId = document.getElementById("feedId5").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid : ''
2526
- if (JSON.parse(muteJson.get(userId)).muteStatus == 0) {
2527
- this.setState({
2528
- voiceVideoFive: false
2529
- })
2530
- } else if (JSON.parse(muteJson.get(userId)).muteStatus == 1) {
2531
- this.setState({
2532
- voiceVideoFive: true
2533
- })
2534
- }
2535
- muteJson.delete(userId)
2536
- }
2537
- if (muteJson.get(document.getElementById("feedId6").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid : '')) {
2538
- userId = document.getElementById("feedId6").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid : ''
2539
- if (JSON.parse(muteJson.get(userId)).muteStatus == 0) {
2540
- this.setState({
2541
- voiceVideoSix: false
2542
- })
2543
- } else if (JSON.parse(muteJson.get(userId)).muteStatus == 1) {
2544
- this.setState({
2545
- voiceVideoSix: true
2546
- })
2547
- }
2548
- muteJson.delete(userId)
2549
- }
2550
- if (muteJson.get(document.getElementById("feedId7").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid : '')) {
2551
- userId = document.getElementById("feedId7").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid : ''
2552
- if (JSON.parse(muteJson.get(userId)).muteStatus == 0) {
2553
- this.setState({
2554
- voiceVideoSeven: false
2555
- })
2556
- } else if (JSON.parse(muteJson.get(userId)).muteStatus == 1) {
2557
- this.setState({
2558
- voiceVideoSeven: true
2559
- })
2560
- }
2561
- muteJson.delete(userId)
2562
- }
2563
- if (muteJson.get(document.getElementById("feedId8").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid : '')) {
2564
- userId = document.getElementById("feedId8").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid : ''
2565
-
2566
- if (JSON.parse(muteJson.get(userId)).muteStatus == 0) {
2567
- this.setState({
2568
- voiceVideoEight: false
2569
- })
2570
- } else if (JSON.parse(muteJson.get(userId)).muteStatus == 1) {
2571
- this.setState({
2572
- voiceVideoEight: true
2573
- })
2574
- }
2575
- muteJson.delete(userId)
2576
- }
2577
- if (muteJson.get(document.getElementById("feedId9").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid : '')) {
2578
- userId = document.getElementById("feedId9").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid : ''
2579
-
2580
- if (JSON.parse(muteJson.get(userId)).muteStatus == 0) {
2581
- this.setState({
2582
- voiceVideoNine: false
2583
- })
2584
- } else if (JSON.parse(muteJson.get(userId)).muteStatus == 1) {
2585
- this.setState({
2586
- voiceVideoNine: true
2587
- })
2588
- }
2589
- muteJson.delete(userId)
2590
- }
2591
- if (muteJson.get(document.getElementById("feedId10").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid : '')) {
2592
- userId = document.getElementById("feedId10").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid : ''
2593
-
2594
- if (JSON.parse(muteJson.get(userId)).muteStatus == 0) {
2595
- this.setState({
2596
- voiceVideoTen: false
2597
- })
2598
- } else if (JSON.parse(muteJson.get(userId)).muteStatus == 1) {
2599
- this.setState({
2600
- voiceVideoTen: true
2601
- })
2602
- }
2603
- muteJson.delete(userId)
2604
- }
2605
- if (muteJson.get(document.getElementById("feedId11").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid : '')) {
2606
- userId = document.getElementById("feedId11").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid : ''
2607
-
2608
- if (JSON.parse(muteJson.get(userId)).muteStatus == 0) {
2609
- this.setState({
2610
- voiceVideoEleven: false
2611
- })
2612
- } else if (JSON.parse(muteJson.get(userId)).muteStatus == 1) {
2613
- this.setState({
2614
- voiceVideoEleven: true
2615
- })
2616
- }
2617
- muteJson.delete(userId)
2618
- }
2619
- if (muteJson.get(document.getElementById("feedId12").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid : '')) {
2620
- userId = document.getElementById("feedId12").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid : ''
2621
- if (JSON.parse(muteJson.get(userId)).muteStatus == 0) {
2622
- this.setState({
2623
- voiceVideoTwelve: false
2624
- })
2625
- } else if (JSON.parse(muteJson.get(userId)).muteStatus == 1) {
2626
- this.setState({
2627
- voiceVideoTwelve: true
2628
- })
2629
- }
2630
- muteJson.delete(userId)
1927
+ if(muteJson.size > 0) {
1928
+ for(let i=1;i<=12;i++){
1929
+ const userId = document.getElementById("feedId"+i).innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId"+i).innerText).uid : ''
1930
+ console.log(muteJson.get(userId))
1931
+ if(muteJson.get(userId)) {
1932
+
1933
+ if(JSON.parse(muteJson.get(userId)).muteStatus == 0) {
1934
+ this.state.videoList[i-1].mute = false
1935
+ this.setState({
1936
+ videoList: this.state.videoList
1937
+ })
1938
+ } else if(JSON.parse(muteJson.get(userId)).muteStatus == 1) {
1939
+ this.state.videoList[i-1].mute = true
1940
+ this.setState({
1941
+ videoList: this.state.videoList
1942
+ })
1943
+ }
1944
+ muteJson.delete(userId)
1945
+ }
2631
1946
  }
2632
- console.log(muteJson, muteJson.length)
1947
+ console.log(muteJson,muteJson.length)
2633
1948
  }
2634
1949
  };
2635
1950
  // 订阅媒体流失败
@@ -2690,120 +2005,23 @@ class Video extends Component {
2690
2005
  }, 'add'
2691
2006
  )
2692
2007
  } else {
2693
- if (!document.getElementById('video1').name) {
2694
- config_param = {
2695
- subscribe_video_id: 'video1',
2696
- subscribe_audio_id: 'audio1',
2697
- subscribe_streamId_id: 'subscribe_streamId1',
2698
- feedId_id: 'feedId1',
2699
- feedId: itemOne.feedId
2700
- }
2701
- }
2702
- else if (!document.getElementById('video2').name) {
2703
- config_param = {
2704
- subscribe_video_id: 'video2',
2705
- subscribe_audio_id: 'audio2',
2706
- subscribe_streamId_id: 'subscribe_streamId2',
2707
- feedId_id: 'feedId2',
2708
- feedId: itemOne.feedId
2709
- }
2710
- }
2711
- else if (!document.getElementById('video3').name) {
2712
- config_param = {
2713
- subscribe_video_id: 'video3',
2714
- subscribe_audio_id: 'audio3',
2715
- subscribe_streamId_id: 'subscribe_streamId3',
2716
- feedId_id: 'feedId3',
2717
- feedId: itemOne.feedId
2718
- }
2719
- }
2720
- else if (!document.getElementById('video4').name) {
2721
- config_param = {
2722
- subscribe_video_id: 'video4',
2723
- subscribe_audio_id: 'audio4',
2724
- subscribe_streamId_id: 'subscribe_streamId4',
2725
- feedId_id: 'feedId4',
2726
- feedId: itemOne.feedId
2727
- }
2728
- }
2729
- else if (!document.getElementById('video5').name) {
2730
- config_param = {
2731
- subscribe_video_id: 'video5',
2732
- subscribe_audio_id: 'audio5',
2733
- subscribe_streamId_id: 'subscribe_streamId5',
2734
- feedId_id: 'feedId5',
2735
- feedId: itemOne.feedId
2736
- }
2737
- }
2738
- else if (!document.getElementById('video6').name) {
2739
- config_param = {
2740
- subscribe_video_id: 'video6',
2741
- subscribe_audio_id: 'audio6',
2742
- subscribe_streamId_id: 'subscribe_streamId6',
2743
- feedId_id: 'feedId6',
2744
- feedId: itemOne.feedId
2745
- }
2746
- }
2747
-
2748
- else if (!document.getElementById('video7').name) {
2749
- config_param = {
2750
- subscribe_video_id: 'video7',
2751
- subscribe_audio_id: 'audio7',
2752
- subscribe_streamId_id: 'subscribe_streamId7',
2753
- feedId_id: 'feedId7',
2754
- feedId: itemOne.feedId
2755
- }
2756
- }
2757
- else if (!document.getElementById('video8').name) {
2758
- config_param = {
2759
- subscribe_video_id: 'video8',
2760
- subscribe_audio_id: 'audio8',
2761
- subscribe_streamId_id: 'subscribe_streamId8',
2762
- feedId_id: 'feedId8',
2763
- feedId: itemOne.feedId
2764
- }
2765
- }
2766
- else if (!document.getElementById('video9').name) {
2767
- config_param = {
2768
- subscribe_video_id: 'video9',
2769
- subscribe_audio_id: 'audio9',
2770
- subscribe_streamId_id: 'subscribe_streamId9',
2771
- feedId_id: 'feedId9',
2772
- feedId: itemOne.feedId
2773
- }
2774
- }
2775
- else if (!document.getElementById('video10').name) {
2776
- config_param = {
2777
- subscribe_video_id: 'video10',
2778
- subscribe_audio_id: 'audio10',
2779
- subscribe_streamId_id: 'subscribe_streamId10',
2780
- feedId_id: 'feedId10',
2781
- feedId: itemOne.feedId
2782
- }
2783
- }
2784
- else if (!document.getElementById('video11').name) {
2785
- config_param = {
2786
- subscribe_video_id: 'video11',
2787
- subscribe_audio_id: 'audio11',
2788
- subscribe_streamId_id: 'subscribe_streamId11',
2789
- feedId_id: 'feedId11',
2790
- feedId: itemOne.feedId
2791
- }
2792
- }
2793
- else if (!document.getElementById('video12').name) {
2794
- config_param = {
2795
- subscribe_video_id: 'video12',
2796
- subscribe_audio_id: 'audio12',
2797
- subscribe_streamId_id: 'subscribe_streamId12',
2798
- feedId_id: 'feedId12',
2799
- feedId: itemOne.feedId
2800
- }
2008
+ for (let i=1;i<=12;i++){
2009
+ if(!document.getElementById('video'+i).name) {
2010
+ config_param = {
2011
+ subscribe_video_id: 'video'+i,
2012
+ subscribe_audio_id: 'audio'+i,
2013
+ subscribe_streamId_id: 'subscribe_streamId'+i,
2014
+ feedId_id: 'feedId'+i,
2015
+ feedId: itemOne.feedId
2016
+ }
2017
+ break;
2018
+ }
2801
2019
  }
2802
2020
  }
2803
2021
  if (config_param !== undefined) {
2804
2022
  config_param.need_volume_analyser = true
2805
2023
  console.log(config_param)
2806
-
2024
+ console.log('发起订阅')
2807
2025
  this.test_controller.Subscribe(config_param)
2808
2026
 
2809
2027
  }
@@ -2815,6 +2033,7 @@ class Video extends Component {
2815
2033
  // 推送“新加⼊房间者”给与会者
2816
2034
  this.test_controller.OnNewJoinerIn = (participant) => {
2817
2035
  console.log('新加⼊房间者', participant);
2036
+ this.saveLog('mrtc someone joined room, userId=' + participant)
2818
2037
  this.state.isCustomer = true
2819
2038
  };
2820
2039
  // 推送“有新发布”给与会者
@@ -2902,116 +2121,20 @@ class Video extends Component {
2902
2121
  config_param.need_volume_analyser = false
2903
2122
  console.log(config_param)
2904
2123
  this.test_controller.Subscribe(config_param)
2905
-
2906
- }
2907
- } else {
2908
- if (!document.getElementById('video1').name) {
2909
- config_param = {
2910
- subscribe_video_id: 'video1',
2911
- subscribe_audio_id: 'audio1',
2912
- subscribe_streamId_id: 'subscribe_streamId1',
2913
- feedId_id: 'feedId1',
2914
- feedId: feed.feedId
2915
- }
2916
- }
2917
- else if (!document.getElementById('video2').name) {
2918
- config_param = {
2919
- subscribe_video_id: 'video2',
2920
- subscribe_audio_id: 'audio2',
2921
- subscribe_streamId_id: 'subscribe_streamId2',
2922
- feedId_id: 'feedId2',
2923
- feedId: feed.feedId
2924
- }
2925
- }
2926
- else if (!document.getElementById('video3').name) {
2927
- config_param = {
2928
- subscribe_video_id: 'video3',
2929
- subscribe_audio_id: 'audio3',
2930
- subscribe_streamId_id: 'subscribe_streamId3',
2931
- feedId_id: 'feedId3',
2932
- feedId: feed.feedId
2933
- }
2934
- }
2935
- else if (!document.getElementById('video4').name) {
2936
- config_param = {
2937
- subscribe_video_id: 'video4',
2938
- subscribe_audio_id: 'audio4',
2939
- subscribe_streamId_id: 'subscribe_streamId4',
2940
- feedId_id: 'feedId4',
2941
- feedId: feed.feedId
2942
- }
2943
- }
2944
- else if (!document.getElementById('video5').name) {
2945
- config_param = {
2946
- subscribe_video_id: 'video5',
2947
- subscribe_audio_id: 'audio5',
2948
- subscribe_streamId_id: 'subscribe_streamId5',
2949
- feedId_id: 'feedId5',
2950
- feedId: feed.feedId
2951
- }
2952
- }
2953
- else if (!document.getElementById('video6').name) {
2954
- config_param = {
2955
- subscribe_video_id: 'video6',
2956
- subscribe_audio_id: 'audio6',
2957
- subscribe_streamId_id: 'subscribe_streamId6',
2958
- feedId_id: 'feedId6',
2959
- feedId: feed.feedId
2960
- }
2961
- }
2962
- else if (!document.getElementById('video7').name) {
2963
- config_param = {
2964
- subscribe_video_id: 'video7',
2965
- subscribe_audio_id: 'audio7',
2966
- subscribe_streamId_id: 'subscribe_streamId7',
2967
- feedId_id: 'feedId7',
2968
- feedId: feed.feedId
2969
- }
2970
- }
2971
- else if (!document.getElementById('video8').name) {
2972
- config_param = {
2973
- subscribe_video_id: 'video8',
2974
- subscribe_audio_id: 'audio8',
2975
- subscribe_streamId_id: 'subscribe_streamId8',
2976
- feedId_id: 'feedId8',
2977
- feedId: feed.feedId
2978
- }
2979
- }
2980
- else if (!document.getElementById('video9').name) {
2981
- config_param = {
2982
- subscribe_video_id: 'video9',
2983
- subscribe_audio_id: 'audio9',
2984
- subscribe_streamId_id: 'subscribe_streamId9',
2985
- feedId_id: 'feedId9',
2986
- feedId: feed.feedId
2987
- }
2988
- }
2989
- else if (!document.getElementById('video10').name) {
2990
- config_param = {
2991
- subscribe_video_id: 'video10',
2992
- subscribe_audio_id: 'audio10',
2993
- subscribe_streamId_id: 'subscribe_streamId10',
2994
- feedId_id: 'feedId10',
2995
- feedId: feed.feedId
2996
- }
2997
- }
2998
- else if (!document.getElementById('video11').name) {
2999
- config_param = {
3000
- subscribe_video_id: 'video11',
3001
- subscribe_audio_id: 'audio11',
3002
- subscribe_streamId_id: 'subscribe_streamId11',
3003
- feedId_id: 'feedId11',
3004
- feedId: feed.feedId
3005
- }
2124
+
3006
2125
  }
3007
- else if (!document.getElementById('video12').name) {
3008
- config_param = {
3009
- subscribe_video_id: 'video12',
3010
- subscribe_audio_id: 'audio12',
3011
- subscribe_streamId_id: 'subscribe_streamId12',
3012
- feedId_id: 'feedId12',
3013
- feedId: feed.feedId
3014
- }
2126
+ } else {
2127
+ for (let i=1;i<=12;i++){
2128
+ if(!document.getElementById('video'+i).name) {
2129
+ config_param = {
2130
+ subscribe_video_id: 'video'+i,
2131
+ subscribe_audio_id: 'audio'+i,
2132
+ subscribe_streamId_id: 'subscribe_streamId'+i,
2133
+ feedId_id: 'feedId'+i,
2134
+ feedId: feed.feedId
2135
+ }
2136
+ break;
2137
+ }
3015
2138
  }
3016
2139
  if (config_param !== undefined) {
3017
2140
  config_param.need_volume_analyser = true
@@ -3069,127 +2192,34 @@ class Video extends Component {
3069
2192
  }
3070
2193
  }
3071
2194
  })
3072
- if (!document.getElementById("video1").name) {
3073
- this.state.isPIBIntranet[0].type = false
3074
- this.setState({
3075
- videoOneName: '',
3076
- voiceVideoOne: false,
3077
- noVideoOne: false
3078
- },()=>{
3079
- this.videoListClick()
3080
- })
3081
- }
3082
- if (!document.getElementById("video2").name) {
3083
- this.state.isPIBIntranet[1].type = false
3084
- this.setState({
3085
- videoTwoName: '',
3086
- voiceVideoTwo: false,
3087
- noVideoTwo: false
3088
- },()=>{
3089
- this.videoListClick()
3090
- })
3091
- }
3092
- if (!document.getElementById("video3").name) {
3093
- this.state.isPIBIntranet[2].type = false
3094
- this.setState({
3095
- videoThreeName: '',
3096
- voiceVideoThree: false,
3097
- noVideoThree: false
3098
- },()=>{
3099
- this.videoListClick()
3100
- })
3101
- }
3102
- if (!document.getElementById("video4").name) {
3103
- this.state.isPIBIntranet[3].type = false
3104
- this.setState({
3105
- videoFourName: '',
3106
- voiceVideoFour: false,
3107
- noVideoFour: false
3108
- },()=>{
3109
- this.videoListClick()
3110
- })
3111
- }
3112
- if (!document.getElementById("video5").name) {
3113
- this.state.isPIBIntranet[4].type = false
3114
- this.setState({
3115
- videoFiveName: '',
3116
- voiceVideoFive: false,
3117
- noVideoFive: false
3118
- },()=>{
3119
- this.videoListClick()
3120
- })
3121
- }
3122
- if (!document.getElementById("video6").name) {
3123
- this.state.isPIBIntranet[5].type = false
3124
- this.setState({
3125
- videoSixName: '',
3126
- voiceVideoSix: false,
3127
- noVideoSix: false
3128
- },()=>{
3129
- this.videoListClick()
3130
- })
3131
- }
3132
-
3133
- if (!document.getElementById("video7").name) {
3134
- this.state.isPIBIntranet[6].type = false
3135
- this.setState({
3136
- videoSevenName: '',
3137
- voiceVideoSeven: false,
3138
- noVideoSeven: false
3139
- },()=>{
3140
- this.videoListClick()
3141
- })
3142
- }
3143
- if (!document.getElementById("video8").name) {
3144
- this.state.isPIBIntranet[7].type = false
3145
- this.setState({
3146
- videoEightName: '',
3147
- voiceVideoEight: false,
3148
- noVideoEight: false
3149
- },()=>{
3150
- this.videoListClick()
3151
- })
3152
- }
3153
- if (!document.getElementById("video9").name) {
3154
- this.state.isPIBIntranet[8].type = false
3155
- this.setState({
3156
- videoNineName: '',
3157
- voiceVideoNine: false,
3158
- noVideoNine: false
3159
- },()=>{
3160
- this.videoListClick()
3161
- })
3162
- }
3163
- if (!document.getElementById("video10").name) {
3164
- this.state.isPIBIntranet[9].type = false
3165
- this.setState({
3166
- videoTenName: '',
3167
- voiceVideoTen: false,
3168
- noVideoTen: false
3169
- },()=>{
3170
- this.videoListClick()
3171
- })
3172
- }
3173
- if (!document.getElementById("video11").name) {
3174
- this.state.isPIBIntranet[10].type = false
3175
- this.setState({
3176
- videoElevenName: '',
3177
- voiceVideoEleven: false,
3178
- noVideoEleven: false
3179
- },()=>{
3180
- this.videoListClick()
3181
- })
3182
- }
3183
- if (!document.getElementById("video12").name) {
3184
- this.state.isPIBIntranet[11].type = false
3185
- this.setState({
3186
- videoTwelveName: '',
3187
- voiceVideoTwelve: false,
3188
- noVideoTwelve: false
3189
- },()=>{
3190
- this.videoListClick()
3191
- })
2195
+ for(let i=1;i<=12;i++){
2196
+ if(!document.getElementById("video"+i).name) {
2197
+ this.state.videoList[i-1]= {
2198
+ ...this.state.videoList[i-1],
2199
+ videoName: '',
2200
+ mute: false,
2201
+ noVideo: false,
2202
+ isPIBIntranet: false,
2203
+ userSide: '',
2204
+ userType: '',
2205
+ userId: '',
2206
+ hasOcr: 0,
2207
+ }
2208
+ this.setState({
2209
+ videoList: this.state.videoList
2210
+ })
2211
+ }
3192
2212
  }
2213
+ // if (!document.getElementById("video1").name) {
2214
+ // this.state.isPIBIntranet[0].type = false
2215
+ // this.setState({
2216
+ // videoOneName: '',
2217
+ // voiceVideoOne: false,
2218
+ // noVideoOne: false
2219
+ // },()=>{
2220
+ // this.videoListClick()
2221
+ // })
2222
+ // }
3193
2223
  this.state.analyserData.delete(sid)
3194
2224
  if (this.state.isPictureInPicture) {
3195
2225
  this.pictureInPicture('Refresh')
@@ -3243,6 +2273,7 @@ class Video extends Component {
3243
2273
  let data = res ? res.username ? res.username : '客户' : '客户'
3244
2274
  console.log(data)
3245
2275
  this.messageClick((data + '已退出会议'), 'error')
2276
+ this.saveLog(data + ' leave room')
3246
2277
  if (res.userType == 1) {
3247
2278
  // 2--坐席  1--客户
3248
2279
  this.props.userExit({
@@ -3273,6 +2304,7 @@ class Video extends Component {
3273
2304
  console.log('弱网回调', bpsSend, bpsRecv, sid)
3274
2305
  if (sid == document.getElementById('publish_video1').name) {
3275
2306
  this.messageClick('当前网络环境较差', 'error')
2307
+ this.saveLog('mrtc OnNetworkWeak')
3276
2308
  }
3277
2309
  };
3278
2310
  // 开始服务端录制成功
@@ -3280,6 +2312,7 @@ class Video extends Component {
3280
2312
  console.log('开始服务端录制成功', record_id);
3281
2313
  this.state.recordId = record_id
3282
2314
  this.videoRecordCallback('1', true)
2315
+ this.saveLog('mrtc OnStartRemoteRecordSucc')
3283
2316
  };
3284
2317
  // 开始服务端录制失败
3285
2318
  this.test_controller.OnStartRemoteRecordFailed = (
@@ -3289,11 +2322,13 @@ class Video extends Component {
3289
2322
  ) => {
3290
2323
  this.videoRecordCallback('1', false)
3291
2324
  console.log('开始服务端录制失败', record_id, err_code, err_msg)
2325
+ this.saveLog('mrtc OnStartRemoteRecordFailed, code='+err_code)
3292
2326
  };
3293
2327
  // 结束服务端录制成功
3294
2328
  this.test_controller.OnStopRemoteRecordSucc = (recordId) => {
3295
2329
  console.log('结束服务端录制成功', recordId);
3296
2330
  this.videoRecordCallback('2', true)
2331
+ this.saveLog('mrtc OnStopRemoteRecordSucc, recordId='+recordId)
3297
2332
  // this.endSessionValue()
3298
2333
  // 获取服务端录制结果
3299
2334
  };
@@ -3305,6 +2340,7 @@ class Video extends Component {
3305
2340
  ) => {
3306
2341
  this.videoRecordCallback('2', false)
3307
2342
  console.log('结束服务端录制失败', recordId, err_code, err_msg)
2343
+ this.saveLog('mrtc OnStopRemoteRecordFailed, err_code='+err_code)
3308
2344
  };
3309
2345
  // 开启浏览器录制成功
3310
2346
  this.test_controller.OnClientStartRecordSuccess = (
@@ -3450,6 +2486,7 @@ class Video extends Component {
3450
2486
  msg
3451
2487
  ) => {
3452
2488
  console.log('切流失败通知', sid, code, msg)
2489
+ this.saveLog('mrtc OnChangeMediaStreamFailed, code=' + code)
3453
2490
  if (this.state.loading) {
3454
2491
  this.setState({
3455
2492
  loading: false
@@ -3889,7 +2926,21 @@ class Video extends Component {
3889
2926
  }
3890
2927
  }
3891
2928
  componentWillMount() {
3892
- console.log('hsbc_teller_sdk', '1.9.14')
2929
+ console.log('hsbc_teller_sdk', '1.9.16')
2930
+ let arr = []
2931
+ for(let i=1;i<=12;i++){
2932
+ arr.push({
2933
+ videoName: '',
2934
+ mute: false,
2935
+ noVideo: false,
2936
+ isPIBIntranet: false,
2937
+ idIndex: i,
2938
+ hasOcr: 0,
2939
+ })
2940
+ }
2941
+ this.setState({
2942
+ videoList: arr
2943
+ })
3893
2944
  if (this.props.sessionId) {
3894
2945
  this.getRoomStatus({
3895
2946
  sessionId: this.props.sessionId
@@ -4236,7 +3287,8 @@ class Video extends Component {
4236
3287
  isModalVisibleSFP: false,
4237
3288
  disabledIdCard: false,
4238
3289
  isStaffState: 'success',
4239
- loadingStaff: false
3290
+ loadingStaff: false,
3291
+ authorizeStaffId: this.state.StaffidSFP,
4240
3292
  })
4241
3293
  }).catch((err) => {
4242
3294
  console.log(err)
@@ -4274,6 +3326,10 @@ class Video extends Component {
4274
3326
  idCardNumber: '',
4275
3327
  idCardName: '',
4276
3328
  certificateValidity: '',
3329
+ resultIdCardName: '',
3330
+ resultIdCardNumber: '',
3331
+ resultCertificateDate: '',
3332
+ authorizeStaffId: ''
4277
3333
  })
4278
3334
  // })
4279
3335
  } else {
@@ -4284,6 +3340,10 @@ class Video extends Component {
4284
3340
  idCardNumber: this.state.idCardNumber,
4285
3341
  customerName: this.state.customerName,
4286
3342
  certificateValidity: this.state.certificateValidity,
3343
+ resultIdCardName: this.state.resultIdCardName,
3344
+ resultIdCardNumber: this.state.resultIdCardNumber,
3345
+ resultCertificateDate: this.state.resultCertificateDate,
3346
+ authorizeStaffId: this.state.authorizeStaffId,
4287
3347
  }
4288
3348
  console.log(this.state.userIdCardResults)
4289
3349
  this.setState({
@@ -4298,6 +3358,10 @@ class Video extends Component {
4298
3358
  certificateValidity: '',
4299
3359
  idCardNumber: '',
4300
3360
  idCardName: '',
3361
+ resultIdCardName: '',
3362
+ resultIdCardNumber: '',
3363
+ resultCertificateDate: '',
3364
+ authorizeStaffId: '',
4301
3365
  titleModal: '身份验证',
4302
3366
  // clickedFacial: true,
4303
3367
  facialImg: faceImage,
@@ -4312,21 +3376,47 @@ class Video extends Component {
4312
3376
  // ocr结果入库
4313
3377
  confirmCallback = async (data) => {
4314
3378
  try {
4315
- let result = await API.confirmCallback({
4316
- idCardName: this.state.idCardName,
3379
+ // 原始证件参数
3380
+ let data = {
3381
+ idCardName: this.state.resultIdCardName,
4317
3382
  staffId: this.props.tellerAccount,
4318
3383
  activityId: this.props.businessNumber,
4319
3384
  appAccount: this.state.faceCustomerUid,
4320
- idCardNumber: this.state.idCardNumber,
3385
+ idCardNumber: this.state.resultIdCardNumber,
4321
3386
  sessionId: this.state.sessionId,
4322
3387
  certificateType: this.state.certificateType,
4323
3388
  customerName: this.state.customerName,
4324
- startDate: this.state.documentType == 'PASSPORT_CARD' ? '' : this.state.certificateValidity ? this.state.certificateValidity.split('-')[0] : '',
4325
- endDate: this.state.documentType == 'PASSPORT_CARD' ? this.state.certificateValidity ? this.state.certificateValidity.split('-')[0]: '' : this.state.certificateValidity ? this.state.certificateValidity.split('-')[1] : '',
4326
- });
3389
+ startDate: this.state.documentType == 'PASSPORT_CARD' ? '' : this.state.resultCertificateDate ? this.state.resultCertificateDate.split('-')[0] : '',
3390
+ endDate: this.state.documentType == 'PASSPORT_CARD' ? this.state.resultCertificateDate ? this.state.resultCertificateDate.split('-')[0]: '' : this.state.resultCertificateDate ? this.state.resultCertificateDate.split('-')[1] : '',
3391
+ }
3392
+ // 添加修改后的证件参数
3393
+ if (this.state.authorizeStaffId) {
3394
+ data.authorizeStaffId = this.state.authorizeStaffId
3395
+ }
3396
+ if (this.state.idCardName != this.state.resultIdCardName) {
3397
+ data.reviseIdCardName = this.state.idCardName
3398
+ }
3399
+ if (this.state.idCardNumber != this.state.resultIdCardNumber) {
3400
+ data.reviseIdCardNumber = this.state.idCardNumber
3401
+ }
3402
+ let reviseCertificateStartDate = this.state.documentType == 'PASSPORT_CARD' ? '' : this.state.certificateValidity ? this.state.certificateValidity.split('-')[0] : '';
3403
+ let reviseCertificateEndDate = this.state.documentType == 'PASSPORT_CARD' ? this.state.certificateValidity ? this.state.certificateValidity.split('-')[0]: '' : this.state.certificateValidity ? this.state.certificateValidity.split('-')[1] : '';
3404
+ if (reviseCertificateStartDate != data.startDate) {
3405
+ data.reviseCertificateStartDate = reviseCertificateStartDate
3406
+ }
3407
+ if (reviseCertificateEndDate != data.endDate) {
3408
+ data.reviseCertificateEndDate = reviseCertificateEndDate
3409
+ }
3410
+ let result = await API.confirmCallback(data);
4327
3411
  console.log('confirmCallback', result)
4328
3412
  if (result.code == 200) {
4329
3413
  // console.log(data)
3414
+ let item = this.state.videoList.find(el => el.userId == this.state.faceCustomerUid )
3415
+ item.hasOcr = 1; // 非身份证ocr
3416
+ // this.setState({
3417
+ // videoList: this.state.videoList
3418
+ // })
3419
+ this.videoListSort();
4330
3420
  } else {
4331
3421
  console.log('1')
4332
3422
  this.messageClick('保持信息失败', 'error')
@@ -4367,6 +3457,8 @@ class Video extends Component {
4367
3457
  this.setState({
4368
3458
  idCardNumber: result.data.idCardNumber,
4369
3459
  idCardName: result.data.idCardName,
3460
+ resultIdCardName: result.data.idCardName,
3461
+ resultIdCardNumber: result.data.idCardNumber,
4370
3462
  loadingFace: false,
4371
3463
  cardFailReason: '',
4372
3464
  cardResuly: 'success',
@@ -4375,6 +3467,8 @@ class Video extends Component {
4375
3467
  this.setState({
4376
3468
  idCardNumber: result.data.idCardNumber,
4377
3469
  idCardName: result.data.idCardName,
3470
+ resultIdCardName: result.data.idCardName,
3471
+ resultIdCardNumber: result.data.idCardNumber,
4378
3472
  certificateValidityType: false,
4379
3473
  cardFailReason: '证件已过期[#'+result.code+'#]',
4380
3474
  loadingFace: false,
@@ -4386,7 +3480,9 @@ class Video extends Component {
4386
3480
  this.setState({
4387
3481
  // isModalVisibleFacial: false
4388
3482
  idCardNumber: result.data.idCardNumber,
4389
- idCardName: result.data.idCardName
3483
+ idCardName: result.data.idCardName,
3484
+ resultIdCardName: result.data.idCardName,
3485
+ resultIdCardNumber: result.data.idCardNumber,
4390
3486
  })
4391
3487
  this.ocrCallback(2)
4392
3488
  }
@@ -4404,6 +3500,7 @@ class Video extends Component {
4404
3500
  if(this.state.idCardName && this.dateNewTime(endDate)) {
4405
3501
  this.setState({
4406
3502
  certificateValidity: startDate + '-' + endDate,
3503
+ resultCertificateDate: startDate + '-' + endDate,
4407
3504
  loadingFace: false,
4408
3505
  cardFailReason: '',
4409
3506
  cardResuly: 'success',
@@ -4412,6 +3509,7 @@ class Video extends Component {
4412
3509
  } else if(this.state.idCardName && !this.dateNewTime(endDate)) {
4413
3510
  this.setState({
4414
3511
  certificateValidity: startDate + '-' + endDate,
3512
+ resultCertificateDate: startDate + '-' + endDate,
4415
3513
  loadingFace: false,
4416
3514
  certificateValidityType: false,
4417
3515
  cardFailReason: '证件已过期[#'+result.code+'#]',
@@ -4450,13 +3548,16 @@ class Video extends Component {
4450
3548
  this.setState({
4451
3549
  // isModalVisibleFacial: false
4452
3550
  idCardNumber: result.data.resident.idNum,
4453
- idCardName: result.data.resident.name
3551
+ idCardName: result.data.resident.name,
3552
+ resultIdCardName: result.data.resident.name,
3553
+ resultIdCardNumber: result.data.resident.idNum,
4454
3554
  })
4455
3555
  this.ocrCallback(2)
4456
3556
  } else if (result.data.side == 'back' && val != 1) {
4457
3557
  console.log(result.data.resident.startDate, result.data.resident.endDate)
4458
3558
  this.setState({
4459
3559
  certificateValidity: result.data.resident.startDate + '-' + result.data.resident.endDate,
3560
+ resultCertificateDate: result.data.resident.startDate + '-' + result.data.resident.endDate,
4460
3561
  loadingFace: false,
4461
3562
  cardFailReason: result.code == 40002 ? '证件已过期[#'+result.code+'#]' : '',
4462
3563
  certificateValidityType: result.code == 40002 ? false : true,
@@ -4474,7 +3575,10 @@ class Video extends Component {
4474
3575
  this.setState({
4475
3576
  idCardNumber: result.data.passport.passportCode,
4476
3577
  idCardName: result.data.passport.nameEN,
3578
+ resultIdCardName: result.data.passport.nameEN,
3579
+ resultIdCardNumber: result.data.passport.passportCode,
4477
3580
  certificateValidity: result.data.passport.expiryDate,
3581
+ resultCertificateDate: result.data.passport.expiryDate,
4478
3582
  loadingFace: false,
4479
3583
  cardFailReason: result.code == 30002 ? '证件已过期[#'+result.code+'#]' : '',
4480
3584
  certificateValidityType: result.code == 30002 ? false : true,
@@ -4486,7 +3590,10 @@ class Video extends Component {
4486
3590
  this.setState({
4487
3591
  idCardNumber: result.data.permission.cardNum,
4488
3592
  idCardName: result.data.permission.nameEN,
3593
+ resultIdCardName: result.data.permission.nameEN,
3594
+ resultIdCardNumber: result.data.permission.cardNum,
4489
3595
  certificateValidity: result.data.permission.validDate,
3596
+ resultCertificateDate: result.data.permission.validDate,
4490
3597
  loadingFace: false,
4491
3598
  cardFailReason: result.code == 50002 ? '证件已过期[#'+result.code+'#]' : '',
4492
3599
  certificateValidityType: result.code == 50002 ? false : true,
@@ -4559,21 +3666,47 @@ class Video extends Component {
4559
3666
  }
4560
3667
  this.handleCancelFacial();
4561
3668
  try {
4562
- let result = await API.confirmCallback({
4563
- idCardName: userInfo.idCardName,
3669
+ // 原始证件参数
3670
+ let data = {
3671
+ idCardName: userInfo.resultIdCardName,
4564
3672
  staffId: this.props.tellerAccount,
4565
3673
  activityId: this.props.businessNumber,
4566
3674
  appAccount: this.state.faceCustomerUid,
4567
- idCardNumber: userInfo.idCardNumber,
3675
+ idCardNumber: userInfo.resultIdCardNumber,
4568
3676
  sessionId: this.state.sessionId,
4569
3677
  certificateType: 'ID_CARD',
4570
3678
  customerName: userInfo.customerName,
4571
- startDate: userInfo.certificateValidity ? userInfo.certificateValidity.split('-')[0] : '',
4572
- endDate: userInfo.certificateValidity ? userInfo.certificateValidity.split('-')[1] : '',
4573
- });
3679
+ startDate: userInfo.resultCertificateDate ? userInfo.resultCertificateDate.split('-')[0] : '',
3680
+ endDate: userInfo.resultCertificateDate ? userInfo.resultCertificateDate.split('-')[1] : '',
3681
+ }
3682
+ // 添加修改后的证件参数
3683
+ if (userInfo.authorizeStaffId) {
3684
+ data.authorizeStaffId = userInfo.authorizeStaffId
3685
+ }
3686
+ if (userInfo.idCardName != userInfo.resultIdCardName) {
3687
+ data.reviseIdCardName = userInfo.idCardName
3688
+ }
3689
+ if (userInfo.idCardNumber != userInfo.resultIdCardNumber) {
3690
+ data.reviseIdCardNumber = userInfo.idCardNumber
3691
+ }
3692
+ let reviseCertificateStartDate = userInfo.certificateValidity ? userInfo.certificateValidity.split('-')[0] : '';
3693
+ let reviseCertificateEndDate = userInfo.certificateValidity ? userInfo.certificateValidity.split('-')[1] : '';
3694
+ if (reviseCertificateStartDate != data.startDate) {
3695
+ data.reviseCertificateStartDate = reviseCertificateStartDate
3696
+ }
3697
+ if (reviseCertificateEndDate != data.endDate) {
3698
+ data.reviseCertificateEndDate = reviseCertificateEndDate
3699
+ }
3700
+ let result = await API.confirmCallback(data);
4574
3701
  console.log('confirmCallback', result)
4575
3702
  if (result.code == 200) {
4576
3703
  // console.log(data)
3704
+ let item = this.state.videoList.find(el => el.userId == this.state.faceCustomerUid )
3705
+ item.hasOcr = 2; // 身份证ocr
3706
+ // this.setState({
3707
+ // videoList: this.state.videoList
3708
+ // })
3709
+ this.videoListSort();
4577
3710
  } else {
4578
3711
  console.log('1')
4579
3712
  this.messageClick('保持信息失败', 'error')
@@ -4866,38 +3999,10 @@ class Video extends Component {
4866
3999
  console.log(sid)
4867
4000
  let userId = ''
4868
4001
  let index
4869
- if (document.getElementById('video1').name == sid) {
4870
- userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid
4871
- }
4872
- if (document.getElementById('video2').name == sid) {
4873
- userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid
4874
- } if (document.getElementById('video3').name == sid) {
4875
- userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid
4876
- } if (document.getElementById('video4').name == sid) {
4877
- userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid
4878
- } if (document.getElementById('video5').name == sid) {
4879
- userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid
4880
- } if (document.getElementById('video6').name == sid) {
4881
- userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid
4882
- }
4883
-
4884
- if (document.getElementById('video7').name == sid) {
4885
- userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid
4886
- }
4887
- if (document.getElementById('video8').name == sid) {
4888
- userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid
4889
- }
4890
- if (document.getElementById('video9').name == sid) {
4891
- userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid
4892
- }
4893
- if (document.getElementById('video10').name == sid) {
4894
- userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid
4895
- }
4896
- if (document.getElementById('video11').name == sid) {
4897
- userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid
4898
- }
4899
- if (document.getElementById('video12').name == sid) {
4900
- userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid
4002
+ for (let i =1;i<=12;i++){
4003
+ if(document.getElementById('video'+ i) && document.getElementById('video'+ i).name == sid && document.getElementById("feedId"+i).innerText){
4004
+ userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId"+i).innerText).uid
4005
+ }
4901
4006
  }
4902
4007
  if (document.getElementById('publish_video1').name == sid) {
4903
4008
  userId = this.props.tellerAccount
@@ -4905,7 +4010,8 @@ class Video extends Component {
4905
4010
  try {
4906
4011
  let result = await API.appGetUsername({
4907
4012
  userId: userId,
4908
- sessionId: this.state.sessionId
4013
+ sessionId: this.state.sessionId,
4014
+ activityId: this.props.businessNumber
4909
4015
  });
4910
4016
  console.log(result)
4911
4017
  let data
@@ -4933,117 +4039,28 @@ class Video extends Component {
4933
4039
  this.setState({
4934
4040
  titleNameRm: data
4935
4041
  })
4936
- }
4937
- if (document.getElementById('video1').name == sid) {
4938
- if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4939
- this.state.isPIBIntranet[0].type = true
4940
- }
4941
- this.setState({
4942
- videoOneName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户1'
4943
- },()=>{
4944
- this.videoListClick()
4945
- })
4946
- }
4947
- if (document.getElementById('video2').name == sid) {
4948
- if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4949
- this.state.isPIBIntranet[1].type = true
4950
- }
4951
- this.setState({
4952
- videoTwoName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户2'
4953
- },()=>{
4954
- this.videoListClick()
4955
- })
4956
- } if (document.getElementById('video3').name == sid) {
4957
- if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4958
- this.state.isPIBIntranet[2].type = true
4959
- }
4960
- this.setState({
4961
- videoThreeName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户3'
4962
- },()=>{
4963
- this.videoListClick()
4964
- })
4965
- } if (document.getElementById('video4').name == sid) {
4966
- if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4967
- this.state.isPIBIntranet[3].type = true
4968
- }
4969
- this.setState({
4970
- videoFourName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户4'
4971
- },()=>{
4972
- this.videoListClick()
4973
- })
4974
- } if (document.getElementById('video5').name == sid) {
4975
- if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4976
- this.state.isPIBIntranet[4].type = true
4977
- }
4978
- this.setState({
4979
- videoFiveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户5'
4980
- },()=>{
4981
- this.videoListClick()
4982
- })
4983
- } if (document.getElementById('video6').name == sid) {
4984
- if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4985
- this.state.isPIBIntranet[5].type = true
4986
- }
4987
- this.setState({
4988
- videoSixName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户6'
4989
- },()=>{
4990
- this.videoListClick()
4991
- })
4992
- }
4993
- if (document.getElementById('video7').name == sid) {
4994
- if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
4995
- this.state.isPIBIntranet[6].type = true
4996
- }
4997
- this.setState({
4998
- videoSevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户7'
4999
- },()=>{
5000
- this.videoListClick()
5001
- })
5002
- } if (document.getElementById('video8').name == sid) {
5003
- if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
5004
- this.state.isPIBIntranet[7].type = true
5005
- }
5006
- this.setState({
5007
- videoEightName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户8'
5008
- },()=>{
5009
- this.videoListClick()
5010
- })
5011
- } if (document.getElementById('video9').name == sid) {
5012
- if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
5013
- this.state.isPIBIntranet[8].type = true
5014
- }
5015
- this.setState({
5016
- videoNineName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户9'
5017
- },()=>{
5018
- this.videoListClick()
5019
- })
5020
- } if (document.getElementById('video10').name == sid) {
5021
- if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
5022
- this.state.isPIBIntranet[9].type = true
5023
- }
5024
- this.setState({
5025
- videoTenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户10'
5026
- },()=>{
5027
- this.videoListClick()
5028
- })
5029
- } if (document.getElementById('video11').name == sid) {
5030
- if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
5031
- this.state.isPIBIntranet[10].type = true
5032
- }
5033
- this.setState({
5034
- videoElevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户11'
5035
- },()=>{
5036
- this.videoListClick()
5037
- })
5038
- } if (document.getElementById('video12').name == sid) {
5039
- if ((typeIntranet && typeIntranet == 2) || (userSide && userSide == 2)) {
5040
- this.state.isPIBIntranet[11].type = true
4042
+ } else {
4043
+ for (let i =1;i<=12;i++){
4044
+ if(document.getElementById('video'+i).name == sid){
4045
+
4046
+ if ((typeIntranet && typeIntranet == 2) && (userSide && userSide == 2)) {
4047
+ // this.state.isPIBIntranet[0].type = true
4048
+ this.state.videoList[i-1].isPIBIntranet = true
4049
+ }
4050
+ if (result.data.idCardNumber && result.data.certificateType) {
4051
+ this.state.videoList[i-1].hasOcr = result.data.certificateType.includes('ID_CARD') ? 2 : 1
4052
+ }
4053
+ this.state.videoList[i-1].userId = userId
4054
+ this.state.videoList[i-1].videoName = data
4055
+ this.state.videoList[i-1].userSide = userSide
4056
+ this.state.videoList[i-1].userType = typeIntranet
4057
+ }
5041
4058
  }
5042
4059
  this.setState({
5043
- videoTwelveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户12'
5044
- },()=>{
5045
- this.videoListClick()
4060
+ videoList: this.state.videoList
4061
+ // videoOneName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId"+i).innerText).tag == 'tag1' ? '坐席' : data ? data : ('客户'+i)
5046
4062
  })
4063
+ this.videoListSort();
5047
4064
  }
5048
4065
  if (this.state.isPictureInPicture) {
5049
4066
  this.pictureInPicture('Refresh')
@@ -5726,7 +4743,7 @@ class Video extends Component {
5726
4743
  'id': 3,
5727
4744
  'content': '本人同意使用电子签名方式签署作为陪同者所需签署的文件,并授权汇丰银行(中国)有限公司(“汇丰中国”)通过电子签名服务供应商向第三方认证机构提供本人的姓名和身份证件号码,用以申请本人专属的数字证书,本人在电子设备上签署文件即表明本人指示汇丰中国使用本人专属电子证书对该等文件进行电子签名。本人知悉并同意,电子签名和手写签名具有同等法律效力。 \n说明:电子签名服务供应商和第三方认证机构的名称和联系方式如下:' +
5728
4745
  '\n电子签名服务供应商:杭州尚尚签网络科技有限公司(联系电话:4009936665)\n第三方认证机构: \n北京天威诚信电子商务服务有限公司(联系电话:010-50947500)\n中金金融认证中心有限公司(联系电话:010-83526655)',
5729
- 'content_en': 'To sign in the relevant document required as companion, do you agree to adopt electronic signature in it?. And you shall authorize HSBC (China) Co., Ltd to provide your name and identity document number to the certificate authority through the electronic signature service provider to apply for your own digital certificate. By signing the document on the electronic device, you authorize HSBC (China) Co., Ltd to use your digital certificate and apply your electronic signature to the documents. You understand and agree that electronic signature has the same legal effect as handwritten signature.' +
4746
+ 'content_en': 'To sign in the relevant document required as companion, do you agree to adopt electronic signature in it? And you shall authorize HSBC (China) Co., Ltd to provide your name and identity document number to the certificate authority through the electronic signature service provider to apply for your own digital certificate. By signing the document on the electronic device, you authorize HSBC (China) Co., Ltd to use your digital certificate and apply your electronic signature to the documents. You understand and agree that electronic signature has the same legal effect as handwritten signature.' +
5730
4747
  '\nPlease be noted the names and contact information of the electronic signature service provider and the certificate authority are as follows:\nElectronic signature service provider: Hangzhou BestSign Network Technology Co. Ltd. (Contact: 4009936665) \nCertificate Authority: \nChina Financial Certification Authority (Contact: 010-83526655)\niTrusChina Co., Ltd (Contact: 010-50947500)'
5731
4748
  }
5732
4749
  ]
@@ -5753,7 +4770,7 @@ class Video extends Component {
5753
4770
  'id': 2,
5754
4771
  'content': '对于陪同者所需签署的文件,您是否同意使用电子签名方式签署,并授权汇丰银行(中国)有限公司(“汇丰中国”)通过电子签名服务供应商向第三方认证机构提供您本人的姓名和身份证件号码,用以申请您本人专属的数字证书?您本人在电子设备上签署文件即表明您本人指示汇丰中国使用您本人专属电子证书对该等文件进行电子签名。您本人知悉并同意,电子签名和手写签名具有同等法律效力。 \n说明:电子签名服务供应商和第三方认证机构的名称和联系方式如下:' +
5755
4772
  '\n电子签名服务供应商:杭州尚尚签网络科技有限公司(联系电话:4009936665)\n第三方认证机构: \n北京天威诚信电子商务服务有限公司(联系电话:010-50947500)\n中金金融认证中心有限公司(联系电话:010-83526655)',
5756
- 'content_en': 'To sign in the relevant document required as companion, do you agree to adopt electronic signature in it?. And you shall authorize HSBC (China) Co., Ltd to provide your name and identity document number to the certificate authority through the electronic signature service provider to apply for your own digital certificate. By signing the document on the electronic device, you authorize HSBC (China) Co., Ltd to use your digital certificate and apply your electronic signature to the documents. You understand and agree that electronic signature has the same legal effect as handwritten signature.' +
4773
+ 'content_en': 'To sign in the relevant document required as companion, do you agree to adopt electronic signature in it? And you shall authorize HSBC (China) Co., Ltd to provide your name and identity document number to the certificate authority through the electronic signature service provider to apply for your own digital certificate. By signing the document on the electronic device, you authorize HSBC (China) Co., Ltd to use your digital certificate and apply your electronic signature to the documents. You understand and agree that electronic signature has the same legal effect as handwritten signature.' +
5757
4774
  '\nPlease be noted the names and contact information of the electronic signature service provider and the certificate authority are as follows:\nElectronic signature service provider: Hangzhou BestSign Network Technology Co. Ltd. (Contact: 4009936665) \nCertificate Authority: \nChina Financial Certification Authority (Contact: 010-83526655)\niTrusChina Co., Ltd (Contact: 010-50947500)'
5758
4775
  }
5759
4776
  ]
@@ -5826,6 +4843,52 @@ class Video extends Component {
5826
4843
  console.log(err)
5827
4844
  }
5828
4845
  }
4846
+ // 视频窗口排序
4847
+ videoListSort = () => {
4848
+ console.log(this.state.videoList)
4849
+ let list = [...this.state.videoList]
4850
+ list.sort((a, b)=>{
4851
+ // 判断是否有客户
4852
+ if (!b.videoName && a.videoName){
4853
+ return -1
4854
+ }
4855
+ if (!a.videoName && b.videoName){
4856
+ return 1
4857
+ }
4858
+ // 判断是否是坐席
4859
+ // if (a.isTeller != b.isTeller) {
4860
+ // return a.isTeller ? -1 : 1
4861
+ // }
4862
+ // 判断是否是内网pib
4863
+ if (a.isPIBIntranet != b.isPIBIntranet){
4864
+ return !a.isPIBIntranet ? -1 : 1
4865
+ }
4866
+
4867
+ // 判断行内或行外客户
4868
+ if (a.userSide != b.userSide){
4869
+ return a.userSide == 2 ? -1 : 1
4870
+ }
4871
+
4872
+ // 判断行外客户是否做过ocr
4873
+ if (a.hasOcr != b.hasOcr) {
4874
+ return (b.hasOcr || 0) - (a.hasOcr || 0)
4875
+ }
4876
+
4877
+ return a.idIndex - b.idIndex;
4878
+ })
4879
+ console.log('排序后list', list);
4880
+ for(let i=0;i<12;i++){
4881
+ for(let j=0;j<12;j++){
4882
+ if (list[j].videoName == this.state.videoList[i].videoName) {
4883
+ this.state.videoList[i].order = j
4884
+ }
4885
+ }
4886
+ }
4887
+ // console.log(this.state.videoList)
4888
+ this.setState({
4889
+ videoList: this.state.videoList
4890
+ })
4891
+ }
5829
4892
  videoListClick=()=>{
5830
4893
  // console.log(Math.trunc(document.getElementById("videoList").getBoundingClientRect().height),document.getElementById("videoList").scrollHeight)
5831
4894
  // if(Math.trunc(document.getElementById("videoList").getBoundingClientRect().height) >= document.getElementById("videoList").scrollHeight && this.state.isVideoList) {
@@ -5964,7 +5027,7 @@ class Video extends Component {
5964
5027
  <CanvasHome zIndexNum={this.state.zIndexNum} style={{ width: isGraffiti ? this.state.widthVideo + 'px' : this.state.whiteboardWidth + 'Px', height: this.state.whiteboardHeight + 'Px', top: this.state.whiteboardTop + 'Px', left: isGraffiti ? this.state.leftVideo + 'px' : this.state.whiteboardLeft + 'Px' }}>
5965
5028
  {this.state.operateShow &&
5966
5029
  <OpreateDiv id="operate">
5967
- <span style={{ color: this.state.selectSpan == 'pen' ? '#1890ff' : '#333' }} onClick={() => this.setTool('pen')}>铅笔</span>
5030
+ <span style={{ color: this.state.selectSpan == 'pen' ? '#1890ff' : '#333' }} onClick={() => this.setTool('pen')}>黑笔</span>
5968
5031
  <span style={{ color: this.state.selectSpan == 'redPen' ? '#1890ff' : '#333' }} onClick={() => this.setStrokeColor()}>红笔</span>
5969
5032
  <span style={{ color: this.state.selectSpan == 'eraser' ? '#1890ff' : '#333' }} onClick={() => this.setTool('eraser')}>橡皮</span>
5970
5033
  <span onClick={() => this.setOpreate('undo')}>撤销</span>
@@ -6076,365 +5139,71 @@ class Video extends Component {
6076
5139
  </div>
6077
5140
 
6078
5141
  </div>
6079
- <div
6080
- className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
6081
- style={{ position: "relative", display: (this.state.videoOneName) ? '' : 'none' }}
5142
+ {/* <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
5143
+ style={{ position: "relative", display: (this.state.videoList[0].videoName) ? '' : 'none' }}
6082
5144
  >
6083
- {
6084
- this.state.customAudioed && <img
6085
- alt=""
6086
- src={require("../../assets/img/yingpin.png").default}
6087
- style={{ width: "100%", height: "100%", }}
6088
- ></img>
6089
- }
6090
5145
  <div className="video1Div">
6091
5146
  <video
6092
5147
  id="video1"
6093
5148
  autoPlay
6094
5149
  muted={true}
6095
5150
  disablePictureInPicture
6096
- className={`video1 ${this.state.noVideoOne ? 'isNoVideo' : ''}`}
5151
+ className={`video1 ${this.state.videoList[0].noVideo ? 'isNoVideo' : ''}`}
6097
5152
  />
6098
5153
  <audio id="audio1" autoPlay />
6099
5154
  <label style={{ display: 'none' }} id="feedId1" type="text" />
6100
5155
 
6101
- <div style={{ display: (this.state.videoOneName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
5156
+ <div style={{ display: (this.state.videoList[0].videoName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
6102
5157
  <div onClick={this.muteOpposite.bind(this, 'video1')}>
6103
5158
  {
6104
- this.state.voiceVideoOne && <img
5159
+ this.state.videoList[0].mute && <img
6105
5160
  alt=""
6106
5161
  src={require("../../assets/img/jingyin.png").default}
6107
5162
  className="imgClassVoice voiceVideoClass"
6108
5163
  />
6109
5164
  }
6110
- <canvas style={{ display: (this.state.videoOneName && !this.state.voiceVideoOne) ? '' : 'none', width: '25px', height: '25px', marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
5165
+ <canvas style={{ display: (this.state.videoList[0].videoName && !this.state.videoList[0].mute) ? '' : 'none', width: '25px', height: '25px', marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
6111
5166
  </div>
6112
5167
  <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
6113
- {this.state.videoOneName}
5168
+ {this.state.videoList[0].videoName}
6114
5169
  </div>
6115
5170
 
6116
5171
 
6117
5172
  </div>
6118
5173
  </div>
6119
- </div>
6120
- <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoTwoName) ? '' : 'none', }}>
6121
- <video
6122
- id="video2"
6123
- autoPlay
6124
- disablePictureInPicture
6125
- muted={true}
6126
- className={`video ${this.state.noVideoTwo ? 'isNoVideo' : ''}`}
6127
- />
6128
- <audio id="audio2" autoPlay />
6129
- <label style={{ display: 'none' }} id="feedId2" type="text" />
6130
-
6131
- <div style={{ display: (this.state.videoTwoName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
6132
- <div onClick={this.muteOpposite.bind(this, 'video2')}>
6133
- {
6134
- this.state.voiceVideoTwo && <img
6135
- alt=""
6136
- src={require("../../assets/img/jingyin.png").default}
6137
- className="imgClassVoice voiceVideoClass"
6138
- />
6139
- }
6140
- <canvas style={{ display: (this.state.videoTwoName && !this.state.voiceVideoTwo) ? '' : 'none', width: '25px', height: '25px', marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView2" width="40" height="70"></canvas>
6141
- </div>
6142
- <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
6143
- {this.state.videoTwoName}
6144
- </div>
6145
- </div>
6146
- </div>
6147
- <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
6148
- style={{ display: (this.state.videoThreeName) ? '' : 'none' }}>
6149
- <video
6150
- id="video3"
6151
- autoPlay
6152
- muted={true}
6153
- disablePictureInPicture
6154
- className={`video ${this.state.noVideoThree ? 'isNoVideo' : ''}`}
6155
- />
6156
- <audio id="audio3" autoPlay />
6157
- <label style={{ display: 'none' }} id="feedId3" type="text" />
6158
-
6159
- <div style={{ display: (this.state.videoThreeName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
6160
- <div onClick={this.muteOpposite.bind(this, 'video3')}>
6161
- {
6162
- this.state.voiceVideoThree && <img
6163
- alt=""
6164
- src={require("../../assets/img/jingyin.png").default}
6165
- className="imgClassVoice voiceVideoClass"
6166
- />
6167
- }
6168
- <canvas style={{ display: (this.state.videoThreeName && !this.state.voiceVideoThree) ? '' : 'none', width: '25px', height: '25px', marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
6169
- </div>
6170
- <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
6171
- {this.state.videoThreeName}
6172
- </div>
6173
- </div>
6174
- </div>
6175
- <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoFourName) ? '' : 'none', }}>
6176
- <video
6177
- id="video4"
6178
- autoPlay
6179
- muted={true}
6180
- disablePictureInPicture
6181
- className={`video ${this.state.noVideoFour ? 'isNoVideo' : ''}`}
6182
- />
6183
- <audio id="audio4" autoPlay />
6184
- <label style={{ display: 'none' }} id="feedId4" type="text" />
6185
-
6186
- <div style={{ display: (this.state.videoFourName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
6187
- <div onClick={this.muteOpposite.bind(this, 'video4')}>
6188
- {
6189
- this.state.voiceVideoFour && <img
6190
- alt=""
6191
- src={require("../../assets/img/jingyin.png").default}
6192
- className="imgClassVoice voiceVideoClass"
6193
- />
6194
- }
6195
- <canvas style={{ display: (this.state.videoFourName && !this.state.voiceVideoFour) ? '' : 'none', width: '25px', height: '25px', marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
6196
- </div>
6197
- <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
6198
- {this.state.videoFourName}
6199
- </div>
6200
- </div>
6201
- </div>
6202
- <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
6203
- style={{ display: (this.state.videoFiveName) ? '' : 'none' }}>
6204
- <video
6205
- id="video5"
6206
- autoPlay
6207
- muted={true}
6208
- disablePictureInPicture
6209
- className={`video ${this.state.noVideoFive ? 'isNoVideo' : ''}`}
6210
- />
6211
- <audio id="audio5" autoPlay />
6212
- <label style={{ display: 'none' }} id="feedId5" type="text" />
6213
-
6214
- <div style={{ display: (this.state.videoFiveName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
6215
- <div onClick={this.muteOpposite.bind(this, 'video5')}>
6216
- {
6217
- this.state.voiceVideoFive && <img
6218
- alt=""
6219
- src={require("../../assets/img/jingyin.png").default}
6220
- className="imgClassVoice voiceVideoClass"
6221
- />
6222
- }
6223
- <canvas style={{ display: (this.state.videoFiveName && !this.state.voiceVideoFive) ? '' : 'none', width: '25px', height: '25px', marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
6224
- </div>
6225
- <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
6226
- {this.state.videoFiveName}
6227
- </div>
6228
- </div>
6229
- </div>
6230
- <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoSixName) ? '' : 'none', }}>
6231
- <video
6232
- id="video6"
6233
- autoPlay
6234
- muted={true}
6235
- disablePictureInPicture
6236
- className={`video ${this.state.noVideoSix ? 'isNoVideo' : ''}`}
6237
- />
6238
- <audio id="audio6" autoPlay />
6239
- <label style={{ display: 'none' }} id="feedId6" type="text" />
6240
-
6241
- <div style={{ display: (this.state.videoSixName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
6242
- <div onClick={this.muteOpposite.bind(this, 'video6')}>
6243
- {
6244
- this.state.voiceVideoSix && <img
6245
- alt=""
6246
- src={require("../../assets/img/jingyin.png").default}
6247
- className="imgClassVoice voiceVideoClass"
6248
- />
6249
- }
6250
- <canvas style={{ display: (!this.state.voiceVideoSix) ? '' : 'none', width: '25px', height: '25px', marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
6251
- </div>
6252
- <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
6253
- {this.state.videoSixName}
6254
- </div>
6255
- </div>
5174
+ </div> */}
6256
5175
 
6257
- </div>
6258
- <div
6259
- className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
6260
- style={{ position: "relative", display: (this.state.videoSevenName) ? '' : 'none' }}
6261
- >
6262
- {
6263
- this.state.customAudioed && <img
6264
- alt=""
6265
- src={require("../../assets/img/yingpin.png").default}
6266
- style={{ width: "100%", height: "100%", }}
6267
- ></img>
6268
- }
6269
- <div className="video1Div" style={{ display: (!this.state.customAudioed) ? '' : 'none', }}>
5176
+ {
5177
+ this.state.videoList.map((item,index)=>{
5178
+ // if (index!=0)
5179
+ return <div key={index} className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (item.videoName) ? '' : 'none', 'order': item.order}}>
6270
5180
  <video
6271
- id="video7"
5181
+ id={'video'+(item.idIndex)}
6272
5182
  autoPlay
6273
5183
  muted={true}
6274
5184
  disablePictureInPicture
6275
- className={`video ${this.state.noVideoSeven ? 'isNoVideo' : ''}`}
5185
+ className={`video ${item.noVideo ? 'isNoVideo' : ''}`}
6276
5186
  />
6277
- <audio id="audio7" autoPlay />
6278
- <label style={{ display: 'none' }} id="feedId7" type="text" />
5187
+ <audio id={'audio'+(item.idIndex)} autoPlay />
5188
+ <label style={{ display: 'none' }} id={'feedId'+(item.idIndex)} type="text" />
5189
+
5190
+ <div style={{ display: (item.videoName) ? '' : 'none'}} className={`customerTitle titleSamlle`}>
5191
+ {
5192
+ item.mute && <img
5193
+ alt=""
5194
+ src={require("../../assets/img/jingyin.png").default}
5195
+ className="imgClassVoice voiceVideoClass"
5196
+ />
5197
+ }
5198
+ <canvas style={{ display: (item.videoName && !item.mute) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id={"subscribe_volumeView"+(item.idIndex)} width="40" height="70"></canvas>
6279
5199
 
6280
- <div style={{ display: (this.state.videoSevenName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
6281
- <div onClick={this.muteOpposite.bind(this, 'video7')}>
6282
- {
6283
- this.state.voiceVideoSeven && <img
6284
- alt=""
6285
- src={require("../../assets/img/jingyin.png").default}
6286
- className="imgClassVoice voiceVideoClass"
6287
- />
6288
- }
6289
- <canvas style={{ display: (this.state.videoSevenName && !this.state.voiceVideoSeven) ? '' : 'none', width: '25px', height: '25px', marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView7" width="40" height="70"></canvas>
6290
- </div>
6291
- <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
6292
- {this.state.videoSevenName}
5200
+ <div className='titleName' style={{ color: this.props.titleColor,fontSize: this.props.fontSize + 'px',fontFamily : this.props.fontFamily}}>
5201
+ {item.videoName}
6293
5202
  </div>
6294
-
6295
-
6296
- </div>
6297
- </div>
6298
- </div>
6299
- <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoEightName) ? '' : 'none', }}>
6300
- <video
6301
- id="video8"
6302
- autoPlay
6303
- muted={true}
6304
- disablePictureInPicture
6305
- className={`video ${this.state.noVideoEight ? 'isNoVideo' : ''}`}
6306
- />
6307
- <audio id="audio8" autoPlay />
6308
- <label style={{ display: 'none' }} id="feedId8" type="text" />
6309
-
6310
- <div style={{ display: (this.state.videoEightName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
6311
- <div onClick={this.muteOpposite.bind(this, 'video8')}>
6312
- {
6313
- this.state.voiceVideoEight && <img
6314
- alt=""
6315
- src={require("../../assets/img/jingyin.png").default}
6316
- className="imgClassVoice voiceVideoClass"
6317
- />
6318
- }
6319
- <canvas style={{ display: (this.state.videoEightName && !this.state.voiceVideoEight) ? '' : 'none', width: '25px', height: '25px', marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView8" width="40" height="70"></canvas>
6320
- </div>
6321
- <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
6322
- {this.state.videoEightName}
6323
- </div>
6324
- </div>
6325
- </div>
6326
- <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoNineName) ? '' : 'none', }}>
6327
- <video
6328
- id="video9"
6329
- autoPlay
6330
- muted={true}
6331
- disablePictureInPicture
6332
- className={`video ${this.state.noVideoNine ? 'isNoVideo' : ''}`}
6333
- />
6334
- <audio id="audio9" autoPlay />
6335
- <label style={{ display: 'none' }} id="feedId9" type="text" />
6336
-
6337
- <div style={{ display: (this.state.videoNineName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
6338
- <div onClick={this.muteOpposite.bind(this, 'video9')}>
6339
- {
6340
- this.state.voiceVideoNine && <img
6341
- alt=""
6342
- src={require("../../assets/img/jingyin.png").default}
6343
- className="imgClassVoice voiceVideoClass"
6344
- />
6345
- }
6346
- <canvas style={{ display: (this.state.videoNineName && !this.state.voiceVideoSix) ? '' : 'none', width: '25px', height: '25px', marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView9" width="40" height="70"></canvas>
6347
- </div>
6348
- <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
6349
- {this.state.videoNineName}
6350
- </div>
6351
- </div>
6352
-
6353
- </div>
6354
- <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
6355
- style={{ display: (this.state.videoTenName) ? '' : 'none' }}>
6356
- <video
6357
- id="video10"
6358
- autoPlay
6359
- muted={true}
6360
- disablePictureInPicture
6361
- className={`video ${this.state.noVideoTen ? 'isNoVideo' : ''}`}
6362
- />
6363
- <audio id="audio10" autoPlay />
6364
- <label style={{ display: 'none' }} id="feedId10" type="text" />
6365
-
6366
- <div style={{ display: (this.state.videoTenName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
6367
- <div onClick={this.muteOpposite.bind(this, 'video10')}>
6368
- {
6369
- this.state.voiceVideoTen && <img
6370
- alt=""
6371
- src={require("../../assets/img/jingyin.png").default}
6372
- className="imgClassVoice voiceVideoClass"
6373
- />
6374
- }
6375
- <canvas style={{ display: (this.state.videoTenName && !this.state.voiceVideoTen) ? '' : 'none', width: '25px', height: '25px', marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView10" width="40" height="70"></canvas>
6376
- </div>
6377
- <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
6378
- {this.state.videoTenName}
6379
5203
  </div>
6380
5204
  </div>
6381
- </div>
6382
- <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`} style={{ display: (this.state.videoElevenName) ? '' : 'none', }}>
6383
- <video
6384
- id="video11"
6385
- autoPlay
6386
- muted={true}
6387
- disablePictureInPicture
6388
- className={`video ${this.state.noVideoEleven ? 'isNoVideo' : ''}`}
6389
- />
6390
- <audio id="audio11" autoPlay />
6391
- <label style={{ display: 'none' }} id="feedId11" type="text" />
6392
-
6393
- <div style={{ display: (this.state.videoElevenName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
6394
- <div onClick={this.muteOpposite.bind(this, 'video11')}>
6395
- {
6396
- this.state.voiceVideoEleven && <img
6397
- alt=""
6398
- src={require("../../assets/img/jingyin.png").default}
6399
- className="imgClassVoice voiceVideoClass"
6400
- />
6401
- }
6402
- <canvas style={{ display: (this.state.videoElevenName && !this.state.voiceVideoEleven) ? '' : 'none', width: '25px', height: '25px', marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView11" width="40" height="70"></canvas>
6403
- </div>
6404
- <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
6405
- {this.state.videoElevenName}
6406
- </div>
6407
- </div>
6408
- </div>
6409
- <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
6410
- style={{ display: (this.state.videoTwelveName) ? '' : 'none' }}>
6411
- <video
6412
- id="video12"
6413
- autoPlay
6414
- muted={true}
6415
- disablePictureInPicture
6416
- className={`video ${this.state.noVideoTwelve ? 'isNoVideo' : ''}`}
6417
- />
6418
- <audio id="audio12" autoPlay />
6419
- <label style={{ display: 'none' }} id="feedId12" type="text" />
6420
-
6421
- <div style={{ display: (this.state.videoTwelveName) ? '' : 'none', background: this.props.titleBackground, color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }} className={`customerTitle titleSamlle`}>
6422
- <div onClick={this.muteOpposite.bind(this, 'video12')}>
6423
- {
6424
- this.state.voiceVideoTwelve && <img
6425
- alt=""
6426
- src={require("../../assets/img/jingyin.png").default}
6427
- className="imgClassVoice voiceVideoClass"
6428
- />
6429
- }
6430
- <canvas style={{ display: (this.state.videoTwelveName && !this.state.voiceVideoTwelve) ? '' : 'none', width: '25px', height: '25px', marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView12" width="40" height="70"></canvas>
6431
- </div>
6432
- <div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
6433
- {this.state.videoTwelveName}
6434
- </div>
6435
- </div>
6436
- </div>
6437
-
5205
+ })
5206
+ }
6438
5207
 
6439
5208
  </div>
6440
5209
  <img id="icon_huatong" style={{ display: 'none' }} src={require("../../assets/img/icon_huatong.png").default}></img>