react_hsbc_teller 0.3.9 → 0.4.3

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.
@@ -52,7 +52,6 @@ class Video extends Component {
52
52
  cameraImg: cameraImgOpen,
53
53
  voiceStatue: false,
54
54
  voiceImg: voiceImgOpen,
55
- isBigVideo: 'video1',
56
55
  isCustomer: false,
57
56
  publishDevic: 1,
58
57
  isSharedScreen: false,
@@ -77,11 +76,37 @@ class Video extends Component {
77
76
  videoFourName: '',
78
77
  videoFiveName: '',
79
78
  videoSixName: '',
79
+ videoSevenName: '',
80
+ videoEightName:'',
81
+ videoTenName: '',
82
+ videoNineName: '',
83
+ videoTwelveName: '',
84
+ videoElevenName: '',
80
85
  tabTitles: [
81
- ]
86
+ ],
87
+ videoList: [],
88
+ voiceVideoOne: false,
89
+ voiceVideoTwo: false,
90
+ voiceVideoThree: false,
91
+ voiceVideoFour: false,
92
+ voiceVideoFive: false,
93
+ voiceVideoSix: false,
94
+ voiceVideoSeven: false,
95
+ voiceVideoEight: false,
96
+ voiceVideoNine: false,
97
+ voiceVideoTen: false,
98
+ voiceVideoEleven: false,
99
+ voiceVideoTwelve: false
82
100
  };
83
101
  // eslint-disable-next-line no-undef
84
102
  test_controller = '';
