react_hsbc_teller 0.4.7 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/af86cbfc6e2e5f93fbf4d1c5211275d6.png +0 -0
- package/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/assets/img/Face_recognition.png +0 -0
- package/packages/assets/img/Projection_screen.png +0 -0
- package/packages/assets/img/huazhonghua.png +0 -0
- package/packages/assets/img/icon_Mute.png +0 -0
- package/packages/assets/img/icon_MuteOne.png +0 -0
- package/packages/assets/img/icon_invitation.png +0 -0
- package/packages/assets/img/icon_ocr.png +0 -0
- package/packages/assets/img/placeholder_bg.png +0 -0
- package/packages/pages/foot/foot.jsx +14 -6
- package/packages/pages/foot/foot.less +19 -11
- package/packages/pages/header/header.less +1 -1
- package/packages/pages/video/video.jsx +817 -688
- package/packages/pages/video/video.less +129 -53
|
@@ -77,7 +77,7 @@ class Video extends Component {
|
|
|
77
77
|
videoFiveName: '',
|
|
78
78
|
videoSixName: '',
|
|
79
79
|
videoSevenName: '',
|
|
80
|
-
videoEightName:'',
|
|
80
|
+
videoEightName: '',
|
|
81
81
|
videoTenName: '',
|
|
82
82
|
videoNineName: '',
|
|
83
83
|
videoTwelveName: '',
|
|
@@ -96,16 +96,21 @@ class Video extends Component {
|
|
|
96
96
|
voiceVideoNine: false,
|
|
97
97
|
voiceVideoTen: false,
|
|
98
98
|
voiceVideoEleven: false,
|
|
99
|
-
voiceVideoTwelve: false
|
|
99
|
+
voiceVideoTwelve: false,
|
|
100
|
+
cameraList: [],
|
|
101
|
+
microphoneList: [],
|
|
102
|
+
isModalVisibleInspection: false,
|
|
103
|
+
cameraValue: '',
|
|
104
|
+
microphoneValue: ''
|
|
100
105
|
};
|
|
101
106
|
// eslint-disable-next-line no-undef
|
|
102
107
|
test_controller = '';
|
|
103
|
-
|
|
104
|
-
componentDidMount() {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
};
|
|
108
|
+
|
|
109
|
+
componentDidMount() {
|
|
110
|
+
window.onbeforeunload = () => {
|
|
111
|
+
this.finishSession()
|
|
112
|
+
}
|
|
113
|
+
};
|
|
109
114
|
|
|
110
115
|
/**
|
|
111
116
|
* 创建房间成功后回调后台
|
|
@@ -167,7 +172,7 @@ componentDidMount() {
|
|
|
167
172
|
}
|
|
168
173
|
} catch (err) {
|
|
169
174
|
console.error(err);
|
|
170
|
-
this.roomCallBack(2,'签名失败')
|
|
175
|
+
this.roomCallBack(2, '签名失败')
|
|
171
176
|
}
|
|
172
177
|
};
|
|
173
178
|
handleEdit = () => {
|
|
@@ -453,12 +458,12 @@ componentDidMount() {
|
|
|
453
458
|
name: this.state.videoTwelveName
|
|
454
459
|
})
|
|
455
460
|
}
|
|
456
|
-
if(list.length > 0) {
|
|
457
|
-
if(val == 'ocr') {
|
|
461
|
+
if (list.length > 0) {
|
|
462
|
+
if (val == 'ocr') {
|
|
458
463
|
this.setState({
|
|
459
464
|
clickedOcr: true
|
|
460
465
|
})
|
|
461
|
-
} else if(val == 'facial'){
|
|
466
|
+
} else if (val == 'facial') {
|
|
462
467
|
this.setState({
|
|
463
468
|
clickedFacial: true
|
|
464
469
|
})
|
|
@@ -473,21 +478,21 @@ componentDidMount() {
|
|
|
473
478
|
// 人脸识别
|
|
474
479
|
facialRecognition = () => {
|
|
475
480
|
if (this.isFileSuccuse()) {
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
481
|
+
this.setState({
|
|
482
|
+
faceCustomerType: 1,
|
|
483
|
+
titleModal: '人脸识别'
|
|
484
|
+
})
|
|
485
|
+
this.selectCustomer('facial')
|
|
486
|
+
}
|
|
482
487
|
};
|
|
483
488
|
ocrClick = () => {
|
|
484
489
|
if (this.isFileSuccuse()) {
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
490
|
+
this.setState({
|
|
491
|
+
faceCustomerType: 2,
|
|
492
|
+
titleModal: 'OCR识别'
|
|
493
|
+
})
|
|
494
|
+
this.selectCustomer('ocr')
|
|
495
|
+
}
|
|
491
496
|
};
|
|
492
497
|
endSessionValue = () => {
|
|
493
498
|
this.test_controller.LeaveRoom()
|
|
@@ -496,211 +501,211 @@ componentDidMount() {
|
|
|
496
501
|
pictureInPicture = () => {
|
|
497
502
|
let interval
|
|
498
503
|
if (this.isFileSuccuse()) {
|
|
499
|
-
if(this.state.isPictureInPicture){
|
|
504
|
+
if (this.state.isPictureInPicture) {
|
|
500
505
|
document.exitPictureInPicture()
|
|
501
506
|
} else {
|
|
502
507
|
const list = []
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
508
|
+
if (document.getElementById('video1').name) {
|
|
509
|
+
list.push({
|
|
510
|
+
name: 'video1',
|
|
511
|
+
title: this.state.videoOneName
|
|
512
|
+
})
|
|
513
|
+
}
|
|
514
|
+
if (document.getElementById('publish_video1').name) {
|
|
515
|
+
list.push({
|
|
516
|
+
name: 'publish_video1',
|
|
517
|
+
title: '坐席'
|
|
518
|
+
})
|
|
519
|
+
}
|
|
520
|
+
if (document.getElementById('video2').name) {
|
|
521
|
+
list.push({
|
|
522
|
+
name: 'video2',
|
|
523
|
+
title: this.state.videoTwoName
|
|
524
|
+
})
|
|
525
|
+
}
|
|
526
|
+
if (document.getElementById('video3').name) {
|
|
527
|
+
list.push({
|
|
528
|
+
name: 'video3',
|
|
529
|
+
title: this.state.videoThreeName
|
|
530
|
+
})
|
|
531
|
+
}
|
|
532
|
+
if (document.getElementById('video4').name) {
|
|
533
|
+
list.push({
|
|
534
|
+
name: 'video4',
|
|
535
|
+
title: this.state.videoFourName
|
|
536
|
+
})
|
|
537
|
+
}
|
|
538
|
+
if (document.getElementById('video5').name) {
|
|
539
|
+
list.push({
|
|
540
|
+
name: 'video5',
|
|
541
|
+
title: this.state.videoFiveName
|
|
542
|
+
})
|
|
543
|
+
}
|
|
544
|
+
if (document.getElementById('video6').name) {
|
|
545
|
+
list.push({
|
|
546
|
+
name: 'video6',
|
|
547
|
+
title: this.state.videoSixName
|
|
548
|
+
})
|
|
549
|
+
}
|
|
545
550
|
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
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
|
-
}
|
|
582
|
-
console.log(list)
|
|
583
|
-
const width = 640;
|
|
584
|
-
const height = 360 * list.length;
|
|
585
|
-
const canvas = document.createElement('canvas');
|
|
586
|
-
const cobj = canvas.getContext('2d'); // 获取绘图环境
|
|
587
|
-
canvas.width = width;
|
|
588
|
-
canvas.height = height;
|
|
589
|
-
|
|
590
|
-
interval = setInterval(() => {
|
|
591
|
-
cobj.clearRect(0, 0, width, height);
|
|
592
|
-
for(let i=0;i<list.length;i++){
|
|
593
|
-
|
|
594
|
-
let videoId = list[i].name;
|
|
595
|
-
let videoDiv = document.getElementById(videoId);
|
|
596
|
-
let videoWidth = videoDiv.videoWidth;
|
|
597
|
-
let videoHeight = videoDiv.videoHeight;
|
|
598
|
-
let newVideoWidth = 640;
|
|
599
|
-
let newVideoHeight = 360;
|
|
600
|
-
if (videoHeight * 640 / videoWidth > 360) {
|
|
601
|
-
newVideoWidth = videoWidth * 360 / videoHeight;
|
|
602
|
-
} else {
|
|
603
|
-
newVideoHeight = videoHeight * 640 / videoWidth;
|
|
551
|
+
if (document.getElementById('video7').name) {
|
|
552
|
+
list.push({
|
|
553
|
+
name: 'video7',
|
|
554
|
+
title: this.state.videoSevenName
|
|
555
|
+
})
|
|
556
|
+
}
|
|
557
|
+
if (document.getElementById('video8').name) {
|
|
558
|
+
list.push({
|
|
559
|
+
name: 'video8',
|
|
560
|
+
title: this.state.videoEightName
|
|
561
|
+
})
|
|
562
|
+
}
|
|
563
|
+
if (document.getElementById('video9').name) {
|
|
564
|
+
list.push({
|
|
565
|
+
name: 'video9',
|
|
566
|
+
title: this.state.videoNineName
|
|
567
|
+
})
|
|
604
568
|
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
cobj.lineTo( 0, 360 * list.length);
|
|
623
|
-
cobj.closePath(); //闭合路径
|
|
624
|
-
cobj.lineWidth = 5; //线的边框为10像素
|
|
625
|
-
cobj.strokeStyle = '#d9363e';
|
|
626
|
-
cobj.stroke(); //绘制定义的图形
|
|
627
|
-
|
|
628
|
-
//下边框
|
|
629
|
-
cobj.beginPath();
|
|
630
|
-
cobj.moveTo( 0, 0);
|
|
631
|
-
cobj.lineTo( 640, 0);
|
|
632
|
-
cobj.closePath(); //闭合路径
|
|
633
|
-
cobj.lineWidth = 5; //线的边框为10像素
|
|
634
|
-
cobj.strokeStyle = '#d9363e';
|
|
635
|
-
cobj.stroke(); //绘制定义的图形
|
|
636
|
-
|
|
637
|
-
//右边框
|
|
638
|
-
cobj.beginPath();
|
|
639
|
-
cobj.moveTo( 640, 360 * list.length);
|
|
640
|
-
cobj.lineTo( 640, 0);
|
|
641
|
-
cobj.closePath(); //闭合路径
|
|
642
|
-
cobj.lineWidth = 5; //线的边框为10像素
|
|
643
|
-
cobj.strokeStyle = '#d9363e';
|
|
644
|
-
cobj.stroke(); //绘制定义的图形
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
//上边框
|
|
648
|
-
cobj.beginPath();
|
|
649
|
-
cobj.moveTo( 0, 360 * list.length);
|
|
650
|
-
cobj.lineTo( 640, 360 * list.length);
|
|
651
|
-
cobj.closePath(); //闭合路径
|
|
652
|
-
cobj.lineWidth = 5; //线的边框为10像素
|
|
653
|
-
cobj.strokeStyle = '#d9363e';
|
|
654
|
-
cobj.stroke(); //绘制定义的图形
|
|
655
|
-
|
|
656
|
-
// let sid = document.getElementById(list[i].name).name
|
|
657
|
-
// let stream = this.test_controller.GetMediaInfo(sid).audio_
|
|
658
|
-
// let acc = new AudioContext()
|
|
659
|
-
// let mic = acc.createMediaStreamSource(stream)
|
|
660
|
-
// let analyser = acc.createAnalyser()
|
|
661
|
-
// analyser.fftSize = 256
|
|
662
|
-
// mic.connect(analyser)
|
|
663
|
-
// aou(analyser)
|
|
664
|
-
// let microphoneSize = this.props.microphoneSize
|
|
665
|
-
// var img = document.getElementById("icon_huatong");
|
|
666
|
-
// cobj.drawImage(img, 600, 360 * (i + 1) - 60, microphoneSize, microphoneSize);
|
|
667
|
-
// function aou(analyser){
|
|
668
|
-
// let dataArray = new Uint8Array(analyser.frequencyBinCount);
|
|
669
|
-
// analyser.getByteFrequencyData(dataArray);
|
|
670
|
-
// let step = Math.round(dataArray.length / 60); //采样步长
|
|
671
|
-
// // 以画布左上角为坐标原点
|
|
672
|
-
// let drawArea = {
|
|
673
|
-
// x1: 28/50 * microphoneSize + 600, // 波动范围右下角的点坐标
|
|
674
|
-
// y1: 25/50 * microphoneSize + 360 * (i + 1) - 60,
|
|
675
|
-
// x2: 22/50 * microphoneSize + 600, // 波动范围左上角的点坐标
|
|
676
|
-
// y2: 10/50 * microphoneSize + 360 * (i + 1) - 60,
|
|
677
|
-
// }
|
|
678
|
-
|
|
679
|
-
// for (var j = 0; j < 40; j++) {
|
|
680
|
-
// let energy = (dataArray[step * j] / 256.0) * 80;
|
|
681
|
-
// cobj.beginPath();
|
|
682
|
-
// cobj.fillStyle = "#0AE544";
|
|
683
|
-
// const { x1,y1,x2,y2} = drawArea
|
|
684
|
-
// let width = x1-x2;
|
|
685
|
-
// let height = (energy>20?(energy-20):0) * (y1 - y2 ) / 70
|
|
686
|
-
// let startX = x2 // 绘制起始点x
|
|
687
|
-
// let startY = y1 - height // 绘制起始点y
|
|
688
|
-
// cobj.fillRect(startX, startY, width, height )
|
|
689
|
-
// }
|
|
690
|
-
// requestAnimationFrame(aou.bind(this, analyser));
|
|
691
|
-
|
|
692
|
-
// }
|
|
569
|
+
if (document.getElementById('video10').name) {
|
|
570
|
+
list.push({
|
|
571
|
+
name: 'video10',
|
|
572
|
+
title: this.state.videoTenName
|
|
573
|
+
})
|
|
574
|
+
}
|
|
575
|
+
if (document.getElementById('video11').name) {
|
|
576
|
+
list.push({
|
|
577
|
+
name: 'video11',
|
|
578
|
+
title: this.state.videoElevenName
|
|
579
|
+
})
|
|
580
|
+
}
|
|
581
|
+
if (document.getElementById('video12').name) {
|
|
582
|
+
list.push({
|
|
583
|
+
name: 'video12',
|
|
584
|
+
title: this.state.videoTwelveName
|
|
585
|
+
})
|
|
693
586
|
}
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
587
|
+
console.log(list)
|
|
588
|
+
const width = 640;
|
|
589
|
+
const height = 360 * list.length;
|
|
590
|
+
const canvas = document.createElement('canvas');
|
|
591
|
+
const cobj = canvas.getContext('2d'); // 获取绘图环境
|
|
592
|
+
canvas.width = width;
|
|
593
|
+
canvas.height = height;
|
|
594
|
+
|
|
595
|
+
interval = setInterval(() => {
|
|
596
|
+
cobj.clearRect(0, 0, width, height);
|
|
597
|
+
for (let i = 0; i < list.length; i++) {
|
|
598
|
+
|
|
599
|
+
let videoId = list[i].name;
|
|
600
|
+
let videoDiv = document.getElementById(videoId);
|
|
601
|
+
let videoWidth = videoDiv.videoWidth;
|
|
602
|
+
let videoHeight = videoDiv.videoHeight;
|
|
603
|
+
let newVideoWidth = 640;
|
|
604
|
+
let newVideoHeight = 360;
|
|
605
|
+
if (videoHeight * 640 / videoWidth > 360) {
|
|
606
|
+
newVideoWidth = videoWidth * 360 / videoHeight;
|
|
607
|
+
} else {
|
|
608
|
+
newVideoHeight = videoHeight * 640 / videoWidth;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
cobj.drawImage(videoDiv, (640 - newVideoWidth) / 2, 360 * i, newVideoWidth, newVideoHeight);
|
|
612
|
+
cobj.beginPath();
|
|
613
|
+
cobj.strokeStyle = this.props.titleColor;
|
|
614
|
+
cobj.fillStyle = this.props.titleBackground;
|
|
615
|
+
cobj.fillRect(0, 360 * (i + 1) - 60, 300, 60)
|
|
616
|
+
cobj.fill();
|
|
617
|
+
cobj.stroke();
|
|
618
|
+
cobj.beginPath();
|
|
619
|
+
cobj.font = "28px auto";
|
|
620
|
+
cobj.textAlign = 'center';
|
|
621
|
+
cobj.lineWidth = 1;
|
|
622
|
+
cobj.strokeText(list[i].title, 150, 360 * (i + 1) - 20);
|
|
623
|
+
cobj.stroke();
|
|
624
|
+
//左边框
|
|
625
|
+
cobj.beginPath();
|
|
626
|
+
cobj.moveTo(0, 0);
|
|
627
|
+
cobj.lineTo(0, 360 * list.length);
|
|
628
|
+
cobj.closePath(); //闭合路径
|
|
629
|
+
cobj.lineWidth = 5; //线的边框为10像素
|
|
630
|
+
cobj.strokeStyle = '#d9363e';
|
|
631
|
+
cobj.stroke(); //绘制定义的图形
|
|
632
|
+
|
|
633
|
+
//下边框
|
|
634
|
+
cobj.beginPath();
|
|
635
|
+
cobj.moveTo(0, 0);
|
|
636
|
+
cobj.lineTo(640, 0);
|
|
637
|
+
cobj.closePath(); //闭合路径
|
|
638
|
+
cobj.lineWidth = 5; //线的边框为10像素
|
|
639
|
+
cobj.strokeStyle = '#d9363e';
|
|
640
|
+
cobj.stroke(); //绘制定义的图形
|
|
641
|
+
|
|
642
|
+
//右边框
|
|
643
|
+
cobj.beginPath();
|
|
644
|
+
cobj.moveTo(640, 360 * list.length);
|
|
645
|
+
cobj.lineTo(640, 0);
|
|
646
|
+
cobj.closePath(); //闭合路径
|
|
647
|
+
cobj.lineWidth = 5; //线的边框为10像素
|
|
648
|
+
cobj.strokeStyle = '#d9363e';
|
|
649
|
+
cobj.stroke(); //绘制定义的图形
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
//上边框
|
|
653
|
+
cobj.beginPath();
|
|
654
|
+
cobj.moveTo(0, 360 * list.length);
|
|
655
|
+
cobj.lineTo(640, 360 * list.length);
|
|
656
|
+
cobj.closePath(); //闭合路径
|
|
657
|
+
cobj.lineWidth = 5; //线的边框为10像素
|
|
658
|
+
cobj.strokeStyle = '#d9363e';
|
|
659
|
+
cobj.stroke(); //绘制定义的图形
|
|
660
|
+
|
|
661
|
+
// let sid = document.getElementById(list[i].name).name
|
|
662
|
+
// let stream = this.test_controller.GetMediaInfo(sid).audio_
|
|
663
|
+
// let acc = new AudioContext()
|
|
664
|
+
// let mic = acc.createMediaStreamSource(stream)
|
|
665
|
+
// let analyser = acc.createAnalyser()
|
|
666
|
+
// analyser.fftSize = 256
|
|
667
|
+
// mic.connect(analyser)
|
|
668
|
+
// aou(analyser)
|
|
669
|
+
// let microphoneSize = this.props.microphoneSize
|
|
670
|
+
// var img = document.getElementById("icon_huatong");
|
|
671
|
+
// cobj.drawImage(img, 600, 360 * (i + 1) - 60, microphoneSize, microphoneSize);
|
|
672
|
+
// function aou(analyser){
|
|
673
|
+
// let dataArray = new Uint8Array(analyser.frequencyBinCount);
|
|
674
|
+
// analyser.getByteFrequencyData(dataArray);
|
|
675
|
+
// let step = Math.round(dataArray.length / 60); //采样步长
|
|
676
|
+
// // 以画布左上角为坐标原点
|
|
677
|
+
// let drawArea = {
|
|
678
|
+
// x1: 28/50 * microphoneSize + 600, // 波动范围右下角的点坐标
|
|
679
|
+
// y1: 25/50 * microphoneSize + 360 * (i + 1) - 60,
|
|
680
|
+
// x2: 22/50 * microphoneSize + 600, // 波动范围左上角的点坐标
|
|
681
|
+
// y2: 10/50 * microphoneSize + 360 * (i + 1) - 60,
|
|
682
|
+
// }
|
|
683
|
+
|
|
684
|
+
// for (var j = 0; j < 40; j++) {
|
|
685
|
+
// let energy = (dataArray[step * j] / 256.0) * 80;
|
|
686
|
+
// cobj.beginPath();
|
|
687
|
+
// cobj.fillStyle = "#0AE544";
|
|
688
|
+
// const { x1,y1,x2,y2} = drawArea
|
|
689
|
+
// let width = x1-x2;
|
|
690
|
+
// let height = (energy>20?(energy-20):0) * (y1 - y2 ) / 70
|
|
691
|
+
// let startX = x2 // 绘制起始点x
|
|
692
|
+
// let startY = y1 - height // 绘制起始点y
|
|
693
|
+
// cobj.fillRect(startX, startY, width, height )
|
|
694
|
+
// }
|
|
695
|
+
// requestAnimationFrame(aou.bind(this, analyser));
|
|
696
|
+
|
|
697
|
+
// }
|
|
698
|
+
}
|
|
699
|
+
}, 100);
|
|
700
|
+
const captureStream = canvas.captureStream();
|
|
701
|
+
const mix_stream = new MediaStream(captureStream);
|
|
702
|
+
pictureInPictureVideo = document.getElementById('mixedvideo');
|
|
703
|
+
pictureInPictureVideo.srcObject = mix_stream;
|
|
704
|
+
pictureInPictureVideo.onloadedmetadata = () => {
|
|
705
|
+
pictureInPictureVideo.requestPictureInPicture();
|
|
706
|
+
};
|
|
702
707
|
}
|
|
703
|
-
|
|
708
|
+
|
|
704
709
|
|
|
705
710
|
pictureInPictureVideo.addEventListener('enterpictureinpicture', (event) => {
|
|
706
711
|
//可获取画中画窗口的一些数据,如宽高等
|
|
@@ -721,14 +726,14 @@ componentDidMount() {
|
|
|
721
726
|
});
|
|
722
727
|
}
|
|
723
728
|
};
|
|
724
|
-
roomCallBack=(type,manege) =>{
|
|
729
|
+
roomCallBack = (type, manege) => {
|
|
725
730
|
if (this.state.sessionId) {
|
|
726
731
|
this.props.joinRoomCallback({
|
|
727
732
|
type: type,
|
|
728
733
|
errorManage: manege,
|
|
729
734
|
data: {}
|
|
730
735
|
})
|
|
731
|
-
}else {
|
|
736
|
+
} else {
|
|
732
737
|
this.props.createRoomCallback({
|
|
733
738
|
type: type,
|
|
734
739
|
errorManage: manege,
|
|
@@ -736,13 +741,13 @@ componentDidMount() {
|
|
|
736
741
|
})
|
|
737
742
|
}
|
|
738
743
|
}
|
|
739
|
-
tabTitlesClick = (value,type) =>{
|
|
744
|
+
tabTitlesClick = (value, type) => {
|
|
740
745
|
const { tabTitles } = this.state;
|
|
741
|
-
if(type == 'add') {
|
|
746
|
+
if (type == 'add') {
|
|
742
747
|
tabTitles.unshift(value)
|
|
743
|
-
}else {
|
|
744
|
-
this.state.tabTitles.map((item,index)=>{
|
|
745
|
-
if(item.value == value) {
|
|
748
|
+
} else {
|
|
749
|
+
this.state.tabTitles.map((item, index) => {
|
|
750
|
+
if (item.value == value) {
|
|
746
751
|
tabTitles.splice(index, 1)
|
|
747
752
|
this.setState({
|
|
748
753
|
tabTitles
|
|
@@ -750,7 +755,7 @@ componentDidMount() {
|
|
|
750
755
|
}
|
|
751
756
|
})
|
|
752
757
|
}
|
|
753
|
-
if(this.state.tabTitles.length >0) {
|
|
758
|
+
if (this.state.tabTitles.length > 0) {
|
|
754
759
|
this.setState({
|
|
755
760
|
isSelect: this.state.tabTitles[0].value
|
|
756
761
|
})
|
|
@@ -792,194 +797,194 @@ componentDidMount() {
|
|
|
792
797
|
} else if (Mival.typeId == 1218) {
|
|
793
798
|
if (Mival.sessionId == this.state.sessionId) {
|
|
794
799
|
// 1-开启,2-关闭
|
|
795
|
-
if(Mival.type == 1) {
|
|
800
|
+
if (Mival.type == 1) {
|
|
796
801
|
this.switchExternal()
|
|
797
|
-
} else if(Mival.type == 2) {
|
|
798
|
-
this.tabTitlesClick('RMWhiteboard','delect')
|
|
799
|
-
if(this.state.isSharedScreen) {
|
|
802
|
+
} else if (Mival.type == 2) {
|
|
803
|
+
this.tabTitlesClick('RMWhiteboard', 'delect')
|
|
804
|
+
if (this.state.isSharedScreen) {
|
|
800
805
|
this.setState({
|
|
801
806
|
isWhiteboard: false,
|
|
802
807
|
})
|
|
803
|
-
}else {
|
|
808
|
+
} else {
|
|
804
809
|
this.test_controller.UnPublish(document.getElementById('video20').name)
|
|
805
810
|
this.setState({
|
|
806
811
|
isWhiteboard: false,
|
|
807
812
|
})
|
|
808
813
|
}
|
|
809
814
|
}
|
|
810
|
-
|
|
815
|
+
|
|
811
816
|
}
|
|
812
|
-
|
|
817
|
+
|
|
813
818
|
} 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) {
|
|
819
|
+
if (Mival.data.sessionId == this.state.sessionId) {
|
|
820
|
+
if (Mival.data.userId == this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid) {
|
|
821
|
+
if (Mival.muteStatus == 0) {
|
|
817
822
|
this.setState({
|
|
818
823
|
voiceVideoOne: false
|
|
819
824
|
})
|
|
820
|
-
} else if(Mival.muteStatus == 1) {
|
|
825
|
+
} else if (Mival.muteStatus == 1) {
|
|
821
826
|
this.setState({
|
|
822
827
|
voiceVideoOne: true
|
|
823
828
|
})
|
|
824
829
|
}
|
|
825
|
-
|
|
830
|
+
|
|
826
831
|
}
|
|
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) {
|
|
832
|
+
if (Mival.data.userId == (document.getElementById("feedId2").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid : '')) {
|
|
833
|
+
if (Mival.muteStatus == 0) {
|
|
829
834
|
this.setState({
|
|
830
835
|
voiceVideoTwo: false
|
|
831
836
|
})
|
|
832
|
-
} else if(Mival.muteStatus == 1) {
|
|
837
|
+
} else if (Mival.muteStatus == 1) {
|
|
833
838
|
this.setState({
|
|
834
839
|
voiceVideoTwo: true
|
|
835
840
|
})
|
|
836
841
|
}
|
|
837
|
-
|
|
842
|
+
|
|
838
843
|
}
|
|
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) {
|
|
844
|
+
if (Mival.data.userId == (document.getElementById("feedId3").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid : '')) {
|
|
845
|
+
if (Mival.muteStatus == 0) {
|
|
841
846
|
this.setState({
|
|
842
847
|
voiceVideoThree: false
|
|
843
848
|
})
|
|
844
|
-
} else if(Mival.muteStatus == 1) {
|
|
849
|
+
} else if (Mival.muteStatus == 1) {
|
|
845
850
|
this.setState({
|
|
846
851
|
voiceVideoThree: true
|
|
847
852
|
})
|
|
848
853
|
}
|
|
849
|
-
|
|
854
|
+
|
|
850
855
|
}
|
|
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) {
|
|
856
|
+
if (Mival.data.userId == (document.getElementById("feedId4").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid : '')) {
|
|
857
|
+
if (Mival.muteStatus == 0) {
|
|
853
858
|
this.setState({
|
|
854
859
|
voiceVideoFour: false
|
|
855
860
|
})
|
|
856
|
-
} else if(Mival.muteStatus == 1) {
|
|
861
|
+
} else if (Mival.muteStatus == 1) {
|
|
857
862
|
this.setState({
|
|
858
863
|
voiceVideoFour: true
|
|
859
864
|
})
|
|
860
865
|
}
|
|
861
|
-
|
|
866
|
+
|
|
862
867
|
}
|
|
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) {
|
|
868
|
+
if (Mival.data.userId == (document.getElementById("feedId5").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid : '')) {
|
|
869
|
+
if (Mival.muteStatus == 0) {
|
|
865
870
|
this.setState({
|
|
866
871
|
voiceVideoFive: false
|
|
867
872
|
})
|
|
868
|
-
} else if(Mival.muteStatus == 1) {
|
|
873
|
+
} else if (Mival.muteStatus == 1) {
|
|
869
874
|
this.setState({
|
|
870
875
|
voiceVideoFive: true
|
|
871
876
|
})
|
|
872
877
|
}
|
|
873
|
-
|
|
878
|
+
|
|
874
879
|
}
|
|
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) {
|
|
880
|
+
if (Mival.data.userId == (document.getElementById("feedId6").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid : '')) {
|
|
881
|
+
if (Mival.muteStatus == 0) {
|
|
877
882
|
this.setState({
|
|
878
883
|
voiceVideoSix: false
|
|
879
884
|
})
|
|
880
|
-
} else if(Mival.muteStatus == 1) {
|
|
885
|
+
} else if (Mival.muteStatus == 1) {
|
|
881
886
|
this.setState({
|
|
882
887
|
voiceVideoSix: true
|
|
883
888
|
})
|
|
884
889
|
}
|
|
885
|
-
|
|
890
|
+
|
|
886
891
|
}
|
|
887
892
|
|
|
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) {
|
|
893
|
+
if (Mival.data.userId == (document.getElementById("feedId6").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid : '')) {
|
|
894
|
+
if (Mival.muteStatus == 0) {
|
|
890
895
|
this.setState({
|
|
891
896
|
voiceVideoSix: false
|
|
892
897
|
})
|
|
893
|
-
} else if(Mival.muteStatus == 1) {
|
|
898
|
+
} else if (Mival.muteStatus == 1) {
|
|
894
899
|
this.setState({
|
|
895
900
|
voiceVideoSix: true
|
|
896
901
|
})
|
|
897
902
|
}
|
|
898
|
-
|
|
903
|
+
|
|
899
904
|
}
|
|
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) {
|
|
905
|
+
if (Mival.data.userId == (document.getElementById("feedId6").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid : '')) {
|
|
906
|
+
if (Mival.muteStatus == 0) {
|
|
902
907
|
this.setState({
|
|
903
908
|
voiceVideoSix: false
|
|
904
909
|
})
|
|
905
|
-
} else if(Mival.muteStatus == 1) {
|
|
910
|
+
} else if (Mival.muteStatus == 1) {
|
|
906
911
|
this.setState({
|
|
907
912
|
voiceVideoSix: true
|
|
908
913
|
})
|
|
909
914
|
}
|
|
910
|
-
|
|
915
|
+
|
|
911
916
|
}
|
|
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) {
|
|
917
|
+
if (Mival.data.userId == (document.getElementById("feedId7").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid : '')) {
|
|
918
|
+
if (Mival.muteStatus == 0) {
|
|
914
919
|
this.setState({
|
|
915
920
|
voiceVideoSeven: false
|
|
916
921
|
})
|
|
917
|
-
} else if(Mival.muteStatus == 1) {
|
|
922
|
+
} else if (Mival.muteStatus == 1) {
|
|
918
923
|
this.setState({
|
|
919
924
|
voiceVideoSeven: true
|
|
920
925
|
})
|
|
921
926
|
}
|
|
922
|
-
|
|
927
|
+
|
|
923
928
|
}
|
|
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) {
|
|
929
|
+
if (Mival.data.userId == (document.getElementById("feedId8").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid : '')) {
|
|
930
|
+
if (Mival.muteStatus == 0) {
|
|
926
931
|
this.setState({
|
|
927
932
|
voiceVideoEight: false
|
|
928
933
|
})
|
|
929
|
-
} else if(Mival.muteStatus == 1) {
|
|
934
|
+
} else if (Mival.muteStatus == 1) {
|
|
930
935
|
this.setState({
|
|
931
936
|
voiceVideoEight: true
|
|
932
937
|
})
|
|
933
938
|
}
|
|
934
|
-
|
|
939
|
+
|
|
935
940
|
}
|
|
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) {
|
|
941
|
+
if (Mival.data.userId == (document.getElementById("feedId9").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid : '')) {
|
|
942
|
+
if (Mival.muteStatus == 0) {
|
|
938
943
|
this.setState({
|
|
939
944
|
voiceVideoNine: false
|
|
940
945
|
})
|
|
941
|
-
} else if(Mival.muteStatus == 1) {
|
|
946
|
+
} else if (Mival.muteStatus == 1) {
|
|
942
947
|
this.setState({
|
|
943
948
|
voiceVideoNine: true
|
|
944
949
|
})
|
|
945
950
|
}
|
|
946
|
-
|
|
951
|
+
|
|
947
952
|
}
|
|
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) {
|
|
953
|
+
if (Mival.data.userId == (document.getElementById("feedId10").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid : '')) {
|
|
954
|
+
if (Mival.muteStatus == 0) {
|
|
950
955
|
this.setState({
|
|
951
956
|
voiceVideoTen: false
|
|
952
957
|
})
|
|
953
|
-
} else if(Mival.muteStatus == 1) {
|
|
958
|
+
} else if (Mival.muteStatus == 1) {
|
|
954
959
|
this.setState({
|
|
955
960
|
voiceVideoTen: true
|
|
956
961
|
})
|
|
957
962
|
}
|
|
958
|
-
|
|
963
|
+
|
|
959
964
|
}
|
|
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) {
|
|
965
|
+
if (Mival.data.userId == (document.getElementById("feedId11").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid : '')) {
|
|
966
|
+
if (Mival.muteStatus == 0) {
|
|
962
967
|
this.setState({
|
|
963
968
|
voiceVideoEleven: false
|
|
964
969
|
})
|
|
965
|
-
} else if(Mival.muteStatus == 1) {
|
|
970
|
+
} else if (Mival.muteStatus == 1) {
|
|
966
971
|
this.setState({
|
|
967
972
|
voiceVideoEleven: true
|
|
968
973
|
})
|
|
969
974
|
}
|
|
970
|
-
|
|
975
|
+
|
|
971
976
|
}
|
|
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) {
|
|
977
|
+
if (Mival.data.userId == (document.getElementById("feedId12").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid : '')) {
|
|
978
|
+
if (Mival.muteStatus == 0) {
|
|
974
979
|
this.setState({
|
|
975
980
|
voiceVideoTwelve: false
|
|
976
981
|
})
|
|
977
|
-
} else if(Mival.muteStatus == 1) {
|
|
982
|
+
} else if (Mival.muteStatus == 1) {
|
|
978
983
|
this.setState({
|
|
979
984
|
voiceVideoTwelve: true
|
|
980
985
|
})
|
|
981
986
|
}
|
|
982
|
-
|
|
987
|
+
|
|
983
988
|
}
|
|
984
989
|
}
|
|
985
990
|
}
|
|
@@ -990,7 +995,7 @@ componentDidMount() {
|
|
|
990
995
|
type: '2',
|
|
991
996
|
sigType: 1
|
|
992
997
|
};
|
|
993
|
-
|
|
998
|
+
|
|
994
999
|
this.test_controller.GetDevices();
|
|
995
1000
|
// 获取设备成功
|
|
996
1001
|
this.test_controller.OnGetDevicesSuccess = (devicesInfo) => {
|
|
@@ -1043,13 +1048,28 @@ componentDidMount() {
|
|
|
1043
1048
|
obj2.push(b)
|
|
1044
1049
|
}
|
|
1045
1050
|
}
|
|
1046
|
-
this.
|
|
1051
|
+
this.setState({
|
|
1052
|
+
cameraList: obj,
|
|
1053
|
+
microphoneList: obj1,
|
|
1054
|
+
})
|
|
1055
|
+
if (!this.state.appId) {
|
|
1056
|
+
this.mpaasSig(data);
|
|
1057
|
+
this.setState({
|
|
1058
|
+
cameraValue: obj[0].actionid,
|
|
1059
|
+
microphoneValue: obj1[0].actionid
|
|
1060
|
+
})
|
|
1061
|
+
} else {
|
|
1062
|
+
this.setState({
|
|
1063
|
+
isModalVisibleInspection: true
|
|
1064
|
+
})
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1047
1067
|
};
|
|
1048
1068
|
// 获取设备失败
|
|
1049
1069
|
this.test_controller.OnGetDevicesFailed = (code, msg) => {
|
|
1050
1070
|
console.log('获取设备失败', code, msg)
|
|
1051
1071
|
message.success('获取设备失败,请检查摄像头设备是否可用或是否禁用摄像头')
|
|
1052
|
-
this.roomCallBack(2,'获取失败失败')
|
|
1072
|
+
this.roomCallBack(2, '获取失败失败')
|
|
1053
1073
|
};
|
|
1054
1074
|
// 建立连接成功
|
|
1055
1075
|
this.test_controller.OnConnectOK = () => {
|
|
@@ -1058,7 +1078,7 @@ componentDidMount() {
|
|
|
1058
1078
|
};
|
|
1059
1079
|
this.test_controller.OnConnectFailed = (code, msg) => {
|
|
1060
1080
|
console.log('建立连接失败', code, msg)
|
|
1061
|
-
this.roomCallBack(2,'连接失败')
|
|
1081
|
+
this.roomCallBack(2, '连接失败')
|
|
1062
1082
|
};
|
|
1063
1083
|
// 断开连接回调
|
|
1064
1084
|
this.test_controller.OnConnectClose = (code, msg) => {
|
|
@@ -1072,7 +1092,7 @@ componentDidMount() {
|
|
|
1072
1092
|
// 初始化房间失败
|
|
1073
1093
|
this.test_controller.OnInitRoomConfigFail = (err_code, err_msg) => {
|
|
1074
1094
|
console.log('初始化房间失败', err_code, err_msg)
|
|
1075
|
-
this.roomCallBack(2,'初始化失败')
|
|
1095
|
+
this.roomCallBack(2, '初始化失败')
|
|
1076
1096
|
};
|
|
1077
1097
|
// 初始化成功回调
|
|
1078
1098
|
this.test_controller.OnInitRoomConfigOK = () => {
|
|
@@ -1098,7 +1118,7 @@ componentDidMount() {
|
|
|
1098
1118
|
// 创建房间失败
|
|
1099
1119
|
this.test_controller.OnCreateRoomFailed = (err_code, err_msg) => {
|
|
1100
1120
|
console.log('创建房间失败', err_code, err_msg)
|
|
1101
|
-
this.roomCallBack(2,'创建失败')
|
|
1121
|
+
this.roomCallBack(2, '创建失败')
|
|
1102
1122
|
};
|
|
1103
1123
|
// 初始化⾳视频成功
|
|
1104
1124
|
this.test_controller.OnMediaCallSucc = (sid) => {
|
|
@@ -1115,26 +1135,26 @@ componentDidMount() {
|
|
|
1115
1135
|
// 加入房间成功
|
|
1116
1136
|
this.test_controller.OnJoinRoomSucc = () => {
|
|
1117
1137
|
console.log('加入房间成功')
|
|
1118
|
-
this.roomCallBack(1,'')
|
|
1138
|
+
this.roomCallBack(1, '')
|
|
1119
1139
|
};
|
|
1120
1140
|
// 加入房间失败
|
|
1121
1141
|
this.test_controller.OnJoinRoomFailed = (err_code, err_msg) => {
|
|
1122
1142
|
console.log('加入房间失败', err_code, err_msg)
|
|
1123
|
-
this.roomCallBack(2,'加入失败')
|
|
1143
|
+
this.roomCallBack(2, '加入失败')
|
|
1124
1144
|
};
|
|
1125
1145
|
// 发布媒体流成功
|
|
1126
1146
|
this.test_controller.OnPublishSucc = (sid) => {
|
|
1127
1147
|
console.log('发布媒体流成功', sid)
|
|
1128
|
-
if(sid == document.getElementById('video20').name) {
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1148
|
+
if (sid == document.getElementById('video20').name) {
|
|
1149
|
+
callNimIM('sendCustomCmdMsg', {
|
|
1150
|
+
customId: this.state.imRoomId,
|
|
1151
|
+
content: JSON.stringify({
|
|
1152
|
+
'typeId': 2030,
|
|
1153
|
+
'sessionId': this.state.sessionId,
|
|
1154
|
+
'sharedScreen': 1,
|
|
1155
|
+
'tellerId': this.props.tellerAccount
|
|
1156
|
+
})
|
|
1157
|
+
});
|
|
1138
1158
|
}
|
|
1139
1159
|
};
|
|
1140
1160
|
// 发布媒体流失败
|
|
@@ -1157,22 +1177,22 @@ componentDidMount() {
|
|
|
1157
1177
|
// 推送“房间与会者列表”给新加⼊者
|
|
1158
1178
|
this.test_controller.OnRoomAttendanceList = (participants) => {
|
|
1159
1179
|
console.log('房间与会者列表', participants)
|
|
1160
|
-
participants.map((item,index)=>{
|
|
1161
|
-
if(item.uid != this.state.tellerAccount) {
|
|
1162
|
-
item.publish.map((itemOne,indexOne)=>{
|
|
1180
|
+
participants.map((item, index) => {
|
|
1181
|
+
if (item.uid != this.state.tellerAccount) {
|
|
1182
|
+
item.publish.map((itemOne, indexOne) => {
|
|
1163
1183
|
let array = this.state.roomCustomerList;
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
if(itemOne.tag == 'VIDEO_SOURCE_SCREEN') {
|
|
1184
|
+
let newArray = [...array];
|
|
1185
|
+
newArray.push({
|
|
1186
|
+
feedId: itemOne.feedId,
|
|
1187
|
+
uid: item.uid,
|
|
1188
|
+
tag: itemOne.tag
|
|
1189
|
+
});
|
|
1190
|
+
console.log(array, newArray, this.state.roomCustomerList);
|
|
1191
|
+
this.setState({
|
|
1192
|
+
roomCustomerList: newArray
|
|
1193
|
+
})
|
|
1194
|
+
let config_param
|
|
1195
|
+
if (itemOne.tag == 'VIDEO_SOURCE_SCREEN') {
|
|
1176
1196
|
config_param = {
|
|
1177
1197
|
subscribe_video_id: 'video21',
|
|
1178
1198
|
subscribe_audio_id: 'audio21',
|
|
@@ -1180,15 +1200,15 @@ componentDidMount() {
|
|
|
1180
1200
|
feedId_id: 'feedId21',
|
|
1181
1201
|
feedId: itemOne.feedId
|
|
1182
1202
|
}
|
|
1183
|
-
|
|
1203
|
+
|
|
1184
1204
|
this.tabTitlesClick(
|
|
1185
1205
|
{
|
|
1186
1206
|
value: 'customerScreen',
|
|
1187
1207
|
name: '客户投屏'
|
|
1188
|
-
},'add'
|
|
1208
|
+
}, 'add'
|
|
1189
1209
|
)
|
|
1190
|
-
}else {
|
|
1191
|
-
if(!document.getElementById('video1').name) {
|
|
1210
|
+
} else {
|
|
1211
|
+
if (!document.getElementById('video1').name) {
|
|
1192
1212
|
config_param = {
|
|
1193
1213
|
subscribe_video_id: 'video1',
|
|
1194
1214
|
subscribe_audio_id: 'audio1',
|
|
@@ -1197,7 +1217,7 @@ componentDidMount() {
|
|
|
1197
1217
|
feedId: itemOne.feedId
|
|
1198
1218
|
}
|
|
1199
1219
|
}
|
|
1200
|
-
else if(!document.getElementById('video2').name) {
|
|
1220
|
+
else if (!document.getElementById('video2').name) {
|
|
1201
1221
|
config_param = {
|
|
1202
1222
|
subscribe_video_id: 'video2',
|
|
1203
1223
|
subscribe_audio_id: 'audio2',
|
|
@@ -1206,7 +1226,7 @@ componentDidMount() {
|
|
|
1206
1226
|
feedId: itemOne.feedId
|
|
1207
1227
|
}
|
|
1208
1228
|
}
|
|
1209
|
-
else if(!document.getElementById('video3').name) {
|
|
1229
|
+
else if (!document.getElementById('video3').name) {
|
|
1210
1230
|
config_param = {
|
|
1211
1231
|
subscribe_video_id: 'video3',
|
|
1212
1232
|
subscribe_audio_id: 'audio3',
|
|
@@ -1215,7 +1235,7 @@ componentDidMount() {
|
|
|
1215
1235
|
feedId: itemOne.feedId
|
|
1216
1236
|
}
|
|
1217
1237
|
}
|
|
1218
|
-
else if(!document.getElementById('video4').name) {
|
|
1238
|
+
else if (!document.getElementById('video4').name) {
|
|
1219
1239
|
config_param = {
|
|
1220
1240
|
subscribe_video_id: 'video4',
|
|
1221
1241
|
subscribe_audio_id: 'audio4',
|
|
@@ -1224,7 +1244,7 @@ componentDidMount() {
|
|
|
1224
1244
|
feedId: itemOne.feedId
|
|
1225
1245
|
}
|
|
1226
1246
|
}
|
|
1227
|
-
else if(!document.getElementById('video5').name) {
|
|
1247
|
+
else if (!document.getElementById('video5').name) {
|
|
1228
1248
|
config_param = {
|
|
1229
1249
|
subscribe_video_id: 'video5',
|
|
1230
1250
|
subscribe_audio_id: 'audio5',
|
|
@@ -1233,7 +1253,7 @@ componentDidMount() {
|
|
|
1233
1253
|
feedId: itemOne.feedId
|
|
1234
1254
|
}
|
|
1235
1255
|
}
|
|
1236
|
-
else if(!document.getElementById('video6').name) {
|
|
1256
|
+
else if (!document.getElementById('video6').name) {
|
|
1237
1257
|
config_param = {
|
|
1238
1258
|
subscribe_video_id: 'video6',
|
|
1239
1259
|
subscribe_audio_id: 'audio6',
|
|
@@ -1243,7 +1263,7 @@ componentDidMount() {
|
|
|
1243
1263
|
}
|
|
1244
1264
|
}
|
|
1245
1265
|
|
|
1246
|
-
else if(!document.getElementById('video7').name) {
|
|
1266
|
+
else if (!document.getElementById('video7').name) {
|
|
1247
1267
|
config_param = {
|
|
1248
1268
|
subscribe_video_id: 'video7',
|
|
1249
1269
|
subscribe_audio_id: 'audio7',
|
|
@@ -1252,7 +1272,7 @@ componentDidMount() {
|
|
|
1252
1272
|
feedId: itemOne.feedId
|
|
1253
1273
|
}
|
|
1254
1274
|
}
|
|
1255
|
-
else if(!document.getElementById('video8').name) {
|
|
1275
|
+
else if (!document.getElementById('video8').name) {
|
|
1256
1276
|
config_param = {
|
|
1257
1277
|
subscribe_video_id: 'video8',
|
|
1258
1278
|
subscribe_audio_id: 'audio8',
|
|
@@ -1261,7 +1281,7 @@ componentDidMount() {
|
|
|
1261
1281
|
feedId: itemOne.feedId
|
|
1262
1282
|
}
|
|
1263
1283
|
}
|
|
1264
|
-
else if(!document.getElementById('video9').name) {
|
|
1284
|
+
else if (!document.getElementById('video9').name) {
|
|
1265
1285
|
config_param = {
|
|
1266
1286
|
subscribe_video_id: 'video9',
|
|
1267
1287
|
subscribe_audio_id: 'audio9',
|
|
@@ -1270,7 +1290,7 @@ componentDidMount() {
|
|
|
1270
1290
|
feedId: itemOne.feedId
|
|
1271
1291
|
}
|
|
1272
1292
|
}
|
|
1273
|
-
else if(!document.getElementById('video10').name) {
|
|
1293
|
+
else if (!document.getElementById('video10').name) {
|
|
1274
1294
|
config_param = {
|
|
1275
1295
|
subscribe_video_id: 'video10',
|
|
1276
1296
|
subscribe_audio_id: 'audio10',
|
|
@@ -1279,7 +1299,7 @@ componentDidMount() {
|
|
|
1279
1299
|
feedId: itemOne.feedId
|
|
1280
1300
|
}
|
|
1281
1301
|
}
|
|
1282
|
-
else if(!document.getElementById('video11').name) {
|
|
1302
|
+
else if (!document.getElementById('video11').name) {
|
|
1283
1303
|
config_param = {
|
|
1284
1304
|
subscribe_video_id: 'video11',
|
|
1285
1305
|
subscribe_audio_id: 'audio11',
|
|
@@ -1288,7 +1308,7 @@ componentDidMount() {
|
|
|
1288
1308
|
feedId: itemOne.feedId
|
|
1289
1309
|
}
|
|
1290
1310
|
}
|
|
1291
|
-
else if(!document.getElementById('video12').name) {
|
|
1311
|
+
else if (!document.getElementById('video12').name) {
|
|
1292
1312
|
config_param = {
|
|
1293
1313
|
subscribe_video_id: 'video12',
|
|
1294
1314
|
subscribe_audio_id: 'audio12',
|
|
@@ -1325,12 +1345,12 @@ componentDidMount() {
|
|
|
1325
1345
|
content: JSON.stringify({
|
|
1326
1346
|
'typeId': 1014,
|
|
1327
1347
|
'sessionId': this.state.sessionId,
|
|
1328
|
-
|
|
1348
|
+
'meetingInfo': {
|
|
1329
1349
|
'title': this.props.meetingInfo.title,
|
|
1330
1350
|
'host': this.props.meetingInfo.host,
|
|
1331
1351
|
'customers': this.props.meetingInfo.customers
|
|
1332
1352
|
}
|
|
1333
|
-
|
|
1353
|
+
|
|
1334
1354
|
})
|
|
1335
1355
|
}, function (code, message, data) {
|
|
1336
1356
|
})
|
|
@@ -1346,8 +1366,8 @@ componentDidMount() {
|
|
|
1346
1366
|
roomCustomerList: newArray
|
|
1347
1367
|
})
|
|
1348
1368
|
let config_param
|
|
1349
|
-
if(feed.uid != this.state.tellerAccount) {
|
|
1350
|
-
if(feed.tag == 'VIDEO_SOURCE_SCREEN') {
|
|
1369
|
+
if (feed.uid != this.state.tellerAccount) {
|
|
1370
|
+
if (feed.tag == 'VIDEO_SOURCE_SCREEN') {
|
|
1351
1371
|
config_param = {
|
|
1352
1372
|
subscribe_video_id: 'video21',
|
|
1353
1373
|
subscribe_audio_id: 'audio21',
|
|
@@ -1355,42 +1375,42 @@ componentDidMount() {
|
|
|
1355
1375
|
feedId_id: 'feedId21',
|
|
1356
1376
|
feedId: feed.feedId
|
|
1357
1377
|
}
|
|
1358
|
-
|
|
1378
|
+
|
|
1359
1379
|
this.tabTitlesClick(
|
|
1360
1380
|
{
|
|
1361
1381
|
value: 'customerScreen',
|
|
1362
1382
|
name: '客户投屏'
|
|
1363
|
-
},'add'
|
|
1383
|
+
}, 'add'
|
|
1364
1384
|
)
|
|
1365
1385
|
if (config_param !== undefined) {
|
|
1366
1386
|
config_param.need_volume_analyser = false
|
|
1367
1387
|
console.log(config_param)
|
|
1368
|
-
setTimeout(()=>{
|
|
1369
|
-
|
|
1388
|
+
setTimeout(() => {
|
|
1389
|
+
|
|
1370
1390
|
this.test_controller.Subscribe(config_param)
|
|
1371
1391
|
}, 1000)
|
|
1372
|
-
|
|
1392
|
+
|
|
1373
1393
|
}
|
|
1374
1394
|
} else {
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1395
|
+
// let data_param = {
|
|
1396
|
+
// isVideo: true,
|
|
1397
|
+
// videoIndex: this.state.videoList.length + 1,
|
|
1398
|
+
// videoTwoName: ''
|
|
1399
|
+
// }
|
|
1400
|
+
// let videoList = this.state.videoList;
|
|
1401
|
+
// let newvideoList = [...videoList];
|
|
1402
|
+
// newvideoList.push(data_param);
|
|
1403
|
+
// this.setState({
|
|
1404
|
+
// videoList: newvideoList
|
|
1405
|
+
// },()=>{
|
|
1406
|
+
// config_param = {
|
|
1407
|
+
// subscribe_video_id: 'video' + this.state.videoList.length,
|
|
1408
|
+
// subscribe_audio_id: 'audio' + this.state.videoList.length,
|
|
1409
|
+
// subscribe_streamId_id: 'subscribe_streamId' + this.state.videoList.length,
|
|
1410
|
+
// feedId_id: 'feedId' + this.state.videoList.length,
|
|
1411
|
+
// feedId: feed.feedId
|
|
1412
|
+
// }
|
|
1413
|
+
if (!document.getElementById('video1').name) {
|
|
1394
1414
|
config_param = {
|
|
1395
1415
|
subscribe_video_id: 'video1',
|
|
1396
1416
|
subscribe_audio_id: 'audio1',
|
|
@@ -1399,7 +1419,7 @@ componentDidMount() {
|
|
|
1399
1419
|
feedId: feed.feedId
|
|
1400
1420
|
}
|
|
1401
1421
|
}
|
|
1402
|
-
else if(!document.getElementById('video2').name) {
|
|
1422
|
+
else if (!document.getElementById('video2').name) {
|
|
1403
1423
|
config_param = {
|
|
1404
1424
|
subscribe_video_id: 'video2',
|
|
1405
1425
|
subscribe_audio_id: 'audio2',
|
|
@@ -1408,7 +1428,7 @@ componentDidMount() {
|
|
|
1408
1428
|
feedId: feed.feedId
|
|
1409
1429
|
}
|
|
1410
1430
|
}
|
|
1411
|
-
else if(!document.getElementById('video3').name) {
|
|
1431
|
+
else if (!document.getElementById('video3').name) {
|
|
1412
1432
|
config_param = {
|
|
1413
1433
|
subscribe_video_id: 'video3',
|
|
1414
1434
|
subscribe_audio_id: 'audio3',
|
|
@@ -1417,7 +1437,7 @@ componentDidMount() {
|
|
|
1417
1437
|
feedId: feed.feedId
|
|
1418
1438
|
}
|
|
1419
1439
|
}
|
|
1420
|
-
else if(!document.getElementById('video4').name) {
|
|
1440
|
+
else if (!document.getElementById('video4').name) {
|
|
1421
1441
|
config_param = {
|
|
1422
1442
|
subscribe_video_id: 'video4',
|
|
1423
1443
|
subscribe_audio_id: 'audio4',
|
|
@@ -1426,7 +1446,7 @@ componentDidMount() {
|
|
|
1426
1446
|
feedId: feed.feedId
|
|
1427
1447
|
}
|
|
1428
1448
|
}
|
|
1429
|
-
else if(!document.getElementById('video5').name) {
|
|
1449
|
+
else if (!document.getElementById('video5').name) {
|
|
1430
1450
|
config_param = {
|
|
1431
1451
|
subscribe_video_id: 'video5',
|
|
1432
1452
|
subscribe_audio_id: 'audio5',
|
|
@@ -1435,7 +1455,7 @@ componentDidMount() {
|
|
|
1435
1455
|
feedId: feed.feedId
|
|
1436
1456
|
}
|
|
1437
1457
|
}
|
|
1438
|
-
else if(!document.getElementById('video6').name) {
|
|
1458
|
+
else if (!document.getElementById('video6').name) {
|
|
1439
1459
|
config_param = {
|
|
1440
1460
|
subscribe_video_id: 'video6',
|
|
1441
1461
|
subscribe_audio_id: 'audio6',
|
|
@@ -1444,7 +1464,7 @@ componentDidMount() {
|
|
|
1444
1464
|
feedId: feed.feedId
|
|
1445
1465
|
}
|
|
1446
1466
|
}
|
|
1447
|
-
else if(!document.getElementById('video7').name) {
|
|
1467
|
+
else if (!document.getElementById('video7').name) {
|
|
1448
1468
|
config_param = {
|
|
1449
1469
|
subscribe_video_id: 'video7',
|
|
1450
1470
|
subscribe_audio_id: 'audio7',
|
|
@@ -1453,7 +1473,7 @@ componentDidMount() {
|
|
|
1453
1473
|
feedId: feed.feedId
|
|
1454
1474
|
}
|
|
1455
1475
|
}
|
|
1456
|
-
else if(!document.getElementById('video8').name) {
|
|
1476
|
+
else if (!document.getElementById('video8').name) {
|
|
1457
1477
|
config_param = {
|
|
1458
1478
|
subscribe_video_id: 'video8',
|
|
1459
1479
|
subscribe_audio_id: 'audio8',
|
|
@@ -1462,7 +1482,7 @@ componentDidMount() {
|
|
|
1462
1482
|
feedId: feed.feedId
|
|
1463
1483
|
}
|
|
1464
1484
|
}
|
|
1465
|
-
else if(!document.getElementById('video9').name) {
|
|
1485
|
+
else if (!document.getElementById('video9').name) {
|
|
1466
1486
|
config_param = {
|
|
1467
1487
|
subscribe_video_id: 'video9',
|
|
1468
1488
|
subscribe_audio_id: 'audio9',
|
|
@@ -1471,7 +1491,7 @@ componentDidMount() {
|
|
|
1471
1491
|
feedId: feed.feedId
|
|
1472
1492
|
}
|
|
1473
1493
|
}
|
|
1474
|
-
else if(!document.getElementById('video10').name) {
|
|
1494
|
+
else if (!document.getElementById('video10').name) {
|
|
1475
1495
|
config_param = {
|
|
1476
1496
|
subscribe_video_id: 'video10',
|
|
1477
1497
|
subscribe_audio_id: 'audio10',
|
|
@@ -1480,7 +1500,7 @@ componentDidMount() {
|
|
|
1480
1500
|
feedId: feed.feedId
|
|
1481
1501
|
}
|
|
1482
1502
|
}
|
|
1483
|
-
else if(!document.getElementById('video11').name) {
|
|
1503
|
+
else if (!document.getElementById('video11').name) {
|
|
1484
1504
|
config_param = {
|
|
1485
1505
|
subscribe_video_id: 'video11',
|
|
1486
1506
|
subscribe_audio_id: 'audio11',
|
|
@@ -1489,7 +1509,7 @@ componentDidMount() {
|
|
|
1489
1509
|
feedId: feed.feedId
|
|
1490
1510
|
}
|
|
1491
1511
|
}
|
|
1492
|
-
else if(!document.getElementById('video12').name) {
|
|
1512
|
+
else if (!document.getElementById('video12').name) {
|
|
1493
1513
|
config_param = {
|
|
1494
1514
|
subscribe_video_id: 'video12',
|
|
1495
1515
|
subscribe_audio_id: 'audio12',
|
|
@@ -1498,20 +1518,20 @@ componentDidMount() {
|
|
|
1498
1518
|
feedId: feed.feedId
|
|
1499
1519
|
}
|
|
1500
1520
|
}
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1521
|
+
if (config_param !== undefined) {
|
|
1522
|
+
config_param.need_volume_analyser = true
|
|
1523
|
+
console.log(config_param)
|
|
1524
|
+
|
|
1525
|
+
this.test_controller.Subscribe(config_param)
|
|
1526
|
+
|
|
1527
|
+
}
|
|
1508
1528
|
// })
|
|
1509
|
-
|
|
1529
|
+
|
|
1510
1530
|
|
|
1511
1531
|
}
|
|
1512
1532
|
|
|
1513
1533
|
}
|
|
1514
|
-
|
|
1534
|
+
|
|
1515
1535
|
};
|
|
1516
1536
|
// 推送“有新订阅”给与会者
|
|
1517
1537
|
this.test_controller.OnNewSubscribe = (subscriber, feed) => {
|
|
@@ -1519,8 +1539,8 @@ componentDidMount() {
|
|
|
1519
1539
|
};
|
|
1520
1540
|
// 取消发布成功
|
|
1521
1541
|
this.test_controller.OnUnPublishSucc = (sid) => {
|
|
1522
|
-
console.log('取消发布成功', sid,document.getElementById('publish_video1').name)
|
|
1523
|
-
if(sid != document.getElementById('publish_video1').name) {
|
|
1542
|
+
console.log('取消发布成功', sid, document.getElementById('publish_video1').name)
|
|
1543
|
+
if (sid != document.getElementById('publish_video1').name) {
|
|
1524
1544
|
callNimIM('sendCustomCmdMsg', {
|
|
1525
1545
|
customId: this.state.imRoomId,
|
|
1526
1546
|
content: JSON.stringify({
|
|
@@ -1535,8 +1555,8 @@ componentDidMount() {
|
|
|
1535
1555
|
isSharedScreen: false,
|
|
1536
1556
|
screenName: '投屏'
|
|
1537
1557
|
});
|
|
1538
|
-
this.tabTitlesClick('RMScreen','delect')
|
|
1539
|
-
if(this.state.isPictureInPicture) {
|
|
1558
|
+
this.tabTitlesClick('RMScreen', 'delect')
|
|
1559
|
+
if (this.state.isPictureInPicture) {
|
|
1540
1560
|
document.exitPictureInPicture()
|
|
1541
1561
|
}
|
|
1542
1562
|
}
|
|
@@ -1545,80 +1565,80 @@ componentDidMount() {
|
|
|
1545
1565
|
this.test_controller.OnUnSubscribeSucc = (sid) => {
|
|
1546
1566
|
console.log('取消订阅媒体流成功', sid)
|
|
1547
1567
|
this.state.tabTitles.map((item) => {
|
|
1548
|
-
if(item.value == 'customerScreen') {
|
|
1549
|
-
if(!document.getElementById("video21").name) {
|
|
1550
|
-
this.tabTitlesClick('customerScreen','delect')
|
|
1568
|
+
if (item.value == 'customerScreen') {
|
|
1569
|
+
if (!document.getElementById("video21").name) {
|
|
1570
|
+
this.tabTitlesClick('customerScreen', 'delect')
|
|
1551
1571
|
}
|
|
1552
1572
|
}
|
|
1553
1573
|
})
|
|
1554
|
-
if(!document.getElementById("video1").name) {
|
|
1574
|
+
if (!document.getElementById("video1").name) {
|
|
1555
1575
|
this.setState({
|
|
1556
1576
|
videoOneName: '',
|
|
1557
1577
|
voiceVideoOne: false
|
|
1558
1578
|
})
|
|
1559
1579
|
}
|
|
1560
|
-
if(!document.getElementById("video2").name) {
|
|
1580
|
+
if (!document.getElementById("video2").name) {
|
|
1561
1581
|
this.setState({
|
|
1562
1582
|
videoTwoName: '',
|
|
1563
1583
|
voiceVideoTwo: false
|
|
1564
1584
|
})
|
|
1565
1585
|
}
|
|
1566
|
-
if(!document.getElementById("video3").name) {
|
|
1586
|
+
if (!document.getElementById("video3").name) {
|
|
1567
1587
|
this.setState({
|
|
1568
1588
|
videoThreeName: '',
|
|
1569
1589
|
voiceVideoThree: false
|
|
1570
1590
|
})
|
|
1571
1591
|
}
|
|
1572
|
-
if(!document.getElementById("video4").name) {
|
|
1592
|
+
if (!document.getElementById("video4").name) {
|
|
1573
1593
|
this.setState({
|
|
1574
1594
|
videoFourName: '',
|
|
1575
1595
|
voiceVideoFour: false,
|
|
1576
1596
|
})
|
|
1577
1597
|
}
|
|
1578
|
-
if(!document.getElementById("video5").name) {
|
|
1598
|
+
if (!document.getElementById("video5").name) {
|
|
1579
1599
|
this.setState({
|
|
1580
1600
|
videoFiveName: '',
|
|
1581
1601
|
voiceVideoFive: false
|
|
1582
1602
|
})
|
|
1583
1603
|
}
|
|
1584
|
-
if(!document.getElementById("video6").name) {
|
|
1604
|
+
if (!document.getElementById("video6").name) {
|
|
1585
1605
|
this.setState({
|
|
1586
1606
|
videoSixName: '',
|
|
1587
1607
|
voiceVideoSix: false
|
|
1588
1608
|
})
|
|
1589
1609
|
}
|
|
1590
1610
|
|
|
1591
|
-
if(!document.getElementById("video7").name) {
|
|
1611
|
+
if (!document.getElementById("video7").name) {
|
|
1592
1612
|
this.setState({
|
|
1593
1613
|
videoSevenName: '',
|
|
1594
1614
|
voiceVideoSeven: false
|
|
1595
1615
|
})
|
|
1596
1616
|
}
|
|
1597
|
-
if(!document.getElementById("video8").name) {
|
|
1617
|
+
if (!document.getElementById("video8").name) {
|
|
1598
1618
|
this.setState({
|
|
1599
1619
|
videoEightName: '',
|
|
1600
1620
|
voiceVideoEight: false
|
|
1601
1621
|
})
|
|
1602
1622
|
}
|
|
1603
|
-
if(!document.getElementById("video9").name) {
|
|
1623
|
+
if (!document.getElementById("video9").name) {
|
|
1604
1624
|
this.setState({
|
|
1605
1625
|
videoNineName: '',
|
|
1606
1626
|
voiceVideoNine: false
|
|
1607
1627
|
})
|
|
1608
1628
|
}
|
|
1609
|
-
if(!document.getElementById("video10").name) {
|
|
1629
|
+
if (!document.getElementById("video10").name) {
|
|
1610
1630
|
this.setState({
|
|
1611
1631
|
videoTenName: '',
|
|
1612
1632
|
voiceVideoTen: false
|
|
1613
1633
|
})
|
|
1614
1634
|
}
|
|
1615
|
-
if(!document.getElementById("video11").name) {
|
|
1635
|
+
if (!document.getElementById("video11").name) {
|
|
1616
1636
|
this.setState({
|
|
1617
1637
|
videoElevenName: '',
|
|
1618
1638
|
voiceVideoEleven: false
|
|
1619
1639
|
})
|
|
1620
1640
|
}
|
|
1621
|
-
if(!document.getElementById("video12").name) {
|
|
1641
|
+
if (!document.getElementById("video12").name) {
|
|
1622
1642
|
this.setState({
|
|
1623
1643
|
videoTwelveName: '',
|
|
1624
1644
|
voiceVideoTwelve: false
|
|
@@ -1628,13 +1648,13 @@ componentDidMount() {
|
|
|
1628
1648
|
// 推送“取消发布”给与会者
|
|
1629
1649
|
this.test_controller.OnUnPublish = (feed) => {
|
|
1630
1650
|
console.log('取消发布者', feed)
|
|
1631
|
-
for(let i=0;i<this.state.roomCustomerList.length;i++) {
|
|
1632
|
-
if(this.state.roomCustomerList[i].feedId == feed.feedId) {
|
|
1651
|
+
for (let i = 0; i < this.state.roomCustomerList.length; i++) {
|
|
1652
|
+
if (this.state.roomCustomerList[i].feedId == feed.feedId) {
|
|
1633
1653
|
this.state.roomCustomerList.splice(i, 1)
|
|
1634
1654
|
}
|
|
1635
1655
|
}
|
|
1636
1656
|
|
|
1637
|
-
if(this.state.roomCustomerList.length == 0) {
|
|
1657
|
+
if (this.state.roomCustomerList.length == 0) {
|
|
1638
1658
|
// this.test_controller.ChangeStreamSize(document.getElementById('publish_video1').name, 3)
|
|
1639
1659
|
this.setState({
|
|
1640
1660
|
isCustomer: false
|
|
@@ -1818,6 +1838,10 @@ componentDidMount() {
|
|
|
1818
1838
|
// 切流成功通知
|
|
1819
1839
|
this.test_controller.OnChangeMediaStreamSuccess = (sid) => {
|
|
1820
1840
|
console.log('切流成功通知', sid);
|
|
1841
|
+
message.success('切换摄像头或麦克风成功');
|
|
1842
|
+
this.setState({
|
|
1843
|
+
isModalVisibleInspection: false
|
|
1844
|
+
})
|
|
1821
1845
|
};
|
|
1822
1846
|
// 切流失败通知
|
|
1823
1847
|
this.test_controller.OnChangeMediaStreamFailed = (
|
|
@@ -1826,6 +1850,7 @@ componentDidMount() {
|
|
|
1826
1850
|
msg
|
|
1827
1851
|
) => {
|
|
1828
1852
|
console.log('切流失败通知', sid, code, msg)
|
|
1853
|
+
message.success('切换摄像头或麦克风失败,请先检查设备');
|
|
1829
1854
|
};
|
|
1830
1855
|
// 服务端录制初始化成功
|
|
1831
1856
|
this.test_controller.OnInitRemoteRecordSucc = (
|
|
@@ -1905,25 +1930,25 @@ componentDidMount() {
|
|
|
1905
1930
|
analyser.getByteFrequencyData(dataArray);
|
|
1906
1931
|
let step = Math.round(dataArray.length / 60); //采样步长
|
|
1907
1932
|
var img = document.getElementById("icon_huatong");
|
|
1908
|
-
ctx.drawImage(img, 0, 0,
|
|
1933
|
+
ctx.drawImage(img, 0, 0, this.props.microphoneSize, this.props.microphoneSize);
|
|
1909
1934
|
// 以画布左上角为坐标原点
|
|
1910
1935
|
let drawArea = {
|
|
1911
|
-
x1: 28/50*canvas.width, // 波动范围右下角的点坐标
|
|
1912
|
-
y1: 25/50*canvas.height,
|
|
1913
|
-
x2: 22/50*canvas.width, // 波动范围左上角的点坐标
|
|
1914
|
-
y2: 10/50*canvas.height,
|
|
1936
|
+
x1: 28 / 50 * canvas.width, // 波动范围右下角的点坐标
|
|
1937
|
+
y1: 25 / 50 * canvas.height,
|
|
1938
|
+
x2: 22 / 50 * canvas.width, // 波动范围左上角的点坐标
|
|
1939
|
+
y2: 10 / 50 * canvas.height,
|
|
1915
1940
|
}
|
|
1916
1941
|
|
|
1917
1942
|
for (var i = 0; i < 40; i++) {
|
|
1918
1943
|
let energy = (dataArray[step * i] / 256.0) * 80;
|
|
1919
1944
|
ctx.beginPath();
|
|
1920
1945
|
ctx.fillStyle = this.props.voiceColor;
|
|
1921
|
-
const { x1,y1,x2,y2} = drawArea
|
|
1922
|
-
let width = x1-x2;
|
|
1923
|
-
let height = (energy>20?(energy-20):0) * (y1 - y2
|
|
1924
|
-
let startX =
|
|
1925
|
-
let startY =
|
|
1926
|
-
ctx.fillRect(startX, startY, width, height
|
|
1946
|
+
const { x1, y1, x2, y2 } = drawArea
|
|
1947
|
+
let width = x1 - x2;
|
|
1948
|
+
let height = (energy > 20 ? (energy - 20) : 0) * (y1 - y2) / 70
|
|
1949
|
+
let startX = x2 // 绘制起始点x
|
|
1950
|
+
let startY = y1 - height // 绘制起始点y
|
|
1951
|
+
ctx.fillRect(startX, startY, width, height)
|
|
1927
1952
|
}
|
|
1928
1953
|
requestAnimationFrame(this.test_controller.OnVolumeAnalyser.bind(this, sid, analyser));
|
|
1929
1954
|
}
|
|
@@ -1958,26 +1983,26 @@ componentDidMount() {
|
|
|
1958
1983
|
}
|
|
1959
1984
|
};
|
|
1960
1985
|
finishSession = async () => {
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
}
|
|
1986
|
+
|
|
1987
|
+
|
|
1988
|
+
if (this.state.roomCustomerList.length == 0) {
|
|
1989
|
+
try {
|
|
1990
|
+
let result = await API.finishSession({
|
|
1991
|
+
sessionId: this.state.sessionId,
|
|
1992
|
+
tellerId: this.props.tellerAccount
|
|
1993
|
+
});
|
|
1994
|
+
} catch (err) {
|
|
1971
1995
|
}
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1996
|
+
}
|
|
1997
|
+
this.setState({
|
|
1998
|
+
isCustomer: false,
|
|
1999
|
+
isWhiteboard: false,
|
|
2000
|
+
isPictureInPicture: false,
|
|
2001
|
+
});
|
|
2002
|
+
this.props.onLeaveRoom({
|
|
2003
|
+
code: LEAVE_TYPE.TELLER_EXIT,
|
|
2004
|
+
errMsg: '坐席退出'
|
|
2005
|
+
})
|
|
1981
2006
|
|
|
1982
2007
|
}
|
|
1983
2008
|
getRoomStatus = async data => {
|
|
@@ -2108,7 +2133,7 @@ componentDidMount() {
|
|
|
2108
2133
|
}, function (code, message, data) {
|
|
2109
2134
|
console.log(data)
|
|
2110
2135
|
})
|
|
2111
|
-
|
|
2136
|
+
|
|
2112
2137
|
} else if (this.state.voiceStatue) {
|
|
2113
2138
|
// 打开本地
|
|
2114
2139
|
this.setState({
|
|
@@ -2216,8 +2241,8 @@ componentDidMount() {
|
|
|
2216
2241
|
screenName: '投屏'
|
|
2217
2242
|
});
|
|
2218
2243
|
console.log(pictureInPictureVideo)
|
|
2219
|
-
this.tabTitlesClick('RMScreen','delect')
|
|
2220
|
-
if(this.state.isPictureInPicture) {
|
|
2244
|
+
this.tabTitlesClick('RMScreen', 'delect')
|
|
2245
|
+
if (this.state.isPictureInPicture) {
|
|
2221
2246
|
document.exitPictureInPicture()
|
|
2222
2247
|
}
|
|
2223
2248
|
} else {
|
|
@@ -2245,14 +2270,14 @@ componentDidMount() {
|
|
|
2245
2270
|
})
|
|
2246
2271
|
this.tabTitlesClick(
|
|
2247
2272
|
{
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2273
|
+
value: 'RMScreen',
|
|
2274
|
+
name: '坐席投屏'
|
|
2275
|
+
}, 'add'
|
|
2251
2276
|
)
|
|
2252
|
-
if(!this.state.isPictureInPicture) {
|
|
2277
|
+
if (!this.state.isPictureInPicture) {
|
|
2253
2278
|
this.pictureInPicture()
|
|
2254
2279
|
}
|
|
2255
|
-
|
|
2280
|
+
|
|
2256
2281
|
}
|
|
2257
2282
|
}
|
|
2258
2283
|
};
|
|
@@ -2485,37 +2510,37 @@ componentDidMount() {
|
|
|
2485
2510
|
// } catch (err) {
|
|
2486
2511
|
|
|
2487
2512
|
// }
|
|
2488
|
-
if(document.getElementById('video1').name == sid){
|
|
2513
|
+
if (document.getElementById('video1').name == sid) {
|
|
2489
2514
|
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid
|
|
2490
2515
|
}
|
|
2491
|
-
if(document.getElementById('video2').name == sid){
|
|
2516
|
+
if (document.getElementById('video2').name == sid) {
|
|
2492
2517
|
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid
|
|
2493
|
-
}if(document.getElementById('video3').name == sid){
|
|
2518
|
+
} if (document.getElementById('video3').name == sid) {
|
|
2494
2519
|
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid
|
|
2495
|
-
}if(document.getElementById('video4').name == sid){
|
|
2520
|
+
} if (document.getElementById('video4').name == sid) {
|
|
2496
2521
|
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid
|
|
2497
|
-
}if(document.getElementById('video5').name == sid){
|
|
2522
|
+
} if (document.getElementById('video5').name == sid) {
|
|
2498
2523
|
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid
|
|
2499
|
-
}if(document.getElementById('video6').name == sid){
|
|
2524
|
+
} if (document.getElementById('video6').name == sid) {
|
|
2500
2525
|
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid
|
|
2501
2526
|
}
|
|
2502
2527
|
|
|
2503
|
-
if(document.getElementById('video7').name == sid){
|
|
2528
|
+
if (document.getElementById('video7').name == sid) {
|
|
2504
2529
|
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid
|
|
2505
2530
|
}
|
|
2506
|
-
if(document.getElementById('video8').name == sid){
|
|
2531
|
+
if (document.getElementById('video8').name == sid) {
|
|
2507
2532
|
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid
|
|
2508
2533
|
}
|
|
2509
|
-
if(document.getElementById('video9').name == sid){
|
|
2534
|
+
if (document.getElementById('video9').name == sid) {
|
|
2510
2535
|
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid
|
|
2511
2536
|
}
|
|
2512
|
-
if(document.getElementById('video10').name == sid){
|
|
2537
|
+
if (document.getElementById('video10').name == sid) {
|
|
2513
2538
|
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid
|
|
2514
2539
|
}
|
|
2515
|
-
if(document.getElementById('video11').name == sid){
|
|
2540
|
+
if (document.getElementById('video11').name == sid) {
|
|
2516
2541
|
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid
|
|
2517
2542
|
}
|
|
2518
|
-
if(document.getElementById('video12').name == sid){
|
|
2543
|
+
if (document.getElementById('video12').name == sid) {
|
|
2519
2544
|
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid
|
|
2520
2545
|
}
|
|
2521
2546
|
try {
|
|
@@ -2529,56 +2554,56 @@ componentDidMount() {
|
|
|
2529
2554
|
} else {
|
|
2530
2555
|
message.success('查询失败')
|
|
2531
2556
|
}
|
|
2532
|
-
if(document.getElementById('video1').name == sid){
|
|
2557
|
+
if (document.getElementById('video1').name == sid) {
|
|
2533
2558
|
|
|
2534
2559
|
this.setState({
|
|
2535
2560
|
videoOneName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户1'
|
|
2536
2561
|
})
|
|
2537
2562
|
}
|
|
2538
|
-
if(document.getElementById('video2').name == sid){
|
|
2563
|
+
if (document.getElementById('video2').name == sid) {
|
|
2539
2564
|
this.setState({
|
|
2540
|
-
videoTwoName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data? data : '客户2'
|
|
2565
|
+
videoTwoName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户2'
|
|
2541
2566
|
})
|
|
2542
|
-
}if(document.getElementById('video3').name == sid){
|
|
2567
|
+
} if (document.getElementById('video3').name == sid) {
|
|
2543
2568
|
this.setState({
|
|
2544
|
-
videoThreeName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data : '客户3'
|
|
2569
|
+
videoThreeName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户3'
|
|
2545
2570
|
})
|
|
2546
|
-
}if(document.getElementById('video4').name == sid){
|
|
2571
|
+
} if (document.getElementById('video4').name == sid) {
|
|
2547
2572
|
this.setState({
|
|
2548
|
-
videoFourName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data : '客户4'
|
|
2573
|
+
videoFourName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户4'
|
|
2549
2574
|
})
|
|
2550
|
-
}if(document.getElementById('video5').name == sid){
|
|
2575
|
+
} if (document.getElementById('video5').name == sid) {
|
|
2551
2576
|
this.setState({
|
|
2552
|
-
videoFiveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data? data : '客户5'
|
|
2577
|
+
videoFiveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户5'
|
|
2553
2578
|
})
|
|
2554
|
-
}if(document.getElementById('video6').name == sid){
|
|
2579
|
+
} if (document.getElementById('video6').name == sid) {
|
|
2555
2580
|
this.setState({
|
|
2556
|
-
videoSixName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户6'
|
|
2581
|
+
videoSixName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户6'
|
|
2557
2582
|
})
|
|
2558
2583
|
}
|
|
2559
|
-
if(document.getElementById('video7').name == sid){
|
|
2584
|
+
if (document.getElementById('video7').name == sid) {
|
|
2560
2585
|
this.setState({
|
|
2561
|
-
videoSevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户7'
|
|
2586
|
+
videoSevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户7'
|
|
2562
2587
|
})
|
|
2563
|
-
}if(document.getElementById('video8').name == sid){
|
|
2588
|
+
} if (document.getElementById('video8').name == sid) {
|
|
2564
2589
|
this.setState({
|
|
2565
|
-
videoEightName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户8'
|
|
2590
|
+
videoEightName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户8'
|
|
2566
2591
|
})
|
|
2567
|
-
}if(document.getElementById('video9').name == sid){
|
|
2592
|
+
} if (document.getElementById('video9').name == sid) {
|
|
2568
2593
|
this.setState({
|
|
2569
|
-
videoNineName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户9'
|
|
2594
|
+
videoNineName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户9'
|
|
2570
2595
|
})
|
|
2571
|
-
}if(document.getElementById('video10').name == sid){
|
|
2596
|
+
} if (document.getElementById('video10').name == sid) {
|
|
2572
2597
|
this.setState({
|
|
2573
|
-
videoTenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户10'
|
|
2598
|
+
videoTenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户10'
|
|
2574
2599
|
})
|
|
2575
|
-
}if(document.getElementById('video11').name == sid){
|
|
2600
|
+
} if (document.getElementById('video11').name == sid) {
|
|
2576
2601
|
this.setState({
|
|
2577
|
-
videoElevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户11'
|
|
2602
|
+
videoElevenName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户11'
|
|
2578
2603
|
})
|
|
2579
|
-
}if(document.getElementById('video12').name == sid){
|
|
2604
|
+
} if (document.getElementById('video12').name == sid) {
|
|
2580
2605
|
this.setState({
|
|
2581
|
-
videoTwelveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户12'
|
|
2606
|
+
videoTwelveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户12'
|
|
2582
2607
|
})
|
|
2583
2608
|
}
|
|
2584
2609
|
} catch (err) {
|
|
@@ -2627,7 +2652,7 @@ componentDidMount() {
|
|
|
2627
2652
|
})
|
|
2628
2653
|
}
|
|
2629
2654
|
switchExternal = () => {
|
|
2630
|
-
if(!this.state.isWhiteboard) {
|
|
2655
|
+
if (!this.state.isWhiteboard) {
|
|
2631
2656
|
const publish_config = {};
|
|
2632
2657
|
this.setState({
|
|
2633
2658
|
isWhiteboard: true,
|
|
@@ -2635,7 +2660,7 @@ componentDidMount() {
|
|
|
2635
2660
|
this.tabTitlesClick({
|
|
2636
2661
|
value: 'RMWhiteboard',
|
|
2637
2662
|
name: 'RM白板'
|
|
2638
|
-
},'add')
|
|
2663
|
+
}, 'add')
|
|
2639
2664
|
if (document.getElementById('video20').name) {
|
|
2640
2665
|
// 代表已经有了进行切流
|
|
2641
2666
|
publish_config.publish_device = 4
|
|
@@ -2645,7 +2670,7 @@ componentDidMount() {
|
|
|
2645
2670
|
publish_config.video_profile_type = 5
|
|
2646
2671
|
this.test_controller.ChangeMediaStream(publish_config);
|
|
2647
2672
|
} else {
|
|
2648
|
-
|
|
2673
|
+
|
|
2649
2674
|
publish_config.media_type = 1
|
|
2650
2675
|
publish_config.publish_device = 4
|
|
2651
2676
|
publish_config.need_volume_analyser = true
|
|
@@ -2656,47 +2681,74 @@ componentDidMount() {
|
|
|
2656
2681
|
publish_config.publish_tag = 'projectionWhiteboard'
|
|
2657
2682
|
this.test_controller.Publish(publish_config)
|
|
2658
2683
|
}
|
|
2659
|
-
} else{
|
|
2684
|
+
} else {
|
|
2660
2685
|
message.success('当前已经切换RM白板')
|
|
2661
2686
|
}
|
|
2662
|
-
|
|
2687
|
+
|
|
2663
2688
|
|
|
2664
2689
|
}
|
|
2665
2690
|
switchSelect = (value) => {
|
|
2666
2691
|
this.setState({
|
|
2667
|
-
|
|
2668
|
-
|
|
2692
|
+
isSelect: value,
|
|
2693
|
+
})
|
|
2669
2694
|
}
|
|
2670
|
-
facialHandleVisibleChange=(value)=>{
|
|
2671
|
-
if(!value) {
|
|
2695
|
+
facialHandleVisibleChange = (value) => {
|
|
2696
|
+
if (!value) {
|
|
2672
2697
|
this.setState({
|
|
2673
2698
|
clickedFacial: false
|
|
2674
2699
|
})
|
|
2675
2700
|
}
|
|
2676
2701
|
}
|
|
2677
|
-
ocrHandleVisibleChange=(value)=>{
|
|
2678
|
-
if(!value) {
|
|
2702
|
+
ocrHandleVisibleChange = (value) => {
|
|
2703
|
+
if (!value) {
|
|
2679
2704
|
this.setState({
|
|
2680
2705
|
clickedOcr: false
|
|
2681
2706
|
})
|
|
2682
2707
|
}
|
|
2683
2708
|
}
|
|
2709
|
+
inspection = () => {
|
|
2710
|
+
this.test_controller.GetDevices()
|
|
2711
|
+
}
|
|
2712
|
+
handleOkInspection = () => {
|
|
2713
|
+
const config = {}
|
|
2714
|
+
config.sid = document.getElementById('publish_video1').name
|
|
2715
|
+
config.videoSource = this.state.cameraValue
|
|
2716
|
+
config.audioSource = this.state.microphoneValue
|
|
2717
|
+
this.test_controller.ChangeProfile(config)
|
|
2718
|
+
}
|
|
2719
|
+
handleCancelInspection = () => {
|
|
2720
|
+
this.setState({
|
|
2721
|
+
isModalVisibleInspection: false
|
|
2722
|
+
})
|
|
2723
|
+
}
|
|
2724
|
+
getCameraValue = (event) => {
|
|
2725
|
+
console.log(event.target.value);
|
|
2726
|
+
this.setState({
|
|
2727
|
+
cameraValue: event.target.value
|
|
2728
|
+
})
|
|
2729
|
+
}
|
|
2730
|
+
getMicrophoneValue = (event) => {
|
|
2731
|
+
console.log(event.target.value);
|
|
2732
|
+
this.setState({
|
|
2733
|
+
microphoneValue: event.target.value
|
|
2734
|
+
})
|
|
2735
|
+
}
|
|
2684
2736
|
render() {
|
|
2685
|
-
const {meetingInfo} = this.props
|
|
2737
|
+
const { meetingInfo } = this.props
|
|
2686
2738
|
var pdfChildren
|
|
2687
2739
|
if (this.props.children) {
|
|
2688
2740
|
pdfChildren = React.cloneElement(this.props.children, { width: 100, height: 100, id: 12 })
|
|
2689
2741
|
}
|
|
2690
2742
|
const customerNameList = (
|
|
2691
|
-
<span>
|
|
2743
|
+
<span className='labelClass'>
|
|
2692
2744
|
{
|
|
2693
|
-
meetingInfo.customers.map((item,index)=>{
|
|
2745
|
+
meetingInfo.customers.map((item, index) => {
|
|
2694
2746
|
return <label>
|
|
2695
2747
|
{item}
|
|
2696
2748
|
{
|
|
2697
|
-
meetingInfo.customers.length > 0 && index != meetingInfo.customers.length-1
|
|
2749
|
+
meetingInfo.customers.length > 0 && index != meetingInfo.customers.length - 1 && <label>,</label>
|
|
2698
2750
|
}
|
|
2699
|
-
|
|
2751
|
+
|
|
2700
2752
|
</label>
|
|
2701
2753
|
})
|
|
2702
2754
|
}
|
|
@@ -2705,41 +2757,78 @@ componentDidMount() {
|
|
|
2705
2757
|
const tabTitleList = (
|
|
2706
2758
|
<div className="button">
|
|
2707
2759
|
{
|
|
2708
|
-
this.state.tabTitles.map((item)=>{
|
|
2709
|
-
return <div className={`${this.state.isSelect == item.value
|
|
2760
|
+
this.state.tabTitles.map((item) => {
|
|
2761
|
+
return <div className={`${this.state.isSelect == item.value ? 'selectSee' : "noSelest"}`} onClick={this.switchSelect.bind(this, item.value)}>
|
|
2710
2762
|
{item.name}
|
|
2711
2763
|
</div>
|
|
2712
2764
|
})
|
|
2713
2765
|
}
|
|
2714
2766
|
</div>
|
|
2715
2767
|
)
|
|
2716
|
-
const videoCustomer =
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
</div>
|
|
2768
|
+
const videoCustomer =
|
|
2769
|
+
this.state.videoList.map((item, index) => {
|
|
2770
|
+
return <div className={`itemed`} style={{ display: (item.isVideo) ? '' : 'none', }}>
|
|
2771
|
+
<video
|
|
2772
|
+
id={'video' + item.videoIndex}
|
|
2773
|
+
autoPlay
|
|
2774
|
+
muted={true}
|
|
2775
|
+
className="video"
|
|
2776
|
+
/>
|
|
2777
|
+
<audio id={'audio' + item.videoIndex} autoPlay />
|
|
2778
|
+
<label style={{ display: 'none' }} id={'feedId' + item.videoIndex} type="text" />
|
|
2779
|
+
<div className={`customerTitle titleSamlle`}>
|
|
2780
|
+
<div className='titleName' style={{ background: this.props.titleBackground, color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
2781
|
+
{this.state.videoTwoName}
|
|
2731
2782
|
</div>
|
|
2732
|
-
|
|
2783
|
+
</div>
|
|
2784
|
+
<canvas className="canvasClassOne" id={'subscribe_volumeView' + item.videoIndex} width="40" height="70"></canvas>
|
|
2733
2785
|
</div>
|
|
2786
|
+
})
|
|
2787
|
+
const camera = (
|
|
2788
|
+
<div class="cameraAnMicrophone">
|
|
2789
|
+
{
|
|
2790
|
+
this.state.cameraList.map((item, index) => {
|
|
2791
|
+
return <div>
|
|
2792
|
+
<input type="radio" name="camere" value={item.actionid} checked={this.state.cameraValue == item.actionid} onChange={(e) => this.getCameraValue(e)} />{item.actionname}
|
|
2793
|
+
</div>
|
|
2734
2794
|
})
|
|
2735
|
-
|
|
2795
|
+
}
|
|
2796
|
+
</div>
|
|
2797
|
+
)
|
|
2798
|
+
|
|
2799
|
+
const microphone = (
|
|
2800
|
+
<div>
|
|
2801
|
+
{
|
|
2802
|
+
this.state.microphoneList.map((item, index) => {
|
|
2803
|
+
return <div class="cameraAnMicrophone">
|
|
2804
|
+
<input type="radio" name="microphone" value={item.actionid} checked={this.state.microphoneValue == item.actionid} onChange={(e) => this.getMicrophoneValue(e)} />{item.actionname}
|
|
2805
|
+
</div>
|
|
2806
|
+
})
|
|
2807
|
+
}
|
|
2808
|
+
</div>
|
|
2809
|
+
)
|
|
2810
|
+
const sectionStyle = this.state.tabTitles.length > 0 ? {
|
|
2811
|
+
'z-index': '-1',
|
|
2812
|
+
width:'100%',
|
|
2813
|
+
height:'100%',
|
|
2814
|
+
position: 'absolute'
|
|
2815
|
+
} :{
|
|
2816
|
+
'z-index': '0',
|
|
2817
|
+
width:'100%',
|
|
2818
|
+
height:'100%',
|
|
2819
|
+
position: 'absolute'
|
|
2820
|
+
};
|
|
2736
2821
|
return (
|
|
2737
2822
|
<div className="all">
|
|
2738
2823
|
<Spin spinning={this.state.loading} tip="视频初始化中...">
|
|
2739
2824
|
<Header></Header>
|
|
2740
|
-
|
|
2741
|
-
<div className="
|
|
2825
|
+
<div className="health">
|
|
2826
|
+
<div className="healthVideo">
|
|
2742
2827
|
<div className="projection">
|
|
2828
|
+
{tabTitleList}
|
|
2829
|
+
<img style={sectionStyle} src={require("../../assets/img/placeholder_bg.png").default} alt="" />
|
|
2830
|
+
<div style={{height: this.state.tabTitles.length > 0 ? 'calc(100% - 33px)' : '100%'}}>
|
|
2831
|
+
|
|
2743
2832
|
<div className="videoDiv" style={{ display: (this.state.isSelect == 'RMScreen') ? '' : 'none', }}>
|
|
2744
2833
|
<div className="videoDiv">
|
|
2745
2834
|
<video
|
|
@@ -2774,33 +2863,34 @@ componentDidMount() {
|
|
|
2774
2863
|
{
|
|
2775
2864
|
this.state.tabTitles.length == 0 &&
|
|
2776
2865
|
<div className='themeClass'>
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2866
|
+
<div>
|
|
2867
|
+
<ul>
|
|
2868
|
+
<li>
|
|
2869
|
+
<span>会议主题:</span>
|
|
2870
|
+
<label className='labelClass'>{meetingInfo.title}</label>
|
|
2871
|
+
</li>
|
|
2872
|
+
<li>
|
|
2873
|
+
<span>主持人:</span>
|
|
2874
|
+
<label className='labelClass'>{meetingInfo.host}</label>
|
|
2875
|
+
</li>
|
|
2876
|
+
<li>
|
|
2877
|
+
<span>参会客户:</span>
|
|
2878
|
+
{customerNameList}
|
|
2879
|
+
</li>
|
|
2880
|
+
</ul>
|
|
2881
|
+
</div>
|
|
2792
2882
|
</div>
|
|
2793
|
-
</div>
|
|
2794
2883
|
}
|
|
2795
|
-
|
|
2796
2884
|
|
|
2885
|
+
|
|
2886
|
+
</div>
|
|
2797
2887
|
</div>
|
|
2798
|
-
<div className="wrapper" style={{ width:
|
|
2888
|
+
<div className="wrapper" style={{ width: '20%', }}>
|
|
2799
2889
|
<div
|
|
2800
2890
|
className={`itemed ${this.state.publishDevic == 4 ? '' : 'isBack'} `}
|
|
2801
2891
|
>
|
|
2802
2892
|
<div className="publishVideoDiv">
|
|
2803
|
-
|
|
2893
|
+
|
|
2804
2894
|
<video
|
|
2805
2895
|
id="publish_video1"
|
|
2806
2896
|
className={`publishVideoClass`}
|
|
@@ -2810,6 +2900,8 @@ componentDidMount() {
|
|
|
2810
2900
|
playsinline={true}
|
|
2811
2901
|
/>
|
|
2812
2902
|
<label style={{ display: 'none' }} id="publish_streamId1" type="text" />
|
|
2903
|
+
|
|
2904
|
+
<div id="publish_video_div" className={`tellerTitle titleSamlle`}>
|
|
2813
2905
|
{
|
|
2814
2906
|
this.state.voiceStatue && <img
|
|
2815
2907
|
alt=""
|
|
@@ -2817,10 +2909,9 @@ componentDidMount() {
|
|
|
2817
2909
|
className="imgClassVoice voiceClass"
|
|
2818
2910
|
/>
|
|
2819
2911
|
}
|
|
2820
|
-
<
|
|
2821
|
-
<div className='titleName' style={{
|
|
2912
|
+
<canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
|
|
2913
|
+
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>坐席</div>
|
|
2822
2914
|
</div>
|
|
2823
|
-
<canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none', }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
|
|
2824
2915
|
</div>
|
|
2825
2916
|
|
|
2826
2917
|
</div>
|
|
@@ -2829,13 +2920,13 @@ componentDidMount() {
|
|
|
2829
2920
|
} */}
|
|
2830
2921
|
<div
|
|
2831
2922
|
className={`itemed`}
|
|
2832
|
-
style={{ position: "relative",display: (this.state.videoOneName) ? '' : 'none'}}
|
|
2923
|
+
style={{ position: "relative", display: (this.state.videoOneName) ? '' : 'none' }}
|
|
2833
2924
|
>
|
|
2834
2925
|
{
|
|
2835
2926
|
this.state.customAudioed && <img
|
|
2836
2927
|
alt=""
|
|
2837
2928
|
src={require("../../assets/img/yingpin.png").default}
|
|
2838
|
-
style={{ width: "100%", height: "100%",}}
|
|
2929
|
+
style={{ width: "100%", height: "100%", }}
|
|
2839
2930
|
></img>
|
|
2840
2931
|
}
|
|
2841
2932
|
<div className="video1Div">
|
|
@@ -2847,6 +2938,8 @@ componentDidMount() {
|
|
|
2847
2938
|
/>
|
|
2848
2939
|
<audio id="audio1" autoPlay />
|
|
2849
2940
|
<label style={{ display: 'none' }} id="feedId1" type="text" />
|
|
2941
|
+
|
|
2942
|
+
<div style={{ display: (this.state.videoOneName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
|
|
2850
2943
|
{
|
|
2851
2944
|
this.state.voiceVideoOne && <img
|
|
2852
2945
|
alt=""
|
|
@@ -2854,41 +2947,43 @@ componentDidMount() {
|
|
|
2854
2947
|
className="imgClassVoice voiceVideoClass"
|
|
2855
2948
|
/>
|
|
2856
2949
|
}
|
|
2857
|
-
<
|
|
2858
|
-
|
|
2950
|
+
<canvas style={{ display: (this.state.videoOneName && !this.state.voiceVideoOne) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px'}} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
|
|
2951
|
+
|
|
2952
|
+
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
2859
2953
|
{this.state.videoOneName}
|
|
2860
2954
|
</div>
|
|
2861
2955
|
|
|
2862
|
-
|
|
2956
|
+
|
|
2863
2957
|
</div>
|
|
2864
|
-
<canvas style={{ display: (this.state.videoOneName&&!this.state.voiceVideoOne) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
|
|
2865
2958
|
</div>
|
|
2866
2959
|
</div>
|
|
2867
2960
|
<div className={`itemed`} style={{ display: (this.state.videoTwoName) ? '' : 'none', }}>
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2961
|
+
<video
|
|
2962
|
+
id="video2"
|
|
2963
|
+
autoPlay
|
|
2964
|
+
muted={true}
|
|
2965
|
+
className="video"
|
|
2966
|
+
/>
|
|
2967
|
+
<audio id="audio2" autoPlay />
|
|
2968
|
+
<label style={{ display: 'none' }} id="feedId2" type="text" />
|
|
2969
|
+
|
|
2970
|
+
<div style={{ display: (this.state.videoTwoName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
|
|
2971
|
+
{
|
|
2972
|
+
this.state.voiceVideoTwo && <img
|
|
2973
|
+
alt=""
|
|
2974
|
+
src={require("../../assets/img/jingyin.png").default}
|
|
2975
|
+
className="imgClassVoice voiceVideoClass"
|
|
2873
2976
|
/>
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
src={require("../../assets/img/jingyin.png").default}
|
|
2880
|
-
className="imgClassVoice voiceVideoClass"
|
|
2881
|
-
/>
|
|
2882
|
-
}
|
|
2883
|
-
<div style={{ display: (this.state.videoTwoName) ? '' : 'none'}} className={`customerTitle titleSamlle`}>
|
|
2884
|
-
<div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
|
|
2885
|
-
{this.state.videoTwoName}
|
|
2886
|
-
</div>
|
|
2977
|
+
}
|
|
2978
|
+
<canvas style={{ display: (this.state.videoTwoName && !this.state.voiceVideoTwo) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView2" width="40" height="70"></canvas>
|
|
2979
|
+
|
|
2980
|
+
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
2981
|
+
{this.state.videoTwoName}
|
|
2887
2982
|
</div>
|
|
2888
|
-
|
|
2983
|
+
</div>
|
|
2889
2984
|
</div>
|
|
2890
2985
|
<div className={`itemed`}
|
|
2891
|
-
|
|
2986
|
+
style={{ display: (this.state.videoThreeName) ? '' : 'none' }}>
|
|
2892
2987
|
<video
|
|
2893
2988
|
id="video3"
|
|
2894
2989
|
autoPlay
|
|
@@ -2897,19 +2992,21 @@ componentDidMount() {
|
|
|
2897
2992
|
/>
|
|
2898
2993
|
<audio id="audio3" autoPlay />
|
|
2899
2994
|
<label style={{ display: 'none' }} id="feedId3" type="text" />
|
|
2995
|
+
|
|
2996
|
+
<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`}>
|
|
2900
2997
|
{
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
<
|
|
2908
|
-
|
|
2998
|
+
this.state.voiceVideoThree && <img
|
|
2999
|
+
alt=""
|
|
3000
|
+
src={require("../../assets/img/jingyin.png").default}
|
|
3001
|
+
className="imgClassVoice voiceVideoClass"
|
|
3002
|
+
/>
|
|
3003
|
+
}
|
|
3004
|
+
<canvas style={{ display: (this.state.videoThreeName && !this.state.voiceVideoThree) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
|
|
3005
|
+
|
|
3006
|
+
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
2909
3007
|
{this.state.videoThreeName}
|
|
2910
3008
|
</div>
|
|
2911
3009
|
</div>
|
|
2912
|
-
<canvas style={{ display: (this.state.videoThreeName&&!this.state.voiceVideoThree) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
|
|
2913
3010
|
</div>
|
|
2914
3011
|
<div className={`itemed`} style={{ display: (this.state.videoFourName) ? '' : 'none', }}>
|
|
2915
3012
|
<video
|
|
@@ -2920,22 +3017,24 @@ componentDidMount() {
|
|
|
2920
3017
|
/>
|
|
2921
3018
|
<audio id="audio4" autoPlay />
|
|
2922
3019
|
<label style={{ display: 'none' }} id="feedId4" type="text" />
|
|
3020
|
+
|
|
3021
|
+
<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`}>
|
|
2923
3022
|
{
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
<
|
|
2931
|
-
|
|
3023
|
+
this.state.voiceVideoFour && <img
|
|
3024
|
+
alt=""
|
|
3025
|
+
src={require("../../assets/img/jingyin.png").default}
|
|
3026
|
+
className="imgClassVoice voiceVideoClass"
|
|
3027
|
+
/>
|
|
3028
|
+
}
|
|
3029
|
+
<canvas style={{ display: (this.state.videoFourName && !this.state.voiceVideoFour) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
|
|
3030
|
+
|
|
3031
|
+
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
2932
3032
|
{this.state.videoFourName}
|
|
2933
3033
|
</div>
|
|
2934
3034
|
</div>
|
|
2935
|
-
<canvas style={{ display: (this.state.videoFourName&&!this.state.voiceVideoFour) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
|
|
2936
3035
|
</div>
|
|
2937
3036
|
<div className={`itemed`}
|
|
2938
|
-
|
|
3037
|
+
style={{ display: (this.state.videoFiveName) ? '' : 'none' }}>
|
|
2939
3038
|
<video
|
|
2940
3039
|
id="video5"
|
|
2941
3040
|
autoPlay
|
|
@@ -2944,53 +3043,57 @@ componentDidMount() {
|
|
|
2944
3043
|
/>
|
|
2945
3044
|
<audio id="audio5" autoPlay />
|
|
2946
3045
|
<label style={{ display: 'none' }} id="feedId5" type="text" />
|
|
3046
|
+
|
|
3047
|
+
<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`}>
|
|
2947
3048
|
{
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
<
|
|
2955
|
-
|
|
3049
|
+
this.state.voiceVideoFive && <img
|
|
3050
|
+
alt=""
|
|
3051
|
+
src={require("../../assets/img/jingyin.png").default}
|
|
3052
|
+
className="imgClassVoice voiceVideoClass"
|
|
3053
|
+
/>
|
|
3054
|
+
}
|
|
3055
|
+
<canvas style={{ display: (this.state.videoFiveName && !this.state.voiceVideoFive) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
|
|
3056
|
+
|
|
3057
|
+
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
2956
3058
|
{this.state.videoFiveName}
|
|
2957
|
-
</div>
|
|
3059
|
+
</div>
|
|
2958
3060
|
</div>
|
|
2959
|
-
<canvas style={{ display: (this.state.videoFiveName&&!this.state.voiceVideoFive) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
|
|
2960
3061
|
</div>
|
|
2961
3062
|
<div className={`itemed`} style={{ display: (this.state.videoSixName) ? '' : 'none', }}>
|
|
2962
3063
|
<video
|
|
2963
3064
|
id="video6"
|
|
2964
3065
|
autoPlay
|
|
2965
|
-
muted={true}
|
|
3066
|
+
muted={true}
|
|
2966
3067
|
className="video"
|
|
2967
3068
|
/>
|
|
2968
3069
|
<audio id="audio6" autoPlay />
|
|
2969
3070
|
<label style={{ display: 'none' }} id="feedId6" type="text" />
|
|
3071
|
+
|
|
3072
|
+
<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`}>
|
|
2970
3073
|
{
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
<
|
|
2978
|
-
|
|
3074
|
+
this.state.voiceVideoSix && <img
|
|
3075
|
+
alt=""
|
|
3076
|
+
src={require("../../assets/img/jingyin.png").default}
|
|
3077
|
+
className="imgClassVoice voiceVideoClass"
|
|
3078
|
+
/>
|
|
3079
|
+
}
|
|
3080
|
+
<canvas style={{ display: (!this.state.voiceVideoSix) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
|
|
3081
|
+
|
|
3082
|
+
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
2979
3083
|
{this.state.videoSixName}
|
|
2980
3084
|
</div>
|
|
2981
3085
|
</div>
|
|
2982
|
-
<canvas style={{ display: (!this.state.voiceVideoSix) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
|
|
2983
3086
|
|
|
2984
3087
|
</div>
|
|
2985
3088
|
<div
|
|
2986
3089
|
className={`itemed`}
|
|
2987
|
-
style={{ position: "relative",display: (this.state.videoSevenName) ? '' : 'none'}}
|
|
3090
|
+
style={{ position: "relative", display: (this.state.videoSevenName) ? '' : 'none' }}
|
|
2988
3091
|
>
|
|
2989
3092
|
{
|
|
2990
3093
|
this.state.customAudioed && <img
|
|
2991
3094
|
alt=""
|
|
2992
3095
|
src={require("../../assets/img/yingpin.png").default}
|
|
2993
|
-
style={{ width: "100%", height: "100%",}}
|
|
3096
|
+
style={{ width: "100%", height: "100%", }}
|
|
2994
3097
|
></img>
|
|
2995
3098
|
}
|
|
2996
3099
|
<div className="video1Div" style={{ display: (!this.state.customAudioed) ? '' : 'none', }}>
|
|
@@ -3002,6 +3105,8 @@ componentDidMount() {
|
|
|
3002
3105
|
/>
|
|
3003
3106
|
<audio id="audio7" autoPlay />
|
|
3004
3107
|
<label style={{ display: 'none' }} id="feedId7" type="text" />
|
|
3108
|
+
|
|
3109
|
+
<div style={{ display: (this.state.videoSevenName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
|
|
3005
3110
|
{
|
|
3006
3111
|
this.state.voiceVideoSeven && <img
|
|
3007
3112
|
alt=""
|
|
@@ -3009,65 +3114,69 @@ componentDidMount() {
|
|
|
3009
3114
|
className="imgClassVoice voiceVideoClass"
|
|
3010
3115
|
/>
|
|
3011
3116
|
}
|
|
3012
|
-
<
|
|
3013
|
-
|
|
3117
|
+
<canvas style={{ display: (this.state.videoSevenName && !this.state.voiceVideoSeven) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView7" width="40" height="70"></canvas>
|
|
3118
|
+
|
|
3119
|
+
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
3014
3120
|
{this.state.videoSevenName}
|
|
3015
3121
|
</div>
|
|
3016
3122
|
|
|
3017
|
-
|
|
3123
|
+
|
|
3018
3124
|
</div>
|
|
3019
|
-
<canvas style={{ display: (this.state.videoSevenName&&!this.state.voiceVideoSeven) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView7" width="40" height="70"></canvas>
|
|
3020
3125
|
</div>
|
|
3021
3126
|
</div>
|
|
3022
3127
|
<div className={`itemed`} style={{ display: (this.state.videoEightName) ? '' : 'none', }}>
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3128
|
+
<video
|
|
3129
|
+
id="video8"
|
|
3130
|
+
autoPlay
|
|
3131
|
+
muted={true}
|
|
3132
|
+
className="video"
|
|
3133
|
+
/>
|
|
3134
|
+
<audio id="audio8" autoPlay />
|
|
3135
|
+
<label style={{ display: 'none' }} id="feedId8" type="text" />
|
|
3136
|
+
|
|
3137
|
+
<div style={{ display: (this.state.videoEightName) ? '' : 'none' }} className={`customerTitle titleSamlle`}>
|
|
3138
|
+
{
|
|
3139
|
+
this.state.voiceVideoEight && <img
|
|
3140
|
+
alt=""
|
|
3141
|
+
src={require("../../assets/img/jingyin.png").default}
|
|
3142
|
+
className="imgClassVoice voiceVideoClass"
|
|
3028
3143
|
/>
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
src={require("../../assets/img/jingyin.png").default}
|
|
3035
|
-
className="imgClassVoice voiceVideoClass"
|
|
3036
|
-
/>
|
|
3037
|
-
}
|
|
3038
|
-
<div style={{ display: (this.state.videoEightName) ? '' : 'none'}} className={`customerTitle titleSamlle`}>
|
|
3039
|
-
<div className='titleName' style={{ background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}}>
|
|
3040
|
-
{this.state.videoEightName}
|
|
3041
|
-
</div>
|
|
3144
|
+
}
|
|
3145
|
+
<canvas style={{ display: (this.state.videoEightName && !this.state.voiceVideoEight) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView8" width="40" height="70"></canvas>
|
|
3146
|
+
|
|
3147
|
+
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
3148
|
+
{this.state.videoEightName}
|
|
3042
3149
|
</div>
|
|
3043
|
-
|
|
3150
|
+
</div>
|
|
3044
3151
|
</div>
|
|
3045
3152
|
<div className={`itemed`} style={{ display: (this.state.videoNineName) ? '' : 'none', }}>
|
|
3046
3153
|
<video
|
|
3047
3154
|
id="video9"
|
|
3048
3155
|
autoPlay
|
|
3049
|
-
muted={true}
|
|
3156
|
+
muted={true}
|
|
3050
3157
|
className="video"
|
|
3051
3158
|
/>
|
|
3052
3159
|
<audio id="audio9" autoPlay />
|
|
3053
3160
|
<label style={{ display: 'none' }} id="feedId9" type="text" />
|
|
3161
|
+
|
|
3162
|
+
<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`}>
|
|
3054
3163
|
{
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
<
|
|
3062
|
-
|
|
3164
|
+
this.state.voiceVideoNine && <img
|
|
3165
|
+
alt=""
|
|
3166
|
+
src={require("../../assets/img/jingyin.png").default}
|
|
3167
|
+
className="imgClassVoice voiceVideoClass"
|
|
3168
|
+
/>
|
|
3169
|
+
}
|
|
3170
|
+
<canvas style={{ display: (this.state.videoNineName && !this.state.voiceVideoSix) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView9" width="40" height="70"></canvas>
|
|
3171
|
+
|
|
3172
|
+
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
3063
3173
|
{this.state.videoNineName}
|
|
3064
3174
|
</div>
|
|
3065
3175
|
</div>
|
|
3066
|
-
<canvas style={{ display: (this.state.videoNineName && !this.state.voiceVideoSix) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView9" width="40" height="70"></canvas>
|
|
3067
3176
|
|
|
3068
3177
|
</div>
|
|
3069
3178
|
<div className={`itemed`}
|
|
3070
|
-
|
|
3179
|
+
style={{ display: (this.state.videoTenName) ? '' : 'none' }}>
|
|
3071
3180
|
<video
|
|
3072
3181
|
id="video10"
|
|
3073
3182
|
autoPlay
|
|
@@ -3076,19 +3185,21 @@ componentDidMount() {
|
|
|
3076
3185
|
/>
|
|
3077
3186
|
<audio id="audio10" autoPlay />
|
|
3078
3187
|
<label style={{ display: 'none' }} id="feedId10" type="text" />
|
|
3188
|
+
|
|
3189
|
+
<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`}>
|
|
3079
3190
|
{
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
<
|
|
3087
|
-
|
|
3191
|
+
this.state.voiceVideoTen && <img
|
|
3192
|
+
alt=""
|
|
3193
|
+
src={require("../../assets/img/jingyin.png").default}
|
|
3194
|
+
className="imgClassVoice voiceVideoClass"
|
|
3195
|
+
/>
|
|
3196
|
+
}
|
|
3197
|
+
<canvas style={{ display: (this.state.videoTenName && !this.state.voiceVideoTen) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView10" width="40" height="70"></canvas>
|
|
3198
|
+
|
|
3199
|
+
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
3088
3200
|
{this.state.videoTenName}
|
|
3089
3201
|
</div>
|
|
3090
3202
|
</div>
|
|
3091
|
-
<canvas style={{ display: (this.state.videoTenName&&!this.state.voiceVideoTen) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView10" width="40" height="70"></canvas>
|
|
3092
3203
|
</div>
|
|
3093
3204
|
<div className={`itemed`} style={{ display: (this.state.videoElevenName) ? '' : 'none', }}>
|
|
3094
3205
|
<video
|
|
@@ -3099,22 +3210,24 @@ componentDidMount() {
|
|
|
3099
3210
|
/>
|
|
3100
3211
|
<audio id="audio11" autoPlay />
|
|
3101
3212
|
<label style={{ display: 'none' }} id="feedId11" type="text" />
|
|
3213
|
+
|
|
3214
|
+
<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`}>
|
|
3102
3215
|
{
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
<
|
|
3110
|
-
|
|
3216
|
+
this.state.voiceVideoEleven && <img
|
|
3217
|
+
alt=""
|
|
3218
|
+
src={require("../../assets/img/jingyin.png").default}
|
|
3219
|
+
className="imgClassVoice voiceVideoClass"
|
|
3220
|
+
/>
|
|
3221
|
+
}
|
|
3222
|
+
<canvas style={{ display: (this.state.videoElevenName && !this.state.voiceVideoEleven) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView11" width="40" height="70"></canvas>
|
|
3223
|
+
|
|
3224
|
+
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
3111
3225
|
{this.state.videoElevenName}
|
|
3112
3226
|
</div>
|
|
3113
3227
|
</div>
|
|
3114
|
-
<canvas style={{ display: (this.state.videoElevenName&&!this.state.voiceVideoEleven) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView11" width="40" height="70"></canvas>
|
|
3115
3228
|
</div>
|
|
3116
3229
|
<div className={`itemed`}
|
|
3117
|
-
|
|
3230
|
+
style={{ display: (this.state.videoTwelveName) ? '' : 'none' }}>
|
|
3118
3231
|
<video
|
|
3119
3232
|
id="video12"
|
|
3120
3233
|
autoPlay
|
|
@@ -3123,24 +3236,27 @@ componentDidMount() {
|
|
|
3123
3236
|
/>
|
|
3124
3237
|
<audio id="audio12" autoPlay />
|
|
3125
3238
|
<label style={{ display: 'none' }} id="feedId12" type="text" />
|
|
3239
|
+
|
|
3240
|
+
<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`}>
|
|
3126
3241
|
{
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
<
|
|
3134
|
-
|
|
3242
|
+
this.state.voiceVideoTwelve && <img
|
|
3243
|
+
alt=""
|
|
3244
|
+
src={require("../../assets/img/jingyin.png").default}
|
|
3245
|
+
className="imgClassVoice voiceVideoClass"
|
|
3246
|
+
/>
|
|
3247
|
+
}
|
|
3248
|
+
<canvas style={{ display: (this.state.videoTwelveName && !this.state.voiceVideoTwelve) ? '' : 'none',width: '25px',height:'25px','margin-top': '4px' }} className="canvasClassOne" id="subscribe_volumeView12" width="40" height="70"></canvas>
|
|
3249
|
+
|
|
3250
|
+
<div className='titleName' style={{ color: this.props.titleColor, 'font-size': this.props.fontSize + 'px', 'font-family': this.props.fontFamily }}>
|
|
3135
3251
|
{this.state.videoTwelveName}
|
|
3136
|
-
</div>
|
|
3252
|
+
</div>
|
|
3137
3253
|
</div>
|
|
3138
|
-
<canvas style={{ display: (this.state.videoTwelveName&&!this.state.voiceVideoTwelve) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView12" width="40" height="70"></canvas>
|
|
3139
3254
|
</div>
|
|
3140
|
-
|
|
3141
|
-
|
|
3255
|
+
|
|
3256
|
+
|
|
3142
3257
|
</div>
|
|
3143
|
-
<img id="icon_huatong" style={{display:'none'}} src={require("../../assets/img/icon_huatong.png").default}></img>
|
|
3258
|
+
<img id="icon_huatong" style={{ display: 'none' }} src={require("../../assets/img/icon_huatong.png").default}></img>
|
|
3259
|
+
</div>
|
|
3144
3260
|
</div>
|
|
3145
3261
|
<Foot
|
|
3146
3262
|
img={this.state.voiceImg}
|
|
@@ -3165,6 +3281,7 @@ componentDidMount() {
|
|
|
3165
3281
|
customerFaceClick={this.customerFaceClick}
|
|
3166
3282
|
ocrClick={this.ocrClick}
|
|
3167
3283
|
switchExternal={this.switchExternal}
|
|
3284
|
+
inspection={this.inspection}
|
|
3168
3285
|
></Foot>
|
|
3169
3286
|
<Modal cancelText="取消" okText="确定" visible={this.state.isModalVisible} onOk={this.handleOk}
|
|
3170
3287
|
onCancel={this.handleCancel}>
|
|
@@ -3175,9 +3292,11 @@ componentDidMount() {
|
|
|
3175
3292
|
!this.state.isSuspend && <span>确定是否暂停会话?</span>
|
|
3176
3293
|
}
|
|
3177
3294
|
</Modal>
|
|
3178
|
-
<Modal
|
|
3179
|
-
|
|
3180
|
-
<
|
|
3295
|
+
<Modal closable={false} centered={true} visible={this.state.isModalVisibleEnd} footer={[
|
|
3296
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelEnd}>取消</Button>,
|
|
3297
|
+
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkEnd}>确定</Button>
|
|
3298
|
+
]}>
|
|
3299
|
+
<div className='endModal'>确定是否结束会话?</div>
|
|
3181
3300
|
</Modal>
|
|
3182
3301
|
<Modal title={this.state.titleModal} cancelText="取消" okText="确定" visible={this.state.isModalVisibleFacial}
|
|
3183
3302
|
onOk={this.handleOkFacial} onCancel={this.handleCancelFacial}>
|
|
@@ -3186,18 +3305,17 @@ componentDidMount() {
|
|
|
3186
3305
|
</div>
|
|
3187
3306
|
|
|
3188
3307
|
</Modal>
|
|
3189
|
-
<Modal title="新增预约" visible={this.state.isModalVisibleInvitation} footer={[
|
|
3190
|
-
<Button
|
|
3191
|
-
<Button onClick={this.
|
|
3308
|
+
<Modal className="modelClass" title="新增预约" closable={false} centered={true} visible={this.state.isModalVisibleInvitation} footer={[
|
|
3309
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelInvitation}>取消</Button>,
|
|
3310
|
+
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkInvitation}>确定</Button>
|
|
3192
3311
|
]}>
|
|
3193
3312
|
<div>
|
|
3194
|
-
<div>输入员工号:</div>
|
|
3195
3313
|
<div className="invitationDiv">
|
|
3196
|
-
<input className="inputClick" placeholder="请输入员工号" value={this.state.employeeNumber} onChange={e => this.handleChange(e)}></input>
|
|
3314
|
+
<span class="modalSpan">员工号:</span><input className="inputClick" placeholder="请输入员工号" value={this.state.employeeNumber} onChange={e => this.handleChange(e)}></input>
|
|
3197
3315
|
<span className="invitationSpan" onClick={this.queryStaff}>查 询</span>
|
|
3198
3316
|
</div>
|
|
3199
3317
|
<div className="invitationDiv">
|
|
3200
|
-
|
|
3318
|
+
<span class="modalSpan"> 姓名:</span><span>{this.state.employeeName}</span>
|
|
3201
3319
|
</div>
|
|
3202
3320
|
</div>
|
|
3203
3321
|
</Modal>
|
|
@@ -3218,6 +3336,17 @@ componentDidMount() {
|
|
|
3218
3336
|
></CanvasDraw>
|
|
3219
3337
|
</div>
|
|
3220
3338
|
</Modal>
|
|
3339
|
+
<Modal title="设备检测" closable={false} centered={true} visible={this.state.isModalVisibleInspection} footer={[
|
|
3340
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelInspection}>取消</Button>,
|
|
3341
|
+
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkInspection}>确定</Button>
|
|
3342
|
+
]}>
|
|
3343
|
+
<div class="inspection">
|
|
3344
|
+
<div>摄像头设备:</div>
|
|
3345
|
+
{camera}
|
|
3346
|
+
<div>麦克风设备:</div>
|
|
3347
|
+
{microphone}
|
|
3348
|
+
</div>
|
|
3349
|
+
</Modal>
|
|
3221
3350
|
<video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="0" height="0"
|
|
3222
3351
|
webkit-playsinline="true" playsInline={true} x5-playsinline="x5-playsinline"
|
|
3223
3352
|
x-webkit-airplay="true"></video>
|
|
@@ -3235,14 +3364,14 @@ Video.defaultProps = {
|
|
|
3235
3364
|
voiceColor: '#0AE544',
|
|
3236
3365
|
titleBackground: 'rgba(0,0,0,0.65)',
|
|
3237
3366
|
titleColor: '#fff',
|
|
3238
|
-
microphoneSize:
|
|
3367
|
+
microphoneSize: 25,
|
|
3239
3368
|
fontSize: '14',
|
|
3240
3369
|
fontFamily: 'auto',
|
|
3241
3370
|
menus: ['SHARE', 'FRIES', 'OCR', 'INVITE', 'PIP'],
|
|
3242
3371
|
meetingInfo: {
|
|
3243
3372
|
title: '测试',
|
|
3244
3373
|
host: 'wmz',
|
|
3245
|
-
customers: ['王三','张思']
|
|
3374
|
+
customers: ['王三', '张思']
|
|
3246
3375
|
}
|
|
3247
3376
|
}
|
|
3248
3377
|
export default Video
|