react_hsbc_teller 1.2.2 → 1.2.5
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.
|
@@ -322,15 +322,6 @@ class Video extends Component {
|
|
|
322
322
|
publish_tag: 'tag1'
|
|
323
323
|
}
|
|
324
324
|
];
|
|
325
|
-
const recordParam = {};
|
|
326
|
-
recordParam.width = 640;
|
|
327
|
-
recordParam.height = 360;
|
|
328
|
-
recordParam.channels = 1;
|
|
329
|
-
recordParam.splitType = 0;
|
|
330
|
-
recordParam.startTimeout = 5;
|
|
331
|
-
recordParam.recordTotalStream = 0;
|
|
332
|
-
recordParam.endType = 1;
|
|
333
|
-
config_param.recordParam = recordParam;
|
|
334
325
|
config_param.initSubscribe = [
|
|
335
326
|
{
|
|
336
327
|
subscribe_video_id: 'video1',
|
|
@@ -375,8 +366,8 @@ class Video extends Component {
|
|
|
375
366
|
enableServerRecording = () => {
|
|
376
367
|
const filePath = 'recordId_' + new Date().valueOf();
|
|
377
368
|
const recordParam = {};
|
|
378
|
-
recordParam.width =
|
|
379
|
-
recordParam.height =
|
|
369
|
+
recordParam.width = 1920;
|
|
370
|
+
recordParam.height = 1080;
|
|
380
371
|
recordParam.recordTotalStream = 0;
|
|
381
372
|
recordParam.startTimeout = 10;
|
|
382
373
|
recordParam.splitType = 0;
|
|
@@ -408,101 +399,101 @@ class Video extends Component {
|
|
|
408
399
|
recordParam.tagPositions = [
|
|
409
400
|
{
|
|
410
401
|
tag: 'projectionWhiteboard',
|
|
411
|
-
xPosition:
|
|
412
|
-
yPosition:
|
|
413
|
-
width:
|
|
414
|
-
height:
|
|
402
|
+
xPosition: 0,
|
|
403
|
+
yPosition: 540,
|
|
404
|
+
width: 960,
|
|
405
|
+
height: 540
|
|
415
406
|
},
|
|
416
407
|
{
|
|
417
408
|
tag: 'VIDEO_SOURCE_SCREEN',
|
|
418
|
-
xPosition:
|
|
419
|
-
yPosition:
|
|
420
|
-
width:
|
|
421
|
-
height:
|
|
409
|
+
xPosition: 0,
|
|
410
|
+
yPosition: 180,
|
|
411
|
+
width: 640,
|
|
412
|
+
height: 360
|
|
422
413
|
},
|
|
423
414
|
{
|
|
424
415
|
tag: 'tag1',
|
|
425
|
-
xPosition:
|
|
426
|
-
yPosition:
|
|
427
|
-
width:
|
|
428
|
-
height:
|
|
416
|
+
xPosition: 0,
|
|
417
|
+
yPosition: 0,
|
|
418
|
+
width: 240,
|
|
419
|
+
height: 180
|
|
429
420
|
},
|
|
430
421
|
{
|
|
431
422
|
tag: 'customer1',
|
|
432
|
-
xPosition:
|
|
433
|
-
yPosition:
|
|
434
|
-
width:
|
|
435
|
-
height:
|
|
423
|
+
xPosition: 240,
|
|
424
|
+
yPosition: 0,
|
|
425
|
+
width: 240,
|
|
426
|
+
height: 180
|
|
436
427
|
},
|
|
437
428
|
{
|
|
438
429
|
tag: 'customer2',
|
|
439
|
-
xPosition:
|
|
440
|
-
yPosition:
|
|
441
|
-
width:
|
|
442
|
-
height:
|
|
430
|
+
xPosition: 480,
|
|
431
|
+
yPosition: 0,
|
|
432
|
+
width: 240,
|
|
433
|
+
height: 180
|
|
443
434
|
},
|
|
444
435
|
{
|
|
445
436
|
tag: 'customer3',
|
|
446
|
-
xPosition:
|
|
447
|
-
yPosition:
|
|
448
|
-
width:
|
|
449
|
-
height:
|
|
437
|
+
xPosition: 720,
|
|
438
|
+
yPosition: 0,
|
|
439
|
+
width: 240,
|
|
440
|
+
height: 180
|
|
450
441
|
},
|
|
451
442
|
{
|
|
452
443
|
tag: 'customer4',
|
|
453
|
-
xPosition:
|
|
454
|
-
yPosition:
|
|
455
|
-
width:
|
|
456
|
-
height:
|
|
444
|
+
xPosition: 960,
|
|
445
|
+
yPosition: 0,
|
|
446
|
+
width: 240,
|
|
447
|
+
height: 180
|
|
457
448
|
},
|
|
458
449
|
{
|
|
459
450
|
tag: 'customer5',
|
|
460
|
-
xPosition:
|
|
461
|
-
yPosition:
|
|
462
|
-
width:
|
|
463
|
-
height:
|
|
451
|
+
xPosition: 1200,
|
|
452
|
+
yPosition: 0,
|
|
453
|
+
width: 240,
|
|
454
|
+
height: 180
|
|
464
455
|
},
|
|
465
456
|
{
|
|
466
457
|
tag: 'customer6',
|
|
467
|
-
xPosition:
|
|
468
|
-
yPosition:
|
|
469
|
-
width:
|
|
470
|
-
height:
|
|
458
|
+
xPosition: 1440,
|
|
459
|
+
yPosition: 0,
|
|
460
|
+
width: 240,
|
|
461
|
+
height: 180
|
|
471
462
|
},
|
|
472
463
|
{
|
|
473
464
|
tag: 'customer7',
|
|
474
|
-
xPosition:
|
|
475
|
-
yPosition:
|
|
476
|
-
width:
|
|
477
|
-
height:
|
|
465
|
+
xPosition: 1680,
|
|
466
|
+
yPosition: 0,
|
|
467
|
+
width: 240,
|
|
468
|
+
height: 180
|
|
478
469
|
},
|
|
479
470
|
{
|
|
480
471
|
tag: 'customer8',
|
|
481
|
-
xPosition:
|
|
482
|
-
yPosition:
|
|
483
|
-
width:
|
|
484
|
-
height:
|
|
472
|
+
xPosition: 1680,
|
|
473
|
+
yPosition: 180,
|
|
474
|
+
width: 240,
|
|
475
|
+
height: 180
|
|
485
476
|
},
|
|
486
477
|
{
|
|
487
478
|
tag: 'customer9',
|
|
488
|
-
xPosition:
|
|
489
|
-
yPosition:
|
|
490
|
-
width:
|
|
491
|
-
height:
|
|
479
|
+
xPosition: 1680,
|
|
480
|
+
yPosition: 360,
|
|
481
|
+
width: 240,
|
|
482
|
+
height: 180
|
|
492
483
|
},
|
|
493
484
|
{
|
|
494
485
|
tag: 'customer10',
|
|
495
|
-
xPosition:
|
|
496
|
-
yPosition:
|
|
497
|
-
width:
|
|
498
|
-
height:
|
|
486
|
+
xPosition: 1680,
|
|
487
|
+
yPosition: 540,
|
|
488
|
+
width: 240,
|
|
489
|
+
height: 180
|
|
499
490
|
},
|
|
500
491
|
{
|
|
501
492
|
tag: 'customer11',
|
|
502
|
-
xPosition:
|
|
503
|
-
yPosition:
|
|
504
|
-
width:
|
|
505
|
-
height:
|
|
493
|
+
xPosition: 1680,
|
|
494
|
+
yPosition: 720,
|
|
495
|
+
width: 240,
|
|
496
|
+
height: 180
|
|
506
497
|
}
|
|
507
498
|
]
|
|
508
499
|
console.log('recordParam', recordParam);
|
|
@@ -802,6 +793,7 @@ class Video extends Component {
|
|
|
802
793
|
})
|
|
803
794
|
}
|
|
804
795
|
messageClick=(value,valueOne)=>{
|
|
796
|
+
console.log(value,valueOne)
|
|
805
797
|
if(valueOne == 'error') {
|
|
806
798
|
message.error({
|
|
807
799
|
content: value,
|
|
@@ -1658,7 +1650,11 @@ class Video extends Component {
|
|
|
1658
1650
|
// 获取设备成功
|
|
1659
1651
|
this.test_controller.OnGetDevicesSuccess = (devicesInfo) => {
|
|
1660
1652
|
console.log('devicesInfo' + JSON.stringify(devicesInfo));
|
|
1661
|
-
const obj = [
|
|
1653
|
+
const obj = [
|
|
1654
|
+
// {actionid: '0133d06019b8fe9426818ae7573ccfc31c150e09138e7f5ccfda03d6e224ffd4', groupId: '9c0334ba5cba71b60acb3ec6669c3aac78371ec9d9e33d2e8af72a758d895d27', actionname: 'Integrated Camera (13d3:56fb)'},
|
|
1655
|
+
|
|
1656
|
+
// {actionid: '4695c628677498d876074b941c16f6921d4e57534b50bfc2cb973da84e0e2622', groupId: '0d86c9467f096440ed74449192be5fafea59ac469866975f30b61fe964e2a80e', actionname: 'C2D Camera (0416:5035)'}
|
|
1657
|
+
];
|
|
1662
1658
|
const obj1 = [];
|
|
1663
1659
|
const obj2 = [];
|
|
1664
1660
|
let num = 0;
|
|
@@ -1679,7 +1675,8 @@ class Video extends Component {
|
|
|
1679
1675
|
b.actionname = devicesInfo[i].label
|
|
1680
1676
|
}
|
|
1681
1677
|
obj.push(b)
|
|
1682
|
-
} else
|
|
1678
|
+
} else
|
|
1679
|
+
if (devicesInfo[i].kind === 'audioinput') {
|
|
1683
1680
|
// 麦克风
|
|
1684
1681
|
b.actionid = devicesInfo[i].deviceId;
|
|
1685
1682
|
b.groupId = devicesInfo[i].groupId || 'empty';
|
|
@@ -1739,19 +1736,22 @@ class Video extends Component {
|
|
|
1739
1736
|
microphoneList: objList1,
|
|
1740
1737
|
speakerList: objList2.length>0? [objList2[0]]: []
|
|
1741
1738
|
})
|
|
1739
|
+
let indexId = 0
|
|
1740
|
+
objList.map((item,index)=>{
|
|
1741
|
+
if(item.actionname.indexOf('Integrated Camera') != -1) {
|
|
1742
|
+
indexId = index
|
|
1743
|
+
}
|
|
1744
|
+
})
|
|
1745
|
+
console.log(indexId)
|
|
1746
|
+
this.setState({
|
|
1747
|
+
cameraValue: objList[indexId].actionid,
|
|
1748
|
+
microphoneValue: objList1[0].actionid
|
|
1749
|
+
})
|
|
1742
1750
|
if (!this.state.appId && !this.state.sessionType) {
|
|
1751
|
+
console.log('cameraValue',this.state.cameraValue)
|
|
1743
1752
|
this.mpaasSig(data);
|
|
1744
|
-
let indexId = 0
|
|
1745
|
-
obj.map((item,index)=>{
|
|
1746
|
-
if(item.actionname.indexOf('Integrated Camera' != -1)) {
|
|
1747
|
-
indexId = index
|
|
1748
|
-
}
|
|
1749
|
-
})
|
|
1750
|
-
this.setState({
|
|
1751
|
-
cameraValue: obj[indexId].actionid,
|
|
1752
|
-
microphoneValue: obj1[0].actionid
|
|
1753
|
-
})
|
|
1754
1753
|
} else {
|
|
1754
|
+
console.log('cameraValue',this.state.cameraValue)
|
|
1755
1755
|
this.setState({
|
|
1756
1756
|
isModalVisibleInspection: true
|
|
1757
1757
|
})
|
|
@@ -1899,7 +1899,7 @@ class Video extends Component {
|
|
|
1899
1899
|
this.enterRoom()
|
|
1900
1900
|
this.timer = setInterval(
|
|
1901
1901
|
() => {
|
|
1902
|
-
if(!this.state.voiceStatue && this.state.analyserHeight.get(sid).toFixed(2) > 0) {
|
|
1902
|
+
if(!this.state.voiceStatue && this.state.analyserHeight.get(sid).toFixed(2) > 0.1) {
|
|
1903
1903
|
callNimIM('sendCustomCmdMsg', {
|
|
1904
1904
|
customId: this.state.imRoomId,
|
|
1905
1905
|
content: JSON.stringify({
|
|
@@ -2485,6 +2485,7 @@ class Video extends Component {
|
|
|
2485
2485
|
this.appGetUsernameClick(participant).then((res)=>{
|
|
2486
2486
|
console.log('退出房间者',res)
|
|
2487
2487
|
let data = res? res : '客户'
|
|
2488
|
+
console.log(data)
|
|
2488
2489
|
this.messageClick(( data + '已退出会议'),'error')
|
|
2489
2490
|
// let audio = document.createElement('audio') //生成一个audio元素
|
|
2490
2491
|
// audio.src = 'http://mp3.9ku.com/hot/2005/05-19/65937.mp3' //音乐的路径
|
|
@@ -2495,11 +2496,15 @@ class Video extends Component {
|
|
|
2495
2496
|
// 弱网回调
|
|
2496
2497
|
this.test_controller.OnNetworkWeak = (bpsSend, bpsRecv, sid) => {
|
|
2497
2498
|
console.log('弱网回调', bpsSend, bpsRecv, sid)
|
|
2499
|
+
if(sid == document.getElementById('publish_video1').name) {
|
|
2500
|
+
this.messageClick('当前网络环境较差','error')
|
|
2501
|
+
}
|
|
2498
2502
|
};
|
|
2499
2503
|
// 开始服务端录制成功
|
|
2500
2504
|
this.test_controller.OnStartRemoteRecordSucc = (record_id) => {
|
|
2501
2505
|
console.log('开始服务端录制成功', record_id);
|
|
2502
2506
|
this.state.recordId = record_id
|
|
2507
|
+
this.videoRecordCallback('1')
|
|
2503
2508
|
};
|
|
2504
2509
|
// 开始服务端录制失败
|
|
2505
2510
|
this.test_controller.OnStartRemoteRecordFailed = (
|
|
@@ -2512,6 +2517,7 @@ class Video extends Component {
|
|
|
2512
2517
|
// 结束服务端录制成功
|
|
2513
2518
|
this.test_controller.OnStopRemoteRecordSucc = (recordId) => {
|
|
2514
2519
|
console.log('结束服务端录制成功', recordId);
|
|
2520
|
+
this.videoRecordCallback('2')
|
|
2515
2521
|
// this.endSessionValue()
|
|
2516
2522
|
// 获取服务端录制结果
|
|
2517
2523
|
};
|
|
@@ -2773,9 +2779,11 @@ class Video extends Component {
|
|
|
2773
2779
|
x2: 22 / 50 * canvas.width, // 波动范围左上角的点坐标
|
|
2774
2780
|
y2: 10 / 50 * canvas.height,
|
|
2775
2781
|
}
|
|
2776
|
-
|
|
2782
|
+
let number = 0
|
|
2777
2783
|
for (var i = 0; i < 40; i++) {
|
|
2784
|
+
|
|
2778
2785
|
let energy = (dataArray[step * i] / 256.0) * 80;
|
|
2786
|
+
number = number + energy
|
|
2779
2787
|
ctx.beginPath();
|
|
2780
2788
|
ctx.fillStyle = this.props.voiceColor;
|
|
2781
2789
|
const { x1, y1, x2, y2 } = drawArea
|
|
@@ -2784,12 +2792,13 @@ class Video extends Component {
|
|
|
2784
2792
|
let startX = x2 // 绘制起始点x
|
|
2785
2793
|
let startY = y1 - height // 绘制起始点y
|
|
2786
2794
|
ctx.fillRect(startX, startY, width, height)
|
|
2787
|
-
if(document.getElementById('publish_video1').name == sid) {
|
|
2788
|
-
|
|
2795
|
+
if(document.getElementById('publish_video1').name == sid && i == 39) {
|
|
2796
|
+
console.log(number / 40 / 70,number / 40)
|
|
2797
|
+
this.state.analyserHeight.set(sid,number / 40 / 70)
|
|
2789
2798
|
this.state.analyserHeight = this.state.analyserHeight
|
|
2790
2799
|
}
|
|
2791
|
-
|
|
2792
2800
|
}
|
|
2801
|
+
|
|
2793
2802
|
this.state.OnVolumeAnalyserMap.set(sid,setInterval(
|
|
2794
2803
|
this.test_controller.OnVolumeAnalyser.bind(this, sid, analyser),
|
|
2795
2804
|
300
|
|
@@ -2837,6 +2846,21 @@ class Video extends Component {
|
|
|
2837
2846
|
|
|
2838
2847
|
};
|
|
2839
2848
|
}
|
|
2849
|
+
videoRecordCallback = async(type)=>{
|
|
2850
|
+
try {
|
|
2851
|
+
let result = await API.videoRecordCallback({
|
|
2852
|
+
activityId: this.props.businessNumber,
|
|
2853
|
+
sessionId: this.state.sessionId,
|
|
2854
|
+
type: type
|
|
2855
|
+
});
|
|
2856
|
+
console.log(result);
|
|
2857
|
+
} catch (err) {
|
|
2858
|
+
console.error(err);
|
|
2859
|
+
if(err.status == 502 || err.status== 404) {
|
|
2860
|
+
this.roomCallBack(2, '连接服务器失败','SYS-02')
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
}
|
|
2840
2864
|
enterRoom = async () =>{
|
|
2841
2865
|
try {
|
|
2842
2866
|
let result = await API.enterRoom({
|
|
@@ -2894,7 +2918,7 @@ class Video extends Component {
|
|
|
2894
2918
|
this.state.manualClose = true
|
|
2895
2919
|
disconnect();
|
|
2896
2920
|
}
|
|
2897
|
-
|
|
2921
|
+
message.destroy()
|
|
2898
2922
|
}
|
|
2899
2923
|
finishSessionClick= async () => {
|
|
2900
2924
|
try {
|
|
@@ -3729,7 +3753,7 @@ class Video extends Component {
|
|
|
3729
3753
|
employeeError: result.data.staffName ? '' : '查无此人',
|
|
3730
3754
|
})
|
|
3731
3755
|
if(result.data.staffName){
|
|
3732
|
-
this.state.linkData =
|
|
3756
|
+
this.state.linkData = this.props.internalUrl + '&appointmentID='+ this.props.businessNumber + '&staffID='+this.state.employeeNumber+'&staffName='+ encodeURIComponent(result.data.staffName)
|
|
3733
3757
|
|
|
3734
3758
|
}
|
|
3735
3759
|
} else {
|
|
@@ -3769,11 +3793,13 @@ class Video extends Component {
|
|
|
3769
3793
|
const canvas = document.createElement('canvas');
|
|
3770
3794
|
const videoMedia = document.getElementById('manedvideo');
|
|
3771
3795
|
const cobj = canvas.getContext('2d'); // 获取绘图环境
|
|
3772
|
-
const left =
|
|
3773
|
-
const top = document.getElementById("whiteboardDIV").getBoundingClientRect().top
|
|
3796
|
+
const left =document.getElementById("allHSBC").getBoundingClientRect().left;
|
|
3774
3797
|
const right = document.getElementById("whiteboardDIV").getBoundingClientRect().right
|
|
3775
|
-
const
|
|
3776
|
-
const
|
|
3798
|
+
const top = document.getElementById("whiteboardDIV").getBoundingClientRect().top
|
|
3799
|
+
const bottom = document.getElementById("whiteboardDIV").getBoundingClientRect().bottom
|
|
3800
|
+
const width = right - left
|
|
3801
|
+
const height = bottom - top + 10
|
|
3802
|
+
const x = left - 20 > 0 ? left - 20 : 0
|
|
3777
3803
|
canvas.width = width;
|
|
3778
3804
|
canvas.height = height;
|
|
3779
3805
|
videoMedia.addEventListener('play', (event) =>{
|
|
@@ -3782,7 +3808,7 @@ class Video extends Component {
|
|
|
3782
3808
|
loop()
|
|
3783
3809
|
function loop() {
|
|
3784
3810
|
if (!$this.paused && !$this.ended) {
|
|
3785
|
-
cobj.drawImage(videoMedia,
|
|
3811
|
+
cobj.drawImage(videoMedia, x, top, width, height, 0, 0,width, height,);
|
|
3786
3812
|
setTimeout(loop, 1000 / 10); // drawing at 30fps
|
|
3787
3813
|
}
|
|
3788
3814
|
}
|
|
@@ -3923,7 +3949,123 @@ class Video extends Component {
|
|
|
3923
3949
|
console.log('whiteboardDIV', this.state.whiteboardHeight,box.clientHeight,this.state.whiteboardWidth)
|
|
3924
3950
|
}
|
|
3925
3951
|
}
|
|
3926
|
-
|
|
3952
|
+
muteOpposite = (value) => {
|
|
3953
|
+
console.log(value);
|
|
3954
|
+
if (value == 'video1') {
|
|
3955
|
+
callNimIM('sendCustomCmdMsg', {
|
|
3956
|
+
customId: this.state.imRoomId,
|
|
3957
|
+
content: JSON.stringify({
|
|
3958
|
+
'typeId': 1223,
|
|
3959
|
+
'sessionId': this.state.sessionId,
|
|
3960
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
|
|
3961
|
+
})
|
|
3962
|
+
});
|
|
3963
|
+
}
|
|
3964
|
+
if (value == 'video2') {
|
|
3965
|
+
callNimIM('sendCustomCmdMsg', {
|
|
3966
|
+
customId: this.state.imRoomId,
|
|
3967
|
+
content: JSON.stringify({
|
|
3968
|
+
'typeId': 1223,
|
|
3969
|
+
'sessionId': this.state.sessionId,
|
|
3970
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
|
|
3971
|
+
})
|
|
3972
|
+
});
|
|
3973
|
+
}if (value == 'video3') {
|
|
3974
|
+
callNimIM('sendCustomCmdMsg', {
|
|
3975
|
+
customId: this.state.imRoomId,
|
|
3976
|
+
content: JSON.stringify({
|
|
3977
|
+
'typeId': 1223,
|
|
3978
|
+
'sessionId': this.state.sessionId,
|
|
3979
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
|
|
3980
|
+
})
|
|
3981
|
+
});
|
|
3982
|
+
}if (value == 'video4') {
|
|
3983
|
+
callNimIM('sendCustomCmdMsg', {
|
|
3984
|
+
customId: this.state.imRoomId,
|
|
3985
|
+
content: JSON.stringify({
|
|
3986
|
+
'typeId': 1223,
|
|
3987
|
+
'sessionId': this.state.sessionId,
|
|
3988
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
|
|
3989
|
+
})
|
|
3990
|
+
});
|
|
3991
|
+
}if (value == 'video5') {
|
|
3992
|
+
callNimIM('sendCustomCmdMsg', {
|
|
3993
|
+
customId: this.state.imRoomId,
|
|
3994
|
+
content: JSON.stringify({
|
|
3995
|
+
'typeId': 1223,
|
|
3996
|
+
'sessionId': this.state.sessionId,
|
|
3997
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
|
|
3998
|
+
})
|
|
3999
|
+
});
|
|
4000
|
+
}if (value == 'video6') {
|
|
4001
|
+
callNimIM('sendCustomCmdMsg', {
|
|
4002
|
+
customId: this.state.imRoomId,
|
|
4003
|
+
content: JSON.stringify({
|
|
4004
|
+
'typeId': 1223,
|
|
4005
|
+
'sessionId': this.state.sessionId,
|
|
4006
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
|
|
4007
|
+
})
|
|
4008
|
+
});
|
|
4009
|
+
}if (value == 'video7') {
|
|
4010
|
+
callNimIM('sendCustomCmdMsg', {
|
|
4011
|
+
customId: this.state.imRoomId,
|
|
4012
|
+
content: JSON.stringify({
|
|
4013
|
+
'typeId': 1223,
|
|
4014
|
+
'sessionId': this.state.sessionId,
|
|
4015
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
|
|
4016
|
+
})
|
|
4017
|
+
});
|
|
4018
|
+
}if (value == 'video8') {
|
|
4019
|
+
callNimIM('sendCustomCmdMsg', {
|
|
4020
|
+
customId: this.state.imRoomId,
|
|
4021
|
+
content: JSON.stringify({
|
|
4022
|
+
'typeId': 1223,
|
|
4023
|
+
'sessionId': this.state.sessionId,
|
|
4024
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
|
|
4025
|
+
})
|
|
4026
|
+
});
|
|
4027
|
+
}if (value == 'video9') {
|
|
4028
|
+
callNimIM('sendCustomCmdMsg', {
|
|
4029
|
+
customId: this.state.imRoomId,
|
|
4030
|
+
content: JSON.stringify({
|
|
4031
|
+
'typeId': 1223,
|
|
4032
|
+
'sessionId': this.state.sessionId,
|
|
4033
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
|
|
4034
|
+
})
|
|
4035
|
+
});
|
|
4036
|
+
}
|
|
4037
|
+
if (value == 'video10') {
|
|
4038
|
+
callNimIM('sendCustomCmdMsg', {
|
|
4039
|
+
customId: this.state.imRoomId,
|
|
4040
|
+
content: JSON.stringify({
|
|
4041
|
+
'typeId': 1223,
|
|
4042
|
+
'sessionId': this.state.sessionId,
|
|
4043
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
|
|
4044
|
+
})
|
|
4045
|
+
});
|
|
4046
|
+
}
|
|
4047
|
+
if (value == 'video11') {
|
|
4048
|
+
callNimIM('sendCustomCmdMsg', {
|
|
4049
|
+
customId: this.state.imRoomId,
|
|
4050
|
+
content: JSON.stringify({
|
|
4051
|
+
'typeId': 1223,
|
|
4052
|
+
'sessionId': this.state.sessionId,
|
|
4053
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
|
|
4054
|
+
})
|
|
4055
|
+
});
|
|
4056
|
+
}
|
|
4057
|
+
if (value == 'video12') {
|
|
4058
|
+
callNimIM('sendCustomCmdMsg', {
|
|
4059
|
+
customId: this.state.imRoomId,
|
|
4060
|
+
content: JSON.stringify({
|
|
4061
|
+
'typeId': 1223,
|
|
4062
|
+
'sessionId': this.state.sessionId,
|
|
4063
|
+
'userId': this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById('feedId1').innerText).uid
|
|
4064
|
+
})
|
|
4065
|
+
});
|
|
4066
|
+
}
|
|
4067
|
+
|
|
4068
|
+
}
|
|
3927
4069
|
render() {
|
|
3928
4070
|
const { meetingInfo,isTranscribing } = this.props
|
|
3929
4071
|
var pdfChildren
|
|
@@ -4162,6 +4304,7 @@ class Video extends Component {
|
|
|
4162
4304
|
<label style={{ display: 'none' }} id="feedId1" type="text" />
|
|
4163
4305
|
|
|
4164
4306
|
<div style={{ display: (this.state.videoOneName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
|
|
4307
|
+
<div onClick={this.muteOpposite.bind(this,'video1')}>
|
|
4165
4308
|
{
|
|
4166
4309
|
this.state.voiceVideoOne && <img
|
|
4167
4310
|
alt=""
|
|
@@ -4170,7 +4313,7 @@ class Video extends Component {
|
|
|
4170
4313
|
/>
|
|
4171
4314
|
}
|
|
4172
4315
|
<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>
|
|
4173
|
-
|
|
4316
|
+
</div>
|
|
4174
4317
|
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
|
|
4175
4318
|
{this.state.videoOneName}
|
|
4176
4319
|
</div>
|
|
@@ -4190,6 +4333,7 @@ class Video extends Component {
|
|
|
4190
4333
|
<label style={{ display: 'none' }} id="feedId2" type="text" />
|
|
4191
4334
|
|
|
4192
4335
|
<div style={{ display: (this.state.videoTwoName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
|
|
4336
|
+
<div onClick={this.muteOpposite.bind(this,'video2')}>
|
|
4193
4337
|
{
|
|
4194
4338
|
this.state.voiceVideoTwo && <img
|
|
4195
4339
|
alt=""
|
|
@@ -4198,7 +4342,7 @@ class Video extends Component {
|
|
|
4198
4342
|
/>
|
|
4199
4343
|
}
|
|
4200
4344
|
<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>
|
|
4201
|
-
|
|
4345
|
+
</div>
|
|
4202
4346
|
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
|
|
4203
4347
|
{this.state.videoTwoName}
|
|
4204
4348
|
</div>
|
|
@@ -4216,6 +4360,7 @@ class Video extends Component {
|
|
|
4216
4360
|
<label style={{ display: 'none' }} id="feedId3" type="text" />
|
|
4217
4361
|
|
|
4218
4362
|
<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`}>
|
|
4363
|
+
<div onClick={this.muteOpposite.bind(this,'video3')}>
|
|
4219
4364
|
{
|
|
4220
4365
|
this.state.voiceVideoThree && <img
|
|
4221
4366
|
alt=""
|
|
@@ -4224,7 +4369,7 @@ class Video extends Component {
|
|
|
4224
4369
|
/>
|
|
4225
4370
|
}
|
|
4226
4371
|
<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>
|
|
4227
|
-
|
|
4372
|
+
</div>
|
|
4228
4373
|
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
|
|
4229
4374
|
{this.state.videoThreeName}
|
|
4230
4375
|
</div>
|
|
@@ -4241,6 +4386,7 @@ class Video extends Component {
|
|
|
4241
4386
|
<label style={{ display: 'none' }} id="feedId4" type="text" />
|
|
4242
4387
|
|
|
4243
4388
|
<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`}>
|
|
4389
|
+
<div onClick={this.muteOpposite.bind(this,'video4')}>
|
|
4244
4390
|
{
|
|
4245
4391
|
this.state.voiceVideoFour && <img
|
|
4246
4392
|
alt=""
|
|
@@ -4249,7 +4395,7 @@ class Video extends Component {
|
|
|
4249
4395
|
/>
|
|
4250
4396
|
}
|
|
4251
4397
|
<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>
|
|
4252
|
-
|
|
4398
|
+
</div>
|
|
4253
4399
|
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
|
|
4254
4400
|
{this.state.videoFourName}
|
|
4255
4401
|
</div>
|
|
@@ -4267,6 +4413,7 @@ class Video extends Component {
|
|
|
4267
4413
|
<label style={{ display: 'none' }} id="feedId5" type="text" />
|
|
4268
4414
|
|
|
4269
4415
|
<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`}>
|
|
4416
|
+
<div onClick={this.muteOpposite.bind(this,'video5')}>
|
|
4270
4417
|
{
|
|
4271
4418
|
this.state.voiceVideoFive && <img
|
|
4272
4419
|
alt=""
|
|
@@ -4275,7 +4422,7 @@ class Video extends Component {
|
|
|
4275
4422
|
/>
|
|
4276
4423
|
}
|
|
4277
4424
|
<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>
|
|
4278
|
-
|
|
4425
|
+
</div>
|
|
4279
4426
|
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
|
|
4280
4427
|
{this.state.videoFiveName}
|
|
4281
4428
|
</div>
|
|
@@ -4292,6 +4439,7 @@ class Video extends Component {
|
|
|
4292
4439
|
<label style={{ display: 'none' }} id="feedId6" type="text" />
|
|
4293
4440
|
|
|
4294
4441
|
<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`}>
|
|
4442
|
+
<div onClick={this.muteOpposite.bind(this,'video6')}>
|
|
4295
4443
|
{
|
|
4296
4444
|
this.state.voiceVideoSix && <img
|
|
4297
4445
|
alt=""
|
|
@@ -4300,7 +4448,7 @@ class Video extends Component {
|
|
|
4300
4448
|
/>
|
|
4301
4449
|
}
|
|
4302
4450
|
<canvas style={{ display: (!this.state.voiceVideoSix) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
|
|
4303
|
-
|
|
4451
|
+
</div>
|
|
4304
4452
|
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
|
|
4305
4453
|
{this.state.videoSixName}
|
|
4306
4454
|
</div>
|
|
@@ -4329,6 +4477,7 @@ class Video extends Component {
|
|
|
4329
4477
|
<label style={{ display: 'none' }} id="feedId7" type="text" />
|
|
4330
4478
|
|
|
4331
4479
|
<div style={{ display: (this.state.videoSevenName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
|
|
4480
|
+
<div onClick={this.muteOpposite.bind(this,'video7')}>
|
|
4332
4481
|
{
|
|
4333
4482
|
this.state.voiceVideoSeven && <img
|
|
4334
4483
|
alt=""
|
|
@@ -4337,7 +4486,7 @@ class Video extends Component {
|
|
|
4337
4486
|
/>
|
|
4338
4487
|
}
|
|
4339
4488
|
<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>
|
|
4340
|
-
|
|
4489
|
+
</div>
|
|
4341
4490
|
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
|
|
4342
4491
|
{this.state.videoSevenName}
|
|
4343
4492
|
</div>
|
|
@@ -4357,6 +4506,7 @@ class Video extends Component {
|
|
|
4357
4506
|
<label style={{ display: 'none' }} id="feedId8" type="text" />
|
|
4358
4507
|
|
|
4359
4508
|
<div style={{ display: (this.state.videoEightName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
|
|
4509
|
+
<div onClick={this.muteOpposite.bind(this,'video8')}>
|
|
4360
4510
|
{
|
|
4361
4511
|
this.state.voiceVideoEight && <img
|
|
4362
4512
|
alt=""
|
|
@@ -4365,7 +4515,7 @@ class Video extends Component {
|
|
|
4365
4515
|
/>
|
|
4366
4516
|
}
|
|
4367
4517
|
<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>
|
|
4368
|
-
|
|
4518
|
+
</div>
|
|
4369
4519
|
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
|
|
4370
4520
|
{this.state.videoEightName}
|
|
4371
4521
|
</div>
|
|
@@ -4382,6 +4532,7 @@ class Video extends Component {
|
|
|
4382
4532
|
<label style={{ display: 'none' }} id="feedId9" type="text" />
|
|
4383
4533
|
|
|
4384
4534
|
<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`}>
|
|
4535
|
+
<div onClick={this.muteOpposite.bind(this,'video9')}>
|
|
4385
4536
|
{
|
|
4386
4537
|
this.state.voiceVideoNine && <img
|
|
4387
4538
|
alt=""
|
|
@@ -4390,7 +4541,7 @@ class Video extends Component {
|
|
|
4390
4541
|
/>
|
|
4391
4542
|
}
|
|
4392
4543
|
<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>
|
|
4393
|
-
|
|
4544
|
+
</div>
|
|
4394
4545
|
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
|
|
4395
4546
|
{this.state.videoNineName}
|
|
4396
4547
|
</div>
|
|
@@ -4409,6 +4560,7 @@ class Video extends Component {
|
|
|
4409
4560
|
<label style={{ display: 'none' }} id="feedId10" type="text" />
|
|
4410
4561
|
|
|
4411
4562
|
<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`}>
|
|
4563
|
+
<div onClick={this.muteOpposite.bind(this,'video10')}>
|
|
4412
4564
|
{
|
|
4413
4565
|
this.state.voiceVideoTen && <img
|
|
4414
4566
|
alt=""
|
|
@@ -4417,7 +4569,7 @@ class Video extends Component {
|
|
|
4417
4569
|
/>
|
|
4418
4570
|
}
|
|
4419
4571
|
<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>
|
|
4420
|
-
|
|
4572
|
+
</div>
|
|
4421
4573
|
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
|
|
4422
4574
|
{this.state.videoTenName}
|
|
4423
4575
|
</div>
|
|
@@ -4434,6 +4586,7 @@ class Video extends Component {
|
|
|
4434
4586
|
<label style={{ display: 'none' }} id="feedId11" type="text" />
|
|
4435
4587
|
|
|
4436
4588
|
<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`}>
|
|
4589
|
+
<div onClick={this.muteOpposite.bind(this,'video11')}>
|
|
4437
4590
|
{
|
|
4438
4591
|
this.state.voiceVideoEleven && <img
|
|
4439
4592
|
alt=""
|
|
@@ -4442,7 +4595,7 @@ class Video extends Component {
|
|
|
4442
4595
|
/>
|
|
4443
4596
|
}
|
|
4444
4597
|
<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>
|
|
4445
|
-
|
|
4598
|
+
</div>
|
|
4446
4599
|
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
|
|
4447
4600
|
{this.state.videoElevenName}
|
|
4448
4601
|
</div>
|
|
@@ -4460,6 +4613,7 @@ class Video extends Component {
|
|
|
4460
4613
|
<label style={{ display: 'none' }} id="feedId12" type="text" />
|
|
4461
4614
|
|
|
4462
4615
|
<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`}>
|
|
4616
|
+
<div onClick={this.muteOpposite.bind(this,'video12')}>
|
|
4463
4617
|
{
|
|
4464
4618
|
this.state.voiceVideoTwelve && <img
|
|
4465
4619
|
alt=""
|
|
@@ -4468,7 +4622,7 @@ class Video extends Component {
|
|
|
4468
4622
|
/>
|
|
4469
4623
|
}
|
|
4470
4624
|
<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>
|
|
4471
|
-
|
|
4625
|
+
</div>
|
|
4472
4626
|
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>
|
|
4473
4627
|
{this.state.videoTwelveName}
|
|
4474
4628
|
</div>
|
|
@@ -4636,10 +4790,10 @@ class Video extends Component {
|
|
|
4636
4790
|
}
|
|
4637
4791
|
}
|
|
4638
4792
|
Video.defaultProps = {
|
|
4639
|
-
mtoken: "
|
|
4640
|
-
roomId: "
|
|
4641
|
-
imRoomId: "
|
|
4642
|
-
sessionId: "
|
|
4793
|
+
mtoken: "",
|
|
4794
|
+
roomId: "",
|
|
4795
|
+
imRoomId: "",
|
|
4796
|
+
sessionId: "",
|
|
4643
4797
|
tellerAccount: 't001',
|
|
4644
4798
|
businessNumber: '123',
|
|
4645
4799
|
callbackUrl: 'http://182.92.184.31:8720/hsbc/callback',
|
|
@@ -4664,5 +4818,6 @@ sessionId: "Fwua8kGB6",
|
|
|
4664
4818
|
otherAttendees: undefined
|
|
4665
4819
|
},
|
|
4666
4820
|
isTranscribing: false,
|
|
4821
|
+
internalUrl: 'https://wp-staff-gateway.wealth-platform.uat.ali.cloud.cn.hsbc/meeting-ui/OHB/CN/HSBC?chnlID=OHB&locale=zh_CN&chnlCC=CN&chnlGMC=HSBC&targetFunc=supervisorMeeting&sourceFunc=rmMeeting'
|
|
4667
4822
|
}
|
|
4668
4823
|
export default Video
|