103
+
104
+ componentDidMount() {
105
+ window.onbeforeunload = () =>{
106
+ this.finishSession()
107
+ }
108
+ };
109
+
85
110
  /**
86
111
  * 创建房间成功后回调后台
87
112
  * @param {JSON} data 数据类型
@@ -380,13 +405,54 @@ class Video extends Component {
380
405
  }
381
406
  if (document.getElementById('video6').name) {
382
407
  console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText))
383
- // document.getElementById("feedId1").innerText
384
408
  list.push({
385
409
  feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
386
410
  customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
387
411
  name: this.state.videoSixName
388
412
  })
389
413
  }
414
+ if (document.getElementById('video7').name) {
415
+ list.push({
416
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).feedId,
417
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid,
418
+ name: this.state.videoSevenName
419
+ })
420
+ }
421
+ if (document.getElementById('video8').name) {
422
+ list.push({
423
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).feedId,
424
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid,
425
+ name: this.state.videoEightName
426
+ })
427
+ }
428
+ if (document.getElementById('video9').name) {
429
+ list.push({
430
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).feedId,
431
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid,
432
+ name: this.state.videoNineName
433
+ })
434
+ }
435
+ if (document.getElementById('video10').name) {
436
+ list.push({
437
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).feedId,
438
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid,
439
+ name: this.state.videoTenName
440
+ })
441
+ }
442
+ if (document.getElementById('video11').name) {
443
+ list.push({
444
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).feedId,
445
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid,
446
+ name: this.state.videoElevenName
447
+ })
448
+ }
449
+ if (document.getElementById('video12').name) {
450
+ list.push({
451
+ feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).feedId,
452
+ customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid,
453
+ name: this.state.videoTwelveName
454
+ })
455
+ }
390
456
  if(list.length > 0) {
391
457
  if(val == 'ocr') {
392
458
  this.setState({
@@ -426,38 +492,6 @@ class Video extends Component {
426
492
  endSessionValue = () => {
427
493
  this.test_controller.LeaveRoom()
428
494
  };
429
- // 放大对应的视频
430
- enlargeClick = (val) => {
431
- if (val == 'isLangVideo1') {
432
- if (document.getElementById('video1').name) {
433
- this.setState({ isBigVideo: 'video1' })
434
- }
435
- } else if (val == 'isLangPublishVideo1') {
436
- if (document.getElementById('publish_video1').name && this.state.isCustomer) {
437
- this.setState({ isBigVideo: 'publish_video1' })
438
- }
439
- } else if (val == 'isLangVideo2') {
440
- if (document.getElementById('video2').name) {
441
- this.setState({ isBigVideo: 'video2' })
442
- }
443
- } else if (val == 'isLangVideo3') {
444
- if (document.getElementById('video3').name) {
445
- this.setState({ isBigVideo: 'video3' })
446
- }
447
- } else if (val == 'isLangVideo4') {
448
- if (document.getElementById('video4').name) {
449
- this.setState({ isBigVideo: 'video4' })
450
- }
451
- } else if (val == 'isLangVideo5') {
452
- if (document.getElementById('video5').name) {
453
- this.setState({ isBigVideo: 'video5' })
454
- }
455
- } else if (val == 'isLangVideo6') {
456
- if (document.getElementById('video6').name) {
457
- this.setState({ isBigVideo: 'video6' })
458
- }
459
- }
460
- };
461
495
  // 画中画
462
496
  pictureInPicture = () => {
463
497
  let interval
@@ -508,12 +542,43 @@ class Video extends Component {
508
542
  title: this.state.videoSixName
509
543
  })
510
544
  }
511
- // if(document.getElementById('video10').name) {
512
- // list.push({
513
- // name: 'video10',
514
- // title: '互动白板'
515
- // })
516
- // }
545
+
546
+ if(document.getElementById('video7').name) {
547
+ list.push({
548
+ name: 'video7',
549
+ title: this.state.videoSevenName
550
+ })
551
+ }
552
+ if(document.getElementById('video8').name) {
553
+ list.push({
554
+ name: 'video8',
555
+ title: this.state.videoEightName
556
+ })
557
+ }
558
+ if(document.getElementById('video9').name) {
559
+ list.push({
560
+ name: 'video9',
561
+ title: this.state.videoNineName
562
+ })
563
+ }
564
+ if(document.getElementById('video10').name) {
565
+ list.push({
566
+ name: 'video10',
567
+ title: this.state.videoTenName
568
+ })
569
+ }
570
+ if(document.getElementById('video11').name) {
571
+ list.push({
572
+ name: 'video11',
573
+ title: this.state.videoElevenName
574
+ })
575
+ }
576
+ if(document.getElementById('video12').name) {
577
+ list.push({
578
+ name: 'video12',
579
+ title: this.state.videoTwelveName
580
+ })
581
+ }
517
582
  console.log(list)
518
583
  const width = 640;
519
584
  const height = 360 * list.length;
@@ -736,7 +801,7 @@ class Video extends Component {
736
801
  isWhiteboard: false,
737
802
  })
738
803
  }else {
739
- this.test_controller.UnPublish(document.getElementById('video10').name)
804
+ this.test_controller.UnPublish(document.getElementById('video20').name)
740
805
  this.setState({
741
806
  isWhiteboard: false,
742
807
  })
@@ -745,6 +810,178 @@ class Video extends Component {
745
810
 
746
811
  }
747
812
 
813
+ } else if (Mival.typeId == 3100) {
814
+ if(Mival.data.sessionId == this.state.sessionId) {
815
+ if(Mival.data.userId == this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid) {
816
+ if(Mival.muteStatus == 0) {
817
+ this.setState({
818
+ voiceVideoOne: false
819
+ })
820
+ } else if(Mival.muteStatus == 1) {
821
+ this.setState({
822
+ voiceVideoOne: true
823
+ })
824
+ }
825
+
826
+ }
827
+ if(Mival.data.userId == (document.getElementById("feedId2").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid : '')) {
828
+ if(Mival.muteStatus == 0) {
829
+ this.setState({
830
+ voiceVideoTwo: false
831
+ })
832
+ } else if(Mival.muteStatus == 1) {
833
+ this.setState({
834
+ voiceVideoTwo: true
835
+ })
836
+ }
837
+
838
+ }
839
+ if(Mival.data.userId == (document.getElementById("feedId3").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid : '')) {
840
+ if(Mival.muteStatus == 0) {
841
+ this.setState({
842
+ voiceVideoThree: false
843
+ })
844
+ } else if(Mival.muteStatus == 1) {
845
+ this.setState({
846
+ voiceVideoThree: true
847
+ })
848
+ }
849
+
850
+ }
851
+ if(Mival.data.userId == (document.getElementById("feedId4").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid : '')) {
852
+ if(Mival.muteStatus == 0) {
853
+ this.setState({
854
+ voiceVideoFour: false
855
+ })
856
+ } else if(Mival.muteStatus == 1) {
857
+ this.setState({
858
+ voiceVideoFour: true
859
+ })
860
+ }
861
+
862
+ }
863
+ if(Mival.data.userId == (document.getElementById("feedId5").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid : '')) {
864
+ if(Mival.muteStatus == 0) {
865
+ this.setState({
866
+ voiceVideoFive: false
867
+ })
868
+ } else if(Mival.muteStatus == 1) {
869
+ this.setState({
870
+ voiceVideoFive: true
871
+ })
872
+ }
873
+
874
+ }
875
+ if(Mival.data.userId == (document.getElementById("feedId6").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid : '')) {
876
+ if(Mival.muteStatus == 0) {
877
+ this.setState({
878
+ voiceVideoSix: false
879
+ })
880
+ } else if(Mival.muteStatus == 1) {
881
+ this.setState({
882
+ voiceVideoSix: true
883
+ })
884
+ }
885
+
886
+ }
887
+
888
+ if(Mival.data.userId == (document.getElementById("feedId6").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid : '')) {
889
+ if(Mival.muteStatus == 0) {
890
+ this.setState({
891
+ voiceVideoSix: false
892
+ })
893
+ } else if(Mival.muteStatus == 1) {
894
+ this.setState({
895
+ voiceVideoSix: true
896
+ })
897
+ }
898
+
899
+ }
900
+ if(Mival.data.userId == (document.getElementById("feedId6").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid : '')) {
901
+ if(Mival.muteStatus == 0) {
902
+ this.setState({
903
+ voiceVideoSix: false
904
+ })
905
+ } else if(Mival.muteStatus == 1) {
906
+ this.setState({
907
+ voiceVideoSix: true
908
+ })
909
+ }
910
+
911
+ }
912
+ if(Mival.data.userId == (document.getElementById("feedId7").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid : '')) {
913
+ if(Mival.muteStatus == 0) {
914
+ this.setState({
915
+ voiceVideoSeven: false
916
+ })
917
+ } else if(Mival.muteStatus == 1) {
918
+ this.setState({
919
+ voiceVideoSeven: true
920
+ })
921
+ }
922
+
923
+ }
924
+ if(Mival.data.userId == (document.getElementById("feedId8").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid : '')) {
925
+ if(Mival.muteStatus == 0) {
926
+ this.setState({
927
+ voiceVideoEight: false
928
+ })
929
+ } else if(Mival.muteStatus == 1) {
930
+ this.setState({
931
+ voiceVideoEight: true
932
+ })
933
+ }
934
+
935
+ }
936
+ if(Mival.data.userId == (document.getElementById("feedId9").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid : '')) {
937
+ if(Mival.muteStatus == 0) {
938
+ this.setState({
939
+ voiceVideoNine: false
940
+ })
941
+ } else if(Mival.muteStatus == 1) {
942
+ this.setState({
943
+ voiceVideoNine: true
944
+ })
945
+ }
946
+
947
+ }
948
+ if(Mival.data.userId == (document.getElementById("feedId10").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid : '')) {
949
+ if(Mival.muteStatus == 0) {
950
+ this.setState({
951
+ voiceVideoTen: false
952
+ })
953
+ } else if(Mival.muteStatus == 1) {
954
+ this.setState({
955
+ voiceVideoTen: true
956
+ })
957
+ }
958
+
959
+ }
960
+ if(Mival.data.userId == (document.getElementById("feedId11").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid : '')) {
961
+ if(Mival.muteStatus == 0) {
962
+ this.setState({
963
+ voiceVideoEleven: false
964
+ })
965
+ } else if(Mival.muteStatus == 1) {
966
+ this.setState({
967
+ voiceVideoEleven: true
968
+ })
969
+ }
970
+
971
+ }
972
+ if(Mival.data.userId == (document.getElementById("feedId12").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid : '')) {
973
+ if(Mival.muteStatus == 0) {
974
+ this.setState({
975
+ voiceVideoTwelve: false
976
+ })
977
+ } else if(Mival.muteStatus == 1) {
978
+ this.setState({
979
+ voiceVideoTwelve: true
980
+ })
981
+ }
982
+
983
+ }
984
+ }
748
985
  }
749
986
  };
750
987
 
@@ -753,7 +990,7 @@ class Video extends Component {
753
990
  type: '2',
754
991
  sigType: 1
755
992
  };
756
- this.mpaasSig(data);
993
+
757
994
  this.test_controller.GetDevices();
758
995
  // 获取设备成功
759
996
  this.test_controller.OnGetDevicesSuccess = (devicesInfo) => {
@@ -806,11 +1043,13 @@ class Video extends Component {
806
1043
  obj2.push(b)
807
1044
  }
808
1045
  }
809
- console.log(obj, obj1)
1046
+ this.mpaasSig(data);
810
1047
  };
811
1048
  // 获取设备失败
812
1049
  this.test_controller.OnGetDevicesFailed = (code, msg) => {
813
1050
  console.log('获取设备失败', code, msg)
1051
+ message.success('获取设备失败,请检查摄像头设备是否可用或是否禁用摄像头')
1052
+ this.roomCallBack(2,'获取失败失败')
814
1053
  };
815
1054
  // 建立连接成功
816
1055
  this.test_controller.OnConnectOK = () => {
@@ -886,7 +1125,7 @@ class Video extends Component {
886
1125
  // 发布媒体流成功
887
1126
  this.test_controller.OnPublishSucc = (sid) => {
888
1127
  console.log('发布媒体流成功', sid)
889
- if(sid == document.getElementById('video10').name) {
1128
+ if(sid == document.getElementById('video20').name) {
890
1129
  callNimIM('sendCustomCmdMsg', {
891
1130
  customId: this.state.imRoomId,
892
1131
  content: JSON.stringify({
@@ -918,11 +1157,160 @@ class Video extends Component {
918
1157
  // 推送“房间与会者列表”给新加⼊者
919
1158
  this.test_controller.OnRoomAttendanceList = (participants) => {
920
1159
  console.log('房间与会者列表', participants)
1160
+ participants.map((item,index)=>{
1161
+ if(item.uid != this.state.tellerAccount) {
1162
+ item.publish.map((itemOne,indexOne)=>{
1163
+ let array = this.state.roomCustomerList;
1164
+ let newArray = [...array];
1165
+ newArray.push({
1166
+ feedId: itemOne.feedId,
1167
+ uid: item.uid,
1168
+ tag: itemOne.tag
1169
+ });
1170
+ console.log(array, newArray, this.state.roomCustomerList);
1171
+ this.setState({
1172
+ roomCustomerList: newArray
1173
+ })
1174
+ let config_param
1175
+ if(itemOne.tag == 'VIDEO_SOURCE_SCREEN') {
1176
+ config_param = {
1177
+ subscribe_video_id: 'video21',
1178
+ subscribe_audio_id: 'audio21',
1179
+ subscribe_streamId_id: 'subscribe_streamId21',
1180
+ feedId_id: 'feedId21',
1181
+ feedId: itemOne.feedId
1182
+ }
1183
+
1184
+ this.tabTitlesClick(
1185
+ {
1186
+ value: 'customerScreen',
1187
+ name: '客户投屏'
1188
+ },'add'
1189
+ )
1190
+ }else {
1191
+ if(!document.getElementById('video1').name) {
1192
+ config_param = {
1193
+ subscribe_video_id: 'video1',
1194
+ subscribe_audio_id: 'audio1',
1195
+ subscribe_streamId_id: 'subscribe_streamId1',
1196
+ feedId_id: 'feedId1',
1197
+ feedId: itemOne.feedId
1198
+ }
1199
+ }
1200
+ else if(!document.getElementById('video2').name) {
1201
+ config_param = {
1202
+ subscribe_video_id: 'video2',
1203
+ subscribe_audio_id: 'audio2',
1204
+ subscribe_streamId_id: 'subscribe_streamId2',
1205
+ feedId_id: 'feedId2',
1206
+ feedId: itemOne.feedId
1207
+ }
1208
+ }
1209
+ else if(!document.getElementById('video3').name) {
1210
+ config_param = {
1211
+ subscribe_video_id: 'video3',
1212
+ subscribe_audio_id: 'audio3',
1213
+ subscribe_streamId_id: 'subscribe_streamId3',
1214
+ feedId_id: 'feedId3',
1215
+ feedId: itemOne.feedId
1216
+ }
1217
+ }
1218
+ else if(!document.getElementById('video4').name) {
1219
+ config_param = {
1220
+ subscribe_video_id: 'video4',
1221
+ subscribe_audio_id: 'audio4',
1222
+ subscribe_streamId_id: 'subscribe_streamId4',
1223
+ feedId_id: 'feedId4',
1224
+ feedId: itemOne.feedId
1225
+ }
1226
+ }
1227
+ else if(!document.getElementById('video5').name) {
1228
+ config_param = {
1229
+ subscribe_video_id: 'video5',
1230
+ subscribe_audio_id: 'audio5',
1231
+ subscribe_streamId_id: 'subscribe_streamId5',
1232
+ feedId_id: 'feedId5',
1233
+ feedId: itemOne.feedId
1234
+ }
1235
+ }
1236
+ else if(!document.getElementById('video6').name) {
1237
+ config_param = {
1238
+ subscribe_video_id: 'video6',
1239
+ subscribe_audio_id: 'audio6',
1240
+ subscribe_streamId_id: 'subscribe_streamId6',
1241
+ feedId_id: 'feedId6',
1242
+ feedId: itemOne.feedId
1243
+ }
1244
+ }
1245
+
1246
+ else if(!document.getElementById('video7').name) {
1247
+ config_param = {
1248
+ subscribe_video_id: 'video7',
1249
+ subscribe_audio_id: 'audio7',
1250
+ subscribe_streamId_id: 'subscribe_streamId7',
1251
+ feedId_id: 'feedId7',
1252
+ feedId: itemOne.feedId
1253
+ }
1254
+ }
1255
+ else if(!document.getElementById('video8').name) {
1256
+ config_param = {
1257
+ subscribe_video_id: 'video8',
1258
+ subscribe_audio_id: 'audio8',
1259
+ subscribe_streamId_id: 'subscribe_streamId8',
1260
+ feedId_id: 'feedId8',
1261
+ feedId: itemOne.feedId
1262
+ }
1263
+ }
1264
+ else if(!document.getElementById('video9').name) {
1265
+ config_param = {
1266
+ subscribe_video_id: 'video9',
1267
+ subscribe_audio_id: 'audio9',
1268
+ subscribe_streamId_id: 'subscribe_streamId9',
1269
+ feedId_id: 'feedId9',
1270
+ feedId: itemOne.feedId
1271
+ }
1272
+ }
1273
+ else if(!document.getElementById('video10').name) {
1274
+ config_param = {
1275
+ subscribe_video_id: 'video10',
1276
+ subscribe_audio_id: 'audio10',
1277
+ subscribe_streamId_id: 'subscribe_streamId10',
1278
+ feedId_id: 'feedId10',
1279
+ feedId: itemOne.feedId
1280
+ }
1281
+ }
1282
+ else if(!document.getElementById('video11').name) {
1283
+ config_param = {
1284
+ subscribe_video_id: 'video11',
1285
+ subscribe_audio_id: 'audio11',
1286
+ subscribe_streamId_id: 'subscribe_streamId11',
1287
+ feedId_id: 'feedId11',
1288
+ feedId: itemOne.feedId
1289
+ }
1290
+ }
1291
+ else if(!document.getElementById('video12').name) {
1292
+ config_param = {
1293
+ subscribe_video_id: 'video12',
1294
+ subscribe_audio_id: 'audio12',
1295
+ subscribe_streamId_id: 'subscribe_streamId12',
1296
+ feedId_id: 'feedId12',
1297
+ feedId: itemOne.feedId
1298
+ }
1299
+ }
1300
+ }
1301
+ if (config_param !== undefined) {
1302
+ config_param.need_volume_analyser = true
1303
+ console.log(config_param)
1304
+ this.test_controller.Subscribe(config_param)
1305
+ }
1306
+ })
1307
+ }
1308
+ })
921
1309
  };
922
1310
  // 推送“新加⼊房间者”给与会者
923
1311
  this.test_controller.OnNewJoinerIn = (participant) => {
924
1312
  console.log('新加⼊房间者', participant);
925
- this.test_controller.ChangeStreamSize(document.getElementById('publish_video1').name, 5)
1313
+ // this.test_controller.ChangeStreamSize(document.getElementById('publish_video1').name, 5)
926
1314
  this.setState(
927
1315
  {
928
1316
  isCustomer: true
@@ -932,6 +1320,20 @@ class Video extends Component {
932
1320
  // 推送“有新发布”给与会者
933
1321
  this.test_controller.OnNewPublish = (feed) => {
934
1322
  console.log('有新发布者', feed);
1323
+ callNimIM('sendCustomCmdMsg', {
1324
+ customId: this.state.imRoomId,
1325
+ content: JSON.stringify({
1326
+ 'typeId': 1014,
1327
+ 'sessionId': this.state.sessionId,
1328
+ 'meetingInfo': {
1329
+ 'title': this.props.meetingInfo.title,
1330
+ 'host': this.props.meetingInfo.host,
1331
+ 'customers': this.props.meetingInfo.customers
1332
+ }
1333
+
1334
+ })
1335
+ }, function (code, message, data) {
1336
+ })
935
1337
  let array = this.state.roomCustomerList;
936
1338
  let newArray = [...array];
937
1339
  newArray.push({
@@ -947,10 +1349,10 @@ class Video extends Component {
947
1349
  if(feed.uid != this.state.tellerAccount) {
948
1350
  if(feed.tag == 'VIDEO_SOURCE_SCREEN') {
949
1351
  config_param = {
950
- subscribe_video_id: 'video11',
951
- subscribe_audio_id: 'audio11',
952
- subscribe_streamId_id: 'subscribe_streamId11',
953
- feedId_id: 'feedId11',
1352
+ subscribe_video_id: 'video21',
1353
+ subscribe_audio_id: 'audio21',
1354
+ subscribe_streamId_id: 'subscribe_streamId21',
1355
+ feedId_id: 'feedId21',
954
1356
  feedId: feed.feedId
955
1357
  }
956
1358
 
@@ -960,8 +1362,35 @@ class Video extends Component {
960
1362
  name: '客户投屏'
961
1363
  },'add'
962
1364
  )
1365
+ if (config_param !== undefined) {
1366
+ config_param.need_volume_analyser = false
1367
+ console.log(config_param)
1368
+ setTimeout(()=>{
1369
+
1370
+ this.test_controller.Subscribe(config_param)
1371
+ }, 1000)
1372
+
1373
+ }
963
1374
  } else {
964
- if(!document.getElementById('video1').name) {
1375
+ // let data_param = {
1376
+ // isVideo: true,
1377
+ // videoIndex: this.state.videoList.length + 1,
1378
+ // videoTwoName: ''
1379
+ // }
1380
+ // let videoList = this.state.videoList;
1381
+ // let newvideoList = [...videoList];
1382
+ // newvideoList.push(data_param);
1383
+ // this.setState({
1384
+ // videoList: newvideoList
1385
+ // },()=>{
1386
+ // config_param = {
1387
+ // subscribe_video_id: 'video' + this.state.videoList.length,
1388
+ // subscribe_audio_id: 'audio' + this.state.videoList.length,
1389
+ // subscribe_streamId_id: 'subscribe_streamId' + this.state.videoList.length,
1390
+ // feedId_id: 'feedId' + this.state.videoList.length,
1391
+ // feedId: feed.feedId
1392
+ // }
1393
+ if(!document.getElementById('video1').name) {
965
1394
  config_param = {
966
1395
  subscribe_video_id: 'video1',
967
1396
  subscribe_audio_id: 'audio1',
@@ -1015,13 +1444,74 @@ class Video extends Component {
1015
1444
  feedId: feed.feedId
1016
1445
  }
1017
1446
  }
1447
+ else if(!document.getElementById('video7').name) {
1448
+ config_param = {
1449
+ subscribe_video_id: 'video7',
1450
+ subscribe_audio_id: 'audio7',
1451
+ subscribe_streamId_id: 'subscribe_streamId7',
1452
+ feedId_id: 'feedId7',
1453
+ feedId: feed.feedId
1454
+ }
1455
+ }
1456
+ else if(!document.getElementById('video8').name) {
1457
+ config_param = {
1458
+ subscribe_video_id: 'video8',
1459
+ subscribe_audio_id: 'audio8',
1460
+ subscribe_streamId_id: 'subscribe_streamId8',
1461
+ feedId_id: 'feedId8',
1462
+ feedId: feed.feedId
1463
+ }
1464
+ }
1465
+ else if(!document.getElementById('video9').name) {
1466
+ config_param = {
1467
+ subscribe_video_id: 'video9',
1468
+ subscribe_audio_id: 'audio9',
1469
+ subscribe_streamId_id: 'subscribe_streamId9',
1470
+ feedId_id: 'feedId9',
1471
+ feedId: feed.feedId
1472
+ }
1473
+ }
1474
+ else if(!document.getElementById('video10').name) {
1475
+ config_param = {
1476
+ subscribe_video_id: 'video10',
1477
+ subscribe_audio_id: 'audio10',
1478
+ subscribe_streamId_id: 'subscribe_streamId10',
1479
+ feedId_id: 'feedId10',
1480
+ feedId: feed.feedId
1481
+ }
1482
+ }
1483
+ else if(!document.getElementById('video11').name) {
1484
+ config_param = {
1485
+ subscribe_video_id: 'video11',
1486
+ subscribe_audio_id: 'audio11',
1487
+ subscribe_streamId_id: 'subscribe_streamId11',
1488
+ feedId_id: 'feedId11',
1489
+ feedId: feed.feedId
1490
+ }
1491
+ }
1492
+ else if(!document.getElementById('video12').name) {
1493
+ config_param = {
1494
+ subscribe_video_id: 'video12',
1495
+ subscribe_audio_id: 'audio12',
1496
+ subscribe_streamId_id: 'subscribe_streamId12',
1497
+ feedId_id: 'feedId12',
1498
+ feedId: feed.feedId
1499
+ }
1500
+ }
1501
+ if (config_param !== undefined) {
1502
+ config_param.need_volume_analyser = true
1503
+ console.log(config_param)
1504
+
1505
+ this.test_controller.Subscribe(config_param)
1506
+
1507
+ }
1508
+ // })
1509
+
1510
+
1018
1511
  }
1019
1512
 
1020
1513
  }
1021
- if (config_param !== undefined) {
1022
- config_param.need_volume_analyser = true
1023
- this.test_controller.Subscribe(config_param)
1024
- }
1514
+
1025
1515
  };
1026
1516
  // 推送“有新订阅”给与会者
1027
1517
  this.test_controller.OnNewSubscribe = (subscriber, feed) => {
@@ -1056,39 +1546,82 @@ class Video extends Component {
1056
1546
  console.log('取消订阅媒体流成功', sid)
1057
1547
  this.state.tabTitles.map((item) => {
1058
1548
  if(item.value == 'customerScreen') {
1059
- if(!document.getElementById("video11").name) {
1549
+ if(!document.getElementById("video21").name) {
1060
1550
  this.tabTitlesClick('customerScreen','delect')
1061
1551
  }
1062
1552
  }
1063
1553
  })
1064
1554
  if(!document.getElementById("video1").name) {
1065
1555
  this.setState({
1066
- videoOneName: ''
1556
+ videoOneName: '',
1557
+ voiceVideoOne: false
1067
1558
  })
1068
1559
  }
1069
1560
  if(!document.getElementById("video2").name) {
1070
1561
  this.setState({
1071
- videoTwoName: ''
1562
+ videoTwoName: '',
1563
+ voiceVideoTwo: false
1072
1564
  })
1073
1565
  }
1074
1566
  if(!document.getElementById("video3").name) {
1075
1567
  this.setState({
1076
- videoThreeName: ''
1568
+ videoThreeName: '',
1569
+ voiceVideoThree: false
1077
1570
  })
1078
1571
  }
1079
1572
  if(!document.getElementById("video4").name) {
1080
1573
  this.setState({
1081
- videoFourName: ''
1574
+ videoFourName: '',
1575
+ voiceVideoFour: false,
1082
1576
  })
1083
1577
  }
1084
1578
  if(!document.getElementById("video5").name) {
1085
1579
  this.setState({
1086
- videoFiveName: ''
1580
+ videoFiveName: '',
1581
+ voiceVideoFive: false
1087
1582
  })
1088
1583
  }
1089
1584
  if(!document.getElementById("video6").name) {
1090
1585
  this.setState({
1091
- videoSixName: ''
1586
+ videoSixName: '',
1587
+ voiceVideoSix: false
1588
+ })
1589
+ }
1590
+
1591
+ if(!document.getElementById("video7").name) {
1592
+ this.setState({
1593
+ videoSevenName: '',
1594
+ voiceVideoSeven: false
1595
+ })
1596
+ }
1597
+ if(!document.getElementById("video8").name) {
1598
+ this.setState({
1599
+ videoEightName: '',
1600
+ voiceVideoEight: false
1601
+ })
1602
+ }
1603
+ if(!document.getElementById("video9").name) {
1604
+ this.setState({
1605
+ videoNineName: '',
1606
+ voiceVideoNine: false
1607
+ })
1608
+ }
1609
+ if(!document.getElementById("video10").name) {
1610
+ this.setState({
1611
+ videoTenName: '',
1612
+ voiceVideoTen: false
1613
+ })
1614
+ }
1615
+ if(!document.getElementById("video11").name) {
1616
+ this.setState({
1617
+ videoElevenName: '',
1618
+ voiceVideoEleven: false
1619
+ })
1620
+ }
1621
+ if(!document.getElementById("video12").name) {
1622
+ this.setState({
1623
+ videoTwelveName: '',
1624
+ voiceVideoTwelve: false
1092
1625
  })
1093
1626
  }
1094
1627
  };
@@ -1096,13 +1629,13 @@ class Video extends Component {
1096
1629
  this.test_controller.OnUnPublish = (feed) => {
1097
1630
  console.log('取消发布者', feed)
1098
1631
  for(let i=0;i<this.state.roomCustomerList.length;i++) {
1099
- if(this.state.roomCustomerList[i].uid == feed.uid) {
1632
+ if(this.state.roomCustomerList[i].feedId == feed.feedId) {
1100
1633
  this.state.roomCustomerList.splice(i, 1)
1101
1634
  }
1102
1635
  }
1103
1636
 
1104
1637
  if(this.state.roomCustomerList.length == 0) {
1105
- this.test_controller.ChangeStreamSize(document.getElementById('publish_video1').name, 3)
1638
+ // this.test_controller.ChangeStreamSize(document.getElementById('publish_video1').name, 3)
1106
1639
  this.setState({
1107
1640
  isCustomer: false
1108
1641
  })
@@ -1150,7 +1683,7 @@ class Video extends Component {
1150
1683
  // 结束服务端录制成功
1151
1684
  this.test_controller.OnStopRemoteRecordSucc = (recordId) => {
1152
1685
  console.log('结束服务端录制成功', recordId);
1153
- this.endSessionValue()
1686
+ // this.endSessionValue()
1154
1687
  // 获取服务端录制结果
1155
1688
  };
1156
1689
  // 结束服务端录制失败
@@ -1310,6 +1843,13 @@ class Video extends Component {
1310
1843
  let subscribe_sid5 = document.getElementById('video5').name || document.getElementById('audio5').name;
1311
1844
  let subscribe_sid6 = document.getElementById('video6').name || document.getElementById('audio6').name;
1312
1845
 
1846
+ let subscribe_sid7 = document.getElementById('video7').name || document.getElementById('audio7').name;
1847
+ let subscribe_sid8 = document.getElementById('video8').name || document.getElementById('audio8').name;
1848
+ let subscribe_sid9 = document.getElementById('video9').name || document.getElementById('audio9').name;
1849
+ let subscribe_sid10 = document.getElementById('video10').name || document.getElementById('audio10').name;
1850
+ let subscribe_sid11 = document.getElementById('video11').name || document.getElementById('audio11').name;
1851
+ let subscribe_sid12 = document.getElementById('video12').name || document.getElementById('audio12').name;
1852
+
1313
1853
  let volumeView;
1314
1854
  switch (sid) {
1315
1855
  case publish_sid:
@@ -1333,6 +1873,25 @@ class Video extends Component {
1333
1873
  case subscribe_sid6:
1334
1874
  volumeView = "subscribe_volumeView6";
1335
1875
  break;
1876
+
1877
+ case subscribe_sid7:
1878
+ volumeView = "subscribe_volumeView7";
1879
+ break;
1880
+ case subscribe_sid8:
1881
+ volumeView = "subscribe_volumeView8";
1882
+ break;
1883
+ case subscribe_sid9:
1884
+ volumeView = "subscribe_volumeView9";
1885
+ break;
1886
+ case subscribe_sid10:
1887
+ volumeView = "subscribe_volumeView10";
1888
+ break;
1889
+ case subscribe_sid11:
1890
+ volumeView = "subscribe_volumeView11";
1891
+ break;
1892
+ case subscribe_sid12:
1893
+ volumeView = "subscribe_volumeView12";
1894
+ break;
1336
1895
  }
1337
1896
  if (!volumeView) {
1338
1897
  return;
@@ -1399,11 +1958,18 @@ class Video extends Component {
1399
1958
  }
1400
1959
  };
1401
1960
  finishSession = async () => {
1402
- try {
1961
+
1962
+
1963
+ if(this.state.roomCustomerList.length == 0) {
1964
+ debugger
1965
+ try {
1403
1966
  let result = await API.finishSession({
1404
1967
  sessionId: this.state.sessionId,
1405
1968
  tellerId: this.props.tellerAccount
1406
1969
  });
1970
+ } catch (err) {
1971
+ }
1972
+ }
1407
1973
  this.setState({
1408
1974
  isCustomer: false,
1409
1975
  isWhiteboard: false,
@@ -1413,12 +1979,7 @@ class Video extends Component {
1413
1979
  code: LEAVE_TYPE.TELLER_EXIT,
1414
1980
  errMsg: '坐席退出'
1415
1981
  })
1416
- } catch (err) {
1417
- this.props.onLeaveRoom({
1418
- code: LEAVE_TYPE.TELLER_EXIT,
1419
- errMsg: '坐席退出'
1420
- })
1421
- }
1982
+
1422
1983
  }
1423
1984
  getRoomStatus = async data => {
1424
1985
  try {
@@ -1539,8 +2100,11 @@ class Video extends Component {
1539
2100
  customId: this.state.imRoomId,
1540
2101
  content: JSON.stringify({
1541
2102
  'typeId': 1013,
1542
- 'state': 0,
1543
- 'sessionId': this.state.sessionId,
2103
+ 'muteStatus': 1,
2104
+ 'data': {
2105
+ 'sessionId': this.state.sessionId,
2106
+ 'userId': this.props.tellerAccount
2107
+ }
1544
2108
  })
1545
2109
  }, function (code, message, data) {
1546
2110
  console.log(data)
@@ -1562,8 +2126,11 @@ class Video extends Component {
1562
2126
  customId: this.state.imRoomId,
1563
2127
  content: JSON.stringify({
1564
2128
  'typeId': 1013,
1565
- 'state': 1,
1566
- 'sessionId': this.state.sessionId,
2129
+ 'muteStatus': 0,
2130
+ 'data': {
2131
+ 'sessionId': this.state.sessionId,
2132
+ 'userId': this.props.tellerAccount
2133
+ }
1567
2134
  })
1568
2135
  }, function (code, message, data) {
1569
2136
  console.log(data)
@@ -1571,7 +2138,7 @@ class Video extends Component {
1571
2138
  }
1572
2139
  };
1573
2140
  isFileSuccuse = () => {
1574
- if (!this.state.sessionId || this.state.isSuspend || !this.state.isCustomer) {
2141
+ if (!this.state.sessionId || this.state.isSuspend) {
1575
2142
  message.success(this.props.prohibitPrompt)
1576
2143
  return false
1577
2144
  } else {
@@ -1634,7 +2201,7 @@ class Video extends Component {
1634
2201
  if (this.state.isWhiteboard) {
1635
2202
  publish_config.publish_device = 4
1636
2203
  publish_config.media_type = 1
1637
- publish_config.sid = document.getElementById('video10').name
2204
+ publish_config.sid = document.getElementById('video20').name
1638
2205
  publish_config.part_of_screen_id = 'touBoxItem'
1639
2206
  publish_config.video_profile_type = 5
1640
2207
  this.test_controller.ChangeMediaStream(publish_config);
@@ -1642,7 +2209,7 @@ class Video extends Component {
1642
2209
  isPDF: true,
1643
2210
  })
1644
2211
  } else {
1645
- this.test_controller.UnPublish(document.getElementById('video10').name)
2212
+ this.test_controller.UnPublish(document.getElementById('video20').name)
1646
2213
  }
1647
2214
  this.setState({
1648
2215
  publishDevic: 1,
@@ -1655,19 +2222,19 @@ class Video extends Component {
1655
2222
  document.exitPictureInPicture()
1656
2223
  }
1657
2224
  } else {
1658
- if (document.getElementById('video10').name) {
2225
+ if (document.getElementById('video20').name) {
1659
2226
  publish_config.media_type = 1;
1660
2227
  publish_config.publish_device = 2;
1661
2228
  publish_config.video_profile_type = 5;
1662
- publish_config.sid = document.getElementById('video10').name;
2229
+ publish_config.sid = document.getElementById('video20').name;
1663
2230
  this.test_controller.ChangeMediaStream(publish_config);
1664
2231
  } else {
1665
2232
  publish_config.media_type = 1
1666
2233
  publish_config.publish_device = 2
1667
2234
  publish_config.need_volume_analyser = true
1668
2235
  publish_config.video_profile_type = 5
1669
- publish_config.publish_video_id = 'video10'
1670
- publish_config.publish_streamId_id = 'subscribe_streamId10'
2236
+ publish_config.publish_video_id = 'video20'
2237
+ publish_config.publish_streamId_id = 'subscribe_streamId20'
1671
2238
  publish_config.publish_tag = 'projectionWhiteboard'
1672
2239
  this.test_controller.Publish(publish_config)
1673
2240
  }
@@ -1864,6 +2431,18 @@ class Video extends Component {
1864
2431
  sid = document.getElementById('video5').name;
1865
2432
  } else if (item.feedId == document.getElementById("feedId6").innerText) {
1866
2433
  sid = document.getElementById('video6').name;
2434
+ } else if (item.feedId == document.getElementById("feedId7").innerText) {
2435
+ sid = document.getElementById('video7').name;
2436
+ } else if (item.feedId == document.getElementById("feedId8").innerText) {
2437
+ sid = document.getElementById('video8').name;
2438
+ } else if (item.feedId == document.getElementById("feedId9").innerText) {
2439
+ sid = document.getElementById('video9').name;
2440
+ } else if (item.feedId == document.getElementById("feedId10").innerText) {
2441
+ sid = document.getElementById('video10').name;
2442
+ } else if (item.feedId == document.getElementById("feedId11").innerText) {
2443
+ sid = document.getElementById('video11').name;
2444
+ } else if (item.feedId == document.getElementById("feedId12").innerText) {
2445
+ sid = document.getElementById('video12').name;
1867
2446
  }
1868
2447
  console.log(sid)
1869
2448
  this.setState({
@@ -1885,6 +2464,28 @@ class Video extends Component {
1885
2464
  appGetUsername = async (sid) => {
1886
2465
  console.log(sid)
1887
2466
  let userId = ''
2467
+ let index
2468
+ // this.state.videoList.map((item,index)=>{
2469
+ // let name = 'video' + item.videoIndex
2470
+ // if(document.getElementById(name).name == sid){
2471
+ // userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById(("feedId" + item.videoIndex)).innerText).uid
2472
+ // index = index
2473
+ // }
2474
+ // })
2475
+ // try {
2476
+ // let result = await API.appGetUsername({
2477
+ // userId: userId
2478
+ // });
2479
+ // console.log(result)
2480
+ // if (result.code == 200) {
2481
+ // let data = result.data.userInfo ? result.data.userInfo.userName ? result.data.userInfo.userName : '' : ''
2482
+ // this.state.videoList[index].videoOneName = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById(("feedId" + item.videoIndex)).innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户' + item.videoIndex
2483
+ // } else {
2484
+ // message.success('查询失败')
2485
+ // }
2486
+ // } catch (err) {
2487
+
2488
+ // }
1888
2489
  if(document.getElementById('video1').name == sid){
1889
2490
  userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid
1890
2491
  }
@@ -1899,43 +2500,88 @@ class Video extends Component {
1899
2500
  }if(document.getElementById('video6').name == sid){
1900
2501
  userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid
1901
2502
  }
2503
+
2504
+ if(document.getElementById('video7').name == sid){
2505
+ userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid
2506
+ }
2507
+ if(document.getElementById('video8').name == sid){
2508
+ userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid
2509
+ }
2510
+ if(document.getElementById('video9').name == sid){
2511
+ userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid
2512
+ }
2513
+ if(document.getElementById('video10').name == sid){
2514
+ userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid
2515
+ }
2516
+ if(document.getElementById('video11').name == sid){
2517
+ userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid
2518
+ }
2519
+ if(document.getElementById('video12').name == sid){
2520
+ userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid
2521
+ }
1902
2522
  try {
1903
2523
  let result = await API.appGetUsername({
1904
2524
  userId: userId
1905
2525
  });
1906
2526
  console.log(result)
2527
+ let data
1907
2528
  if (result.code == 200) {
1908
- let data = result.data.userInfo ? result.data.userInfo.userName ? result.data.userInfo.userName : '' : ''
1909
- if(document.getElementById('video1').name == sid){
1910
-
1911
- this.setState({
1912
- videoOneName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户1'
1913
- })
1914
- }
1915
- if(document.getElementById('video2').name == sid){
1916
- this.setState({
1917
- videoTwoName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data? data : '客户2'
1918
- })
1919
- }if(document.getElementById('video3').name == sid){
1920
- this.setState({
1921
- videoThreeName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data : '客户3'
1922
- })
1923
- }if(document.getElementById('video4').name == sid){
1924
- this.setState({
1925
- videoFourName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data : '客户4'
1926
- })
1927
- }if(document.getElementById('video5').name == sid){
1928
- this.setState({
1929
- videoFiveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data? data : '客户5'
1930
- })
1931
- }if(document.getElementById('video6').name == sid){
1932
- this.setState({
1933
- videoSixName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户6'
1934
- })
1935
- }
2529
+ data = result.data.userInfo ? result.data.userInfo.userName ? result.data.userInfo.userName : '' : ''
1936
2530
  } else {
1937
2531
  message.success('查询失败')
1938
2532
  }
2533
+ if(document.getElementById('video1').name == sid){
2534
+
2535
+ this.setState({
2536
+ videoOneName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户1'
2537
+ })
2538
+ }
2539
+ if(document.getElementById('video2').name == sid){
2540
+ this.setState({
2541
+ videoTwoName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data? data : '客户2'
2542
+ })
2543
+ }if(document.getElementById('video3').name == sid){
2544
+ this.setState({
2545
+ videoThreeName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data : '客户3'
2546
+ })
2547
+ }if(document.getElementById('video4').name == sid){
2548
+ this.setState({
2549
+ videoFourName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data : '客户4'
2550
+ })
2551
+ }if(document.getElementById('video5').name == sid){
2552
+ this.setState({
2553
+ videoFiveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data? data : '客户5'
2554
+ })
2555
+ }if(document.getElementById('video6').name == sid){
2556
+ this.setState({
2557
+ videoSixName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户6'
2558
+ })
2559
+ }
2560
+ if(document.getElementById('video7').name == sid){
2561
+ this.setState({
2562
+ videoSevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户7'
2563
+ })
2564
+ }if(document.getElementById('video8').name == sid){
2565
+ this.setState({
2566
+ videoEightName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户8'
2567
+ })
2568
+ }if(document.getElementById('video9').name == sid){
2569
+ this.setState({
2570
+ videoNineName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户9'
2571
+ })
2572
+ }if(document.getElementById('video10').name == sid){
2573
+ this.setState({
2574
+ videoTenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户10'
2575
+ })
2576
+ }if(document.getElementById('video11').name == sid){
2577
+ this.setState({
2578
+ videoElevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户11'
2579
+ })
2580
+ }if(document.getElementById('video12').name == sid){
2581
+ this.setState({
2582
+ videoTwelveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户12'
2583
+ })
2584
+ }
1939
2585
  } catch (err) {
1940
2586
 
1941
2587
  }
@@ -1991,11 +2637,11 @@ class Video extends Component {
1991
2637
  value: 'RMWhiteboard',
1992
2638
  name: 'RM白板'
1993
2639
  },'add')
1994
- if (document.getElementById('video10').name) {
2640
+ if (document.getElementById('video20').name) {
1995
2641
  // 代表已经有了进行切流
1996
2642
  publish_config.publish_device = 4
1997
2643
  publish_config.media_type = 1
1998
- publish_config.sid = document.getElementById('video10').name
2644
+ publish_config.sid = document.getElementById('video20').name
1999
2645
  publish_config.part_of_screen_id = 'touBoxItem'
2000
2646
  publish_config.video_profile_type = 5
2001
2647
  this.test_controller.ChangeMediaStream(publish_config);
@@ -2006,7 +2652,7 @@ class Video extends Component {
2006
2652
  publish_config.need_volume_analyser = true
2007
2653
  publish_config.video_profile_type = 5
2008
2654
  publish_config.part_of_screen_id = 'touBoxItem';
2009
- publish_config.publish_video_id = 'video10'
2655
+ publish_config.publish_video_id = 'video20'
2010
2656
  publish_config.publish_streamId_id = 'subscribe_streamId10'
2011
2657
  publish_config.publish_tag = 'projectionWhiteboard'
2012
2658
  this.test_controller.Publish(publish_config)
@@ -2021,20 +2667,6 @@ class Video extends Component {
2021
2667
  this.setState({
2022
2668
  isSelect: value,
2023
2669
  })
2024
- // if (this.state.isSelect == 'video') {
2025
- // if (document.getElementById('video10').name) {
2026
- // this.setState({
2027
- // isSelect: 'noVideo',
2028
- // })
2029
- // } else {
2030
- // message.success('当前无签字白板')
2031
- // }
2032
-
2033
- // } else {
2034
- // this.setState({
2035
- // isSelect: 'video',
2036
- // })
2037
- // }
2038
2670
  }
2039
2671
  facialHandleVisibleChange=(value)=>{
2040
2672
  if(!value) {
@@ -2051,7 +2683,7 @@ class Video extends Component {
2051
2683
  }
2052
2684
  }
2053
2685
  render() {
2054
- const {theme} = this.props
2686
+ const {meetingInfo} = this.props
2055
2687
  var pdfChildren
2056
2688
  if (this.props.children) {
2057
2689
  pdfChildren = React.cloneElement(this.props.children, { width: 100, height: 100, id: 12 })
@@ -2059,11 +2691,11 @@ class Video extends Component {
2059
2691
  const customerNameList = (
2060
2692
  <span>
2061
2693
  {
2062
- theme.customers.map((item,index)=>{
2694
+ meetingInfo.customers.map((item,index)=>{
2063
2695
  return <label>
2064
2696
  {item}
2065
2697
  {
2066
- theme.customers.length > 0 && index != theme.customers.length-1 &&<span>,</span>
2698
+ meetingInfo.customers.length > 0 && index != meetingInfo.customers.length-1 &&<span>,</span>
2067
2699
  }
2068
2700
 
2069
2701
  </label>
@@ -2082,23 +2714,43 @@ class Video extends Component {
2082
2714
  }
2083
2715
  </div>
2084
2716
  )
2717
+ const videoCustomer =
2718
+ this.state.videoList.map((item,index)=>{
2719
+ return <div className={`itemed`} style={{ display: (item.isVideo) ? '' : 'none', }}>
2720
+ <video
2721
+ id={'video' + item.videoIndex}
2722
+ autoPlay
2723
+ muted={true}
2724
+ className="video"
2725
+ />
2726
+ <audio id={'audio' + item.videoIndex} autoPlay />
2727
+ <label style={{ display: 'none' }} id={'feedId' + item.videoIndex} type="text" />
2728
+ <div className={`customerTitle titleSamlle`}>
2729
+ <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
2730
+ {this.state.videoTwoName}
2731
+ </div>
2732
+ </div>
2733
+ <canvas className="canvasClassOne" id={'subscribe_volumeView' + item.videoIndex} width="40" height="70"></canvas>
2734
+ </div>
2735
+ })
2736
+
2085
2737
  return (
2086
2738
  <div className="all">
2087
2739
  <Spin spinning={this.state.loading} tip="视频初始化中...">
2088
2740
  <Header></Header>
2089
2741
  {tabTitleList}
2090
2742
  <div className="health" style={{'margin-top': (this.state.tabTitles.length > 0) ? '0px' : '20px' }}>
2091
- <div className="projection" style={{ display: (this.state.isCustomer) ? '' : 'none', }}>
2743
+ <div className="projection">
2092
2744
  <div className="videoDiv" style={{ display: (this.state.isSelect == 'RMScreen') ? '' : 'none', }}>
2093
2745
  <div className="videoDiv">
2094
2746
  <video
2095
- id="video10"
2747
+ id="video20"
2096
2748
  autoPlay
2097
2749
  muted={true}
2098
2750
  className="video"
2099
2751
  />
2100
- <audio id="audio10" autoPlay />
2101
- <label style={{ display: 'none' }} id="feedId10" type="text" />
2752
+ <audio id="audio20" autoPlay />
2753
+ <label style={{ display: 'none' }} id="feedId20" type="text" />
2102
2754
  </div>
2103
2755
 
2104
2756
  </div>
@@ -2110,14 +2762,13 @@ class Video extends Component {
2110
2762
  <div className="videoDiv" style={{ display: (this.state.isSelect == 'customerScreen') ? '' : 'none', }}>
2111
2763
  <div className="videoDiv">
2112
2764
  <video
2113
- id="video11"
2765
+ id="video21"
2114
2766
  autoPlay
2115
2767
  muted={true}
2116
2768
  className="video"
2117
2769
  />
2118
- <audio id="audio11" autoPlay />
2119
- <label style={{ display: 'none' }} id="feedId11" type="text" />
2120
- {/* <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView10" width="70" height="70"></canvas> */}
2770
+ <audio id="audio21" autoPlay />
2771
+ <label style={{ display: 'none' }} id="feedId21" type="text" />
2121
2772
  </div>
2122
2773
 
2123
2774
  </div>
@@ -2128,11 +2779,11 @@ class Video extends Component {
2128
2779
  <ul>
2129
2780
  <li>
2130
2781
  <span>会议主题:</span>
2131
- <label>{theme.title}</label>
2782
+ <label>{meetingInfo.title}</label>
2132
2783
  </li>
2133
2784
  <li>
2134
- <span>支持人:</span>
2135
- <label>{theme.host}</label>
2785
+ <span>主持人:</span>
2786
+ <label>{meetingInfo.host}</label>
2136
2787
  </li>
2137
2788
  <li>
2138
2789
  <span>参会客户:</span>
@@ -2145,15 +2796,15 @@ class Video extends Component {
2145
2796
 
2146
2797
 
2147
2798
  </div>
2148
- <div className="wrapper" style={{ width: (this.state.isCustomer) ? '20%' : '100%', }}>
2799
+ <div className="wrapper" style={{ width: '20%' , }}>
2149
2800
  <div
2150
- className={`itemed ${this.state.publishDevic == 4 ? '' : (this.state.isBigVideo == 'publish_video1' ? 'isBack' : (this.state.isCustomer ? 'isBack' : ''))} ${this.state.isCustomer ? '' : 'video1Div'}`}
2801
+ className={`itemed ${this.state.publishDevic == 4 ? '' : 'isBack'} `}
2151
2802
  >
2152
2803
  <div className="publishVideoDiv">
2153
2804
 
2154
2805
  <video
2155
2806
  id="publish_video1"
2156
- className={`publishVideoClass ${this.state.isCustomer ? '' : "videoFit"}`}
2807
+ className={`publishVideoClass`}
2157
2808
  autoPlay
2158
2809
  muted={true}
2159
2810
  webkit-playsinline={true}
@@ -2163,22 +2814,24 @@ class Video extends Component {
2163
2814
  {
2164
2815
  this.state.voiceStatue && <img
2165
2816
  alt=""
2166
- src={require("../../assets/img/icon_MuteOne.png").default}
2167
- className="imgClass voiceClass"
2817
+ src={require("../../assets/img/jingyin.png").default}
2818
+ className="imgClassVoice voiceClass"
2168
2819
  />
2169
2820
  }
2170
- <div id="publish_video_div" style={{ display: (this.state.isCustomer) ? '' : 'none'}} className={`tellerTitle titleSamlle`}>
2821
+ <div id="publish_video_div" className={`tellerTitle titleSamlle`}>
2171
2822
  <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>坐席</div>
2172
2823
  </div>
2173
- <canvas style={{ display: (this.state.isCustomer && !this.state.voiceStatue) ? '' : 'none', }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
2824
+ <canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none', }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
2174
2825
  </div>
2175
2826
 
2176
2827
  </div>
2828
+ {/* {
2829
+ videoCustomer
2830
+ } */}
2177
2831
  <div style={{ display: (this.state.isCustomer) ? '' : 'none', }}>
2178
2832
  <div
2179
- className={`itemed ${this.state.isBigVideo == 'video1' ? 'item1' : ""}`}
2180
- // className="itemed item1"
2181
- style={{ position: "relative"}}
2833
+ className={`itemed`}
2834
+ style={{ position: "relative",display: (this.state.videoOneName) ? '' : 'none'}}
2182
2835
  >
2183
2836
  {
2184
2837
  this.state.customAudioed && <img
@@ -2187,7 +2840,7 @@ class Video extends Component {
2187
2840
  style={{ width: "100%", height: "100%",}}
2188
2841
  ></img>
2189
2842
  }
2190
- <div className="video1Div" style={{ display: (!this.state.customAudioed) ? '' : 'none', }}>
2843
+ <div className="video1Div">
2191
2844
  <video
2192
2845
  id="video1"
2193
2846
  autoPlay
@@ -2196,6 +2849,13 @@ class Video extends Component {
2196
2849
  />
2197
2850
  <audio id="audio1" autoPlay />
2198
2851
  <label style={{ display: 'none' }} id="feedId1" type="text" />
2852
+ {
2853
+ this.state.voiceVideoOne && <img
2854
+ alt=""
2855
+ src={require("../../assets/img/jingyin.png").default}
2856
+ className="imgClassVoice voiceVideoClass"
2857
+ />
2858
+ }
2199
2859
  <div style={{ display: (this.state.videoOneName) ? '' : 'none'}} className={`customerTitle titleSamlle`}>
2200
2860
  <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
2201
2861
  {this.state.videoOneName}
@@ -2203,10 +2863,10 @@ class Video extends Component {
2203
2863
 
2204
2864
 
2205
2865
  </div>
2206
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
2866
+ <canvas style={{ display: (this.state.videoOneName&&!this.state.voiceVideoOne) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
2207
2867
  </div>
2208
2868
  </div>
2209
- <div className={`itemed`}>
2869
+ <div className={`itemed`} style={{ display: (this.state.videoTwoName) ? '' : 'none', }}>
2210
2870
  <video
2211
2871
  id="video2"
2212
2872
  autoPlay
@@ -2215,15 +2875,22 @@ class Video extends Component {
2215
2875
  />
2216
2876
  <audio id="audio2" autoPlay />
2217
2877
  <label style={{ display: 'none' }} id="feedId2" type="text" />
2878
+ {
2879
+ this.state.voiceVideoTwo && <img
2880
+ alt=""
2881
+ src={require("../../assets/img/jingyin.png").default}
2882
+ className="imgClassVoice voiceVideoClass"
2883
+ />
2884
+ }
2218
2885
  <div style={{ display: (this.state.videoTwoName) ? '' : 'none'}} className={`customerTitle titleSamlle`}>
2219
2886
  <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
2220
2887
  {this.state.videoTwoName}
2221
2888
  </div>
2222
2889
  </div>
2223
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView2" width="40" height="70"></canvas>
2890
+ <canvas style={{ display: (this.state.videoTwoName&&!this.state.voiceVideoTwo) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView2" width="40" height="70"></canvas>
2224
2891
  </div>
2225
2892
  <div className={`itemed`}
2226
- style={{'margin-top': '5px' }}>
2893
+ style={{display: (this.state.videoThreeName) ? '' : 'none' }}>
2227
2894
  <video
2228
2895
  id="video3"
2229
2896
  autoPlay
@@ -2232,14 +2899,21 @@ class Video extends Component {
2232
2899
  />
2233
2900
  <audio id="audio3" autoPlay />
2234
2901
  <label style={{ display: 'none' }} id="feedId3" type="text" />
2902
+ {
2903
+ this.state.voiceVideoThree && <img
2904
+ alt=""
2905
+ src={require("../../assets/img/jingyin.png").default}
2906
+ className="imgClassVoice voiceVideoClass"
2907
+ />
2908
+ }
2235
2909
  <div style={{ display: (this.state.videoThreeName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle titleSamlle`}>
2236
2910
  <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
2237
2911
  {this.state.videoThreeName}
2238
2912
  </div>
2239
2913
  </div>
2240
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
2914
+ <canvas style={{ display: (this.state.videoThreeName&&!this.state.voiceVideoThree) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
2241
2915
  </div>
2242
- <div className={`itemed`}>
2916
+ <div className={`itemed`} style={{ display: (this.state.videoFourName) ? '' : 'none', }}>
2243
2917
  <video
2244
2918
  id="video4"
2245
2919
  autoPlay
@@ -2248,15 +2922,22 @@ class Video extends Component {
2248
2922
  />
2249
2923
  <audio id="audio4" autoPlay />
2250
2924
  <label style={{ display: 'none' }} id="feedId4" type="text" />
2925
+ {
2926
+ this.state.voiceVideoFour && <img
2927
+ alt=""
2928
+ src={require("../../assets/img/jingyin.png").default}
2929
+ className="imgClassVoice voiceVideoClass"
2930
+ />
2931
+ }
2251
2932
  <div style={{ display: (this.state.videoFourName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle titleSamlle`}>
2252
2933
  <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
2253
2934
  {this.state.videoFourName}
2254
2935
  </div>
2255
2936
  </div>
2256
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
2937
+ <canvas style={{ display: (this.state.videoFourName&&!this.state.voiceVideoFour) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
2257
2938
  </div>
2258
2939
  <div className={`itemed`}
2259
- style={{'margin-top': '5px' }}>
2940
+ style={{display: (this.state.videoFiveName) ? '' : 'none' }}>
2260
2941
  <video
2261
2942
  id="video5"
2262
2943
  autoPlay
@@ -2265,14 +2946,21 @@ class Video extends Component {
2265
2946
  />
2266
2947
  <audio id="audio5" autoPlay />
2267
2948
  <label style={{ display: 'none' }} id="feedId5" type="text" />
2949
+ {
2950
+ this.state.voiceVideoFive && <img
2951
+ alt=""
2952
+ src={require("../../assets/img/jingyin.png").default}
2953
+ className="imgClassVoice voiceVideoClass"
2954
+ />
2955
+ }
2268
2956
  <div style={{ display: (this.state.videoFiveName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle titleSamlle`}>
2269
2957
  <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
2270
2958
  {this.state.videoFiveName}
2271
2959
  </div>
2272
2960
  </div>
2273
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
2961
+ <canvas style={{ display: (this.state.videoFiveName&&!this.state.voiceVideoFive) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
2274
2962
  </div>
2275
- <div className={`"itemed"`}>
2963
+ <div className={`itemed`} style={{ display: (this.state.videoSixName) ? '' : 'none', }}>
2276
2964
  <video
2277
2965
  id="video6"
2278
2966
  autoPlay
@@ -2281,14 +2969,177 @@ class Video extends Component {
2281
2969
  />
2282
2970
  <audio id="audio6" autoPlay />
2283
2971
  <label style={{ display: 'none' }} id="feedId6" type="text" />
2972
+ {
2973
+ this.state.voiceVideoSix && <img
2974
+ alt=""
2975
+ src={require("../../assets/img/jingyin.png").default}
2976
+ className="imgClassVoice voiceVideoClass"
2977
+ />
2978
+ }
2284
2979
  <div style={{ display: (this.state.videoSixName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle titleSamlle`}>
2285
2980
  <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
2286
2981
  {this.state.videoSixName}
2287
2982
  </div>
2288
2983
  </div>
2289
- <canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
2984
+ <canvas style={{ display: (!this.state.voiceVideoSix) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
2290
2985
 
2291
2986
  </div>
2987
+ <div
2988
+ className={`itemed`}
2989
+ style={{ position: "relative",display: (this.state.videoSevenName) ? '' : 'none'}}
2990
+ >
2991
+ {
2992
+ this.state.customAudioed && <img
2993
+ alt=""
2994
+ src={require("../../assets/img/yingpin.png").default}
2995
+ style={{ width: "100%", height: "100%",}}
2996
+ ></img>
2997
+ }
2998
+ <div className="video1Div" style={{ display: (!this.state.customAudioed) ? '' : 'none', }}>
2999
+ <video
3000
+ id="video7"
3001
+ autoPlay
3002
+ muted={true}
3003
+ className="video"
3004
+ />
3005
+ <audio id="audio7" autoPlay />
3006
+ <label style={{ display: 'none' }} id="feedId7" type="text" />
3007
+ {
3008
+ this.state.voiceVideoSeven && <img
3009
+ alt=""
3010
+ src={require("../../assets/img/jingyin.png").default}
3011
+ className="imgClassVoice voiceVideoClass"
3012
+ />
3013
+ }
3014
+ <div style={{ display: (this.state.videoSevenName) ? '' : 'none'}} className={`customerTitle titleSamlle`}>
3015
+ <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
3016
+ {this.state.videoSevenName}
3017
+ </div>
3018
+
3019
+
3020
+ </div>
3021
+ <canvas style={{ display: (this.state.videoSevenName&&!this.state.voiceVideoSeven) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView7" width="40" height="70"></canvas>
3022
+ </div>
3023
+ </div>
3024
+ <div className={`itemed`} style={{ display: (this.state.videoEightName) ? '' : 'none', }}>
3025
+ <video
3026
+ id="video8"
3027
+ autoPlay
3028
+ muted={true}
3029
+ className="video"
3030
+ />
3031
+ <audio id="audio8" autoPlay />
3032
+ <label style={{ display: 'none' }} id="feedId8" type="text" />
3033
+ {
3034
+ this.state.voiceVideoEight && <img
3035
+ alt=""
3036
+ src={require("../../assets/img/jingyin.png").default}
3037
+ className="imgClassVoice voiceVideoClass"
3038
+ />
3039
+ }
3040
+ <div style={{ display: (this.state.videoEightName) ? '' : 'none'}} className={`customerTitle titleSamlle`}>
3041
+ <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
3042
+ {this.state.videoEightName}
3043
+ </div>
3044
+ </div>
3045
+ <canvas style={{ display: (this.state.videoEightName&&!this.state.voiceVideoEight) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView8" width="40" height="70"></canvas>
3046
+ </div>
3047
+ <div className={`itemed`} style={{ display: (this.state.videoNineName) ? '' : 'none', }}>
3048
+ <video
3049
+ id="video9"
3050
+ autoPlay
3051
+ muted={true}
3052
+ className="video"
3053
+ />
3054
+ <audio id="audio9" autoPlay />
3055
+ <label style={{ display: 'none' }} id="feedId9" type="text" />
3056
+ {
3057
+ this.state.voiceVideoNine && <img
3058
+ alt=""
3059
+ src={require("../../assets/img/jingyin.png").default}
3060
+ className="imgClassVoice voiceVideoClass"
3061
+ />
3062
+ }
3063
+ <div style={{ display: (this.state.videoNineName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3064
+ <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
3065
+ {this.state.videoNineName}
3066
+ </div>
3067
+ </div>
3068
+ <canvas style={{ display: (this.state.videoNineName && !this.state.voiceVideoSix) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView9" width="40" height="70"></canvas>
3069
+
3070
+ </div>
3071
+ <div className={`itemed`}
3072
+ style={{display: (this.state.videoTenName) ? '' : 'none' }}>
3073
+ <video
3074
+ id="video10"
3075
+ autoPlay
3076
+ muted={true}
3077
+ className="video"
3078
+ />
3079
+ <audio id="audio10" autoPlay />
3080
+ <label style={{ display: 'none' }} id="feedId10" type="text" />
3081
+ {
3082
+ this.state.voiceVideoTen && <img
3083
+ alt=""
3084
+ src={require("../../assets/img/jingyin.png").default}
3085
+ className="imgClassVoice voiceVideoClass"
3086
+ />
3087
+ }
3088
+ <div style={{ display: (this.state.videoTenName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3089
+ <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
3090
+ {this.state.videoTenName}
3091
+ </div>
3092
+ </div>
3093
+ <canvas style={{ display: (this.state.videoTenName&&!this.state.voiceVideoTen) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView10" width="40" height="70"></canvas>
3094
+ </div>
3095
+ <div className={`itemed`} style={{ display: (this.state.videoElevenName) ? '' : 'none', }}>
3096
+ <video
3097
+ id="video11"
3098
+ autoPlay
3099
+ muted={true}
3100
+ className="video"
3101
+ />
3102
+ <audio id="audio11" autoPlay />
3103
+ <label style={{ display: 'none' }} id="feedId11" type="text" />
3104
+ {
3105
+ this.state.voiceVideoEleven && <img
3106
+ alt=""
3107
+ src={require("../../assets/img/jingyin.png").default}
3108
+ className="imgClassVoice voiceVideoClass"
3109
+ />
3110
+ }
3111
+ <div style={{ display: (this.state.videoElevenName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3112
+ <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
3113
+ {this.state.videoElevenName}
3114
+ </div>
3115
+ </div>
3116
+ <canvas style={{ display: (this.state.videoElevenName&&!this.state.voiceVideoEleven) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView11" width="40" height="70"></canvas>
3117
+ </div>
3118
+ <div className={`itemed`}
3119
+ style={{display: (this.state.videoTwelveName) ? '' : 'none' }}>
3120
+ <video
3121
+ id="video12"
3122
+ autoPlay
3123
+ muted={true}
3124
+ className="video"
3125
+ />
3126
+ <audio id="audio12" autoPlay />
3127
+ <label style={{ display: 'none' }} id="feedId12" type="text" />
3128
+ {
3129
+ this.state.voiceVideoTwelve && <img
3130
+ alt=""
3131
+ src={require("../../assets/img/jingyin.png").default}
3132
+ className="imgClassVoice voiceVideoClass"
3133
+ />
3134
+ }
3135
+ <div style={{ display: (this.state.videoTwelveName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle titleSamlle`}>
3136
+ <div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
3137
+ {this.state.videoTwelveName}
3138
+ </div>
3139
+ </div>
3140
+ <canvas style={{ display: (this.state.videoTwelveName&&!this.state.voiceVideoTwelve) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView12" width="40" height="70"></canvas>
3141
+ </div>
3142
+
2292
3143
  </div>
2293
3144
  </div>
2294
3145
  <img id="icon_huatong" style={{display:'none'}} src={require("../../assets/img/icon_huatong.png").default}></img>
@@ -2386,11 +3237,11 @@ Video.defaultProps = {
2386
3237
  voiceColor: '#0AE544',
2387
3238
  titleBackground: 'rgba(0,0,0,0.65)',
2388
3239
  titleColor: '#fff',
2389
- microphoneSize: '50',
3240
+ microphoneSize: '40',
2390
3241
  fontSize: '14',
2391
3242
  fontFamily: 'auto',
2392
3243
  menus: ['SHARE', 'FRIES', 'OCR', 'INVITE', 'PIP'],
2393
- theme: {
3244
+ meetingInfo: {
2394
3245
  title: '测试',
2395
3246
  host: 'wmz',
2396
3247
  customers: ['王三','张思']