react_hsbc_teller 0.6.8 → 0.7.2
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/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/foot/foot.jsx +2 -2
- package/packages/pages/index.jsx +3 -4
- package/packages/pages/video/video.jsx +172 -69
- package/packages/utils/cell.js +2 -2
package/package.json
CHANGED
|
@@ -51,7 +51,7 @@ export default class foot extends Component {
|
|
|
51
51
|
this.props.inspection()
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
const {clickedOcr,clickedFacial,isTranscribing,img,cameraImg,screenName,suspendName,customerList,menus} = this.props
|
|
54
|
+
const {clickedOcr,clickedFacial,isTranscribing,img,cameraImg,screenName,suspendName,customerList,menus,voiceName} = this.props
|
|
55
55
|
const content = (
|
|
56
56
|
<div>
|
|
57
57
|
{customerList.map((item,index)=>{
|
|
@@ -137,7 +137,7 @@ export default class foot extends Component {
|
|
|
137
137
|
<div className="one">
|
|
138
138
|
<img className="imgClass" src={img} alt="" />
|
|
139
139
|
<div className="text">
|
|
140
|
-
|
|
140
|
+
{voiceName}
|
|
141
141
|
</div>
|
|
142
142
|
</div>
|
|
143
143
|
|
package/packages/pages/index.jsx
CHANGED
|
@@ -10,7 +10,7 @@ class Main extends Component {
|
|
|
10
10
|
zh: {},
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
// 获取语言包
|
|
15
15
|
updateLanguage = async () => {
|
|
16
16
|
let res = await API.selectLang()
|
|
@@ -32,7 +32,6 @@ class Main extends Component {
|
|
|
32
32
|
// console.log(JSON.parse(localStorage.getItem("langData")))
|
|
33
33
|
this.updateLanguage()
|
|
34
34
|
}
|
|
35
|
-
|
|
36
35
|
render() {
|
|
37
36
|
const lang = this.props.lang
|
|
38
37
|
|
|
@@ -46,8 +45,8 @@ class Main extends Component {
|
|
|
46
45
|
}
|
|
47
46
|
Main.defaultProps = {
|
|
48
47
|
lang: 'zh',
|
|
49
|
-
baseURL: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
|
|
50
|
-
|
|
48
|
+
// baseURL: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
|
|
49
|
+
baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
|
|
51
50
|
|
|
52
51
|
}
|
|
53
52
|
export default Main
|
|
@@ -30,6 +30,10 @@ const LEAVE_TYPE = {
|
|
|
30
30
|
let pictureInPictureVideo = ''
|
|
31
31
|
@injectIntl
|
|
32
32
|
class Video extends Component {
|
|
33
|
+
constructor(props) {
|
|
34
|
+
super(props)
|
|
35
|
+
this.cancel = axios.CancelToken.source()
|
|
36
|
+
}
|
|
33
37
|
signCanvas = React.createRef();
|
|
34
38
|
state = {
|
|
35
39
|
isWhiteboard: false,
|
|
@@ -53,6 +57,7 @@ class Video extends Component {
|
|
|
53
57
|
cameraImg: cameraImgOpen,
|
|
54
58
|
voiceStatue: false,
|
|
55
59
|
voiceImg: voiceImgOpen,
|
|
60
|
+
voiceName: '静音',
|
|
56
61
|
isCustomer: false,
|
|
57
62
|
publishDevic: 1,
|
|
58
63
|
isSharedScreen: false,
|
|
@@ -105,7 +110,8 @@ class Video extends Component {
|
|
|
105
110
|
cameraValue: '',
|
|
106
111
|
microphoneValue: '',
|
|
107
112
|
imStatus: false,
|
|
108
|
-
imJoinRoom: false
|
|
113
|
+
imJoinRoom: false,
|
|
114
|
+
analyserData: new Map(),
|
|
109
115
|
};
|
|
110
116
|
// eslint-disable-next-line no-undef
|
|
111
117
|
test_controller = '';
|
|
@@ -178,6 +184,12 @@ class Video extends Component {
|
|
|
178
184
|
appId: result.appId,
|
|
179
185
|
bizName: result.bizName
|
|
180
186
|
});
|
|
187
|
+
// const data1={
|
|
188
|
+
// hostname: 'im.uat.dsp.hsbcfts.com.cn',
|
|
189
|
+
// webPort: '443',
|
|
190
|
+
// account: 'web',
|
|
191
|
+
// openfireToken: '123'
|
|
192
|
+
// }
|
|
181
193
|
window.sessionStorage.setItem('sigData', JSON.stringify(result));
|
|
182
194
|
if (data.sigType == 1) {
|
|
183
195
|
this.handleEdit()
|
|
@@ -190,6 +202,9 @@ class Video extends Component {
|
|
|
190
202
|
handleEdit = () => {
|
|
191
203
|
console.log(JSON.parse(window.sessionStorage.getItem('sigData')));
|
|
192
204
|
// eslint-disable-next-line no-undef
|
|
205
|
+
// initWebSocket('wss://im.uat.dsp.hsbcfts.com.cn:443/wealth/im/ws/')
|
|
206
|
+
// initWebSocket('wss://' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname + ':' + '15603' + '/ws/');
|
|
207
|
+
|
|
193
208
|
initWebSocket('wss://' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname + ':' + JSON.parse(window.sessionStorage.getItem('sigData')).webPort + '/ws/');
|
|
194
209
|
const config_param = {};
|
|
195
210
|
config_param.workspaceId = this.state.workSpaceId;
|
|
@@ -536,80 +551,93 @@ class Video extends Component {
|
|
|
536
551
|
if (document.getElementById('video1').name) {
|
|
537
552
|
list.push({
|
|
538
553
|
name: 'video1',
|
|
539
|
-
title: this.state.videoOneName
|
|
554
|
+
title: this.state.videoOneName,
|
|
555
|
+
voice: 'voiceVideoOne'
|
|
540
556
|
})
|
|
541
557
|
}
|
|
542
558
|
if (document.getElementById('publish_video1').name) {
|
|
543
559
|
list.push({
|
|
544
560
|
name: 'publish_video1',
|
|
545
|
-
title: '坐席'
|
|
561
|
+
title: this.props.meetingInfo.host ? this.props.meetingInfo.host : '坐席',
|
|
562
|
+
voice: 'voiceStatue'
|
|
546
563
|
})
|
|
547
564
|
}
|
|
548
565
|
if (document.getElementById('video2').name) {
|
|
549
566
|
list.push({
|
|
550
567
|
name: 'video2',
|
|
551
|
-
title: this.state.videoTwoName
|
|
568
|
+
title: this.state.videoTwoName,
|
|
569
|
+
voice: 'voiceVideoTwo'
|
|
552
570
|
})
|
|
553
571
|
}
|
|
554
572
|
if (document.getElementById('video3').name) {
|
|
555
573
|
list.push({
|
|
556
574
|
name: 'video3',
|
|
557
|
-
title: this.state.videoThreeName
|
|
575
|
+
title: this.state.videoThreeName,
|
|
576
|
+
voice: 'voiceVideoThree'
|
|
558
577
|
})
|
|
559
578
|
}
|
|
560
579
|
if (document.getElementById('video4').name) {
|
|
561
580
|
list.push({
|
|
562
581
|
name: 'video4',
|
|
563
|
-
title: this.state.videoFourName
|
|
582
|
+
title: this.state.videoFourName,
|
|
583
|
+
voice: 'voiceVideoFour'
|
|
564
584
|
})
|
|
565
585
|
}
|
|
566
586
|
if (document.getElementById('video5').name) {
|
|
567
587
|
list.push({
|
|
568
588
|
name: 'video5',
|
|
569
|
-
title: this.state.videoFiveName
|
|
589
|
+
title: this.state.videoFiveName,
|
|
590
|
+
voice: 'voiceVideoFive'
|
|
570
591
|
})
|
|
571
592
|
}
|
|
572
593
|
if (document.getElementById('video6').name) {
|
|
573
594
|
list.push({
|
|
574
595
|
name: 'video6',
|
|
575
|
-
title: this.state.videoSixName
|
|
596
|
+
title: this.state.videoSixName,
|
|
597
|
+
voice: 'voiceVideoSix'
|
|
576
598
|
})
|
|
577
599
|
}
|
|
578
600
|
|
|
579
601
|
if (document.getElementById('video7').name) {
|
|
580
602
|
list.push({
|
|
581
603
|
name: 'video7',
|
|
582
|
-
title: this.state.videoSevenName
|
|
604
|
+
title: this.state.videoSevenName,
|
|
605
|
+
voice: 'voiceVideoSeven'
|
|
583
606
|
})
|
|
584
607
|
}
|
|
585
608
|
if (document.getElementById('video8').name) {
|
|
586
609
|
list.push({
|
|
587
610
|
name: 'video8',
|
|
588
|
-
title: this.state.videoEightName
|
|
611
|
+
title: this.state.videoEightName,
|
|
612
|
+
voice: 'voiceVideoEight'
|
|
589
613
|
})
|
|
590
614
|
}
|
|
591
615
|
if (document.getElementById('video9').name) {
|
|
592
616
|
list.push({
|
|
593
617
|
name: 'video9',
|
|
594
|
-
title: this.state.videoNineName
|
|
618
|
+
title: this.state.videoNineName,
|
|
619
|
+
voice: 'voiceVideoNine'
|
|
595
620
|
})
|
|
596
621
|
}
|
|
597
622
|
if (document.getElementById('video10').name) {
|
|
598
623
|
list.push({
|
|
599
624
|
name: 'video10',
|
|
600
|
-
title: this.state.videoTenName
|
|
625
|
+
title: this.state.videoTenName,
|
|
626
|
+
voice: 'voiceVideoTen'
|
|
601
627
|
})
|
|
602
628
|
}
|
|
603
629
|
if (document.getElementById('video11').name) {
|
|
604
630
|
list.push({
|
|
605
631
|
name: 'video11',
|
|
606
|
-
title: this.state.videoElevenName
|
|
632
|
+
title: this.state.videoElevenName,
|
|
633
|
+
voice: 'voiceVideoEleven'
|
|
607
634
|
})
|
|
608
635
|
}
|
|
609
636
|
if (document.getElementById('video12').name) {
|
|
610
637
|
list.push({
|
|
611
638
|
name: 'video12',
|
|
612
|
-
title: this.state.videoTwelveName
|
|
639
|
+
title: this.state.videoTwelveName,
|
|
640
|
+
voice: 'voiceVideoTwelve'
|
|
613
641
|
})
|
|
614
642
|
}
|
|
615
643
|
console.log(list)
|
|
@@ -621,7 +649,7 @@ class Video extends Component {
|
|
|
621
649
|
canvas.height = height;
|
|
622
650
|
|
|
623
651
|
interval = setInterval(() => {
|
|
624
|
-
cobj.clearRect(0, 0, width, height);
|
|
652
|
+
// cobj.clearRect(0, 0, width, height);
|
|
625
653
|
for (let i = 0; i < list.length; i++) {
|
|
626
654
|
|
|
627
655
|
let videoId = list[i].name;
|
|
@@ -645,20 +673,20 @@ class Video extends Component {
|
|
|
645
673
|
cobj.stroke();
|
|
646
674
|
cobj.beginPath();
|
|
647
675
|
cobj.font = "28px auto";
|
|
648
|
-
cobj.textAlign = '
|
|
676
|
+
cobj.textAlign = 'left';
|
|
649
677
|
cobj.lineWidth = 1;
|
|
650
678
|
// 文字
|
|
651
679
|
let str = list[i].title
|
|
652
680
|
for (let k = 0; k < str.length; k++){
|
|
653
681
|
// console.log(str.substring(0,k+1))
|
|
654
682
|
// console.log(cobj.measureText(str.substring(0,k+1)).width)
|
|
655
|
-
if (cobj.measureText(str.substring(0,k+1)).width>
|
|
683
|
+
if (cobj.measureText(str.substring(0,k+1)).width>240){
|
|
656
684
|
str = str.substring(0,k-2)
|
|
657
685
|
str += '...'
|
|
658
686
|
break;
|
|
659
687
|
}
|
|
660
688
|
}
|
|
661
|
-
cobj.strokeText(str,
|
|
689
|
+
cobj.strokeText(str, 70, 360 * (i + 1) - 20);
|
|
662
690
|
cobj.stroke();
|
|
663
691
|
//左边框
|
|
664
692
|
cobj.beginPath();
|
|
@@ -696,44 +724,60 @@ class Video extends Component {
|
|
|
696
724
|
cobj.lineWidth = 5; //线的边框为10像素
|
|
697
725
|
cobj.strokeStyle = '#d9363e';
|
|
698
726
|
cobj.stroke(); //绘制定义的图形
|
|
727
|
+
|
|
728
|
+
// 绘制话筒图标
|
|
729
|
+
let microphoneSize = 50
|
|
730
|
+
var img = document.getElementById("icon_huatong");
|
|
731
|
+
var img1 = document.getElementById("icon_huatong_close");
|
|
732
|
+
if(this.state[list[i].voice]) {
|
|
733
|
+
cobj.drawImage(img1, 10, 360 * (i + 1) - 60, microphoneSize, microphoneSize);
|
|
734
|
+
} else {
|
|
735
|
+
cobj.drawImage(img, 10, 360 * (i + 1) - 60, microphoneSize, microphoneSize);
|
|
736
|
+
|
|
737
|
+
// 绘制实时音量
|
|
738
|
+
let sid = document.getElementById(list[i].name).name
|
|
739
|
+
let analyser = this.state.analyserData.get(sid)
|
|
740
|
+
aou(analyser)
|
|
741
|
+
// let sid = document.getElementById(list[i].name).name
|
|
742
|
+
// let stream = this.test_controller.GetMediaInfo(sid).audio_
|
|
743
|
+
// let acc = new AudioContext()
|
|
744
|
+
// let mic = acc.createMediaStreamSource(stream)
|
|
745
|
+
// let analyser = acc.createAnalyser()
|
|
746
|
+
// analyser.fftSize = 256
|
|
747
|
+
// mic.connect(analyser)
|
|
748
|
+
// aou(analyser)
|
|
749
|
+
// let microphoneSize = 50
|
|
750
|
+
// var img = document.getElementById("icon_huatong");
|
|
751
|
+
// cobj.drawImage(img, 600, 360 * (i + 1) - 60, microphoneSize, microphoneSize);
|
|
752
|
+
function aou(analyser){
|
|
753
|
+
let dataArray = new Uint8Array(analyser.frequencyBinCount);
|
|
754
|
+
analyser.getByteFrequencyData(dataArray);
|
|
755
|
+
let step = Math.round(dataArray.length / 60); //采样步长
|
|
756
|
+
// 以画布左上角为坐标原点
|
|
757
|
+
let drawArea = {
|
|
758
|
+
x1: 28/50 * microphoneSize + 10, // 波动范围右下角的点坐标
|
|
759
|
+
y1: 25/50 * microphoneSize + 360 * (i + 1) - 60,
|
|
760
|
+
x2: 22/50 * microphoneSize + 10, // 波动范围左上角的点坐标
|
|
761
|
+
y2: 10/50 * microphoneSize + 360 * (i + 1) - 60,
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
for (var j = 0; j < 40; j++) {
|
|
766
|
+
let energy = (dataArray[step * j] / 256.0) * 80;
|
|
767
|
+
cobj.beginPath();
|
|
768
|
+
cobj.fillStyle = "#0AE544";
|
|
769
|
+
const { x1,y1,x2,y2} = drawArea
|
|
770
|
+
let width = x1-x2;
|
|
771
|
+
let height = (energy>20?(energy-20):0) * (y1 - y2 ) / 70
|
|
772
|
+
let startX = x2 // 绘制起始点x
|
|
773
|
+
let startY = y1 - height // 绘制起始点y
|
|
774
|
+
cobj.fillRect(startX, startY, width, height )
|
|
775
|
+
}
|
|
776
|
+
requestAnimationFrame(aou.bind(this, analyser));
|
|
699
777
|
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
// let mic = acc.createMediaStreamSource(stream)
|
|
704
|
-
// let analyser = acc.createAnalyser()
|
|
705
|
-
// analyser.fftSize = 256
|
|
706
|
-
// mic.connect(analyser)
|
|
707
|
-
// aou(analyser)
|
|
708
|
-
// let microphoneSize = this.props.microphoneSize
|
|
709
|
-
// var img = document.getElementById("icon_huatong");
|
|
710
|
-
// cobj.drawImage(img, 600, 360 * (i + 1) - 60, microphoneSize, microphoneSize);
|
|
711
|
-
// function aou(analyser){
|
|
712
|
-
// let dataArray = new Uint8Array(analyser.frequencyBinCount);
|
|
713
|
-
// analyser.getByteFrequencyData(dataArray);
|
|
714
|
-
// let step = Math.round(dataArray.length / 60); //采样步长
|
|
715
|
-
// // 以画布左上角为坐标原点
|
|
716
|
-
// let drawArea = {
|
|
717
|
-
// x1: 28/50 * microphoneSize + 600, // 波动范围右下角的点坐标
|
|
718
|
-
// y1: 25/50 * microphoneSize + 360 * (i + 1) - 60,
|
|
719
|
-
// x2: 22/50 * microphoneSize + 600, // 波动范围左上角的点坐标
|
|
720
|
-
// y2: 10/50 * microphoneSize + 360 * (i + 1) - 60,
|
|
721
|
-
// }
|
|
722
|
-
|
|
723
|
-
// for (var j = 0; j < 40; j++) {
|
|
724
|
-
// let energy = (dataArray[step * j] / 256.0) * 80;
|
|
725
|
-
// cobj.beginPath();
|
|
726
|
-
// cobj.fillStyle = "#0AE544";
|
|
727
|
-
// const { x1,y1,x2,y2} = drawArea
|
|
728
|
-
// let width = x1-x2;
|
|
729
|
-
// let height = (energy>20?(energy-20):0) * (y1 - y2 ) / 70
|
|
730
|
-
// let startX = x2 // 绘制起始点x
|
|
731
|
-
// let startY = y1 - height // 绘制起始点y
|
|
732
|
-
// cobj.fillRect(startX, startY, width, height )
|
|
733
|
-
// }
|
|
734
|
-
// requestAnimationFrame(aou.bind(this, analyser));
|
|
735
|
-
|
|
736
|
-
// }
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
|
|
737
781
|
}
|
|
738
782
|
}, 100);
|
|
739
783
|
const captureStream = canvas.captureStream();
|
|
@@ -1070,6 +1114,7 @@ class Video extends Component {
|
|
|
1070
1114
|
console.log('deviceId' + devicesInfo[i].deviceId);
|
|
1071
1115
|
|
|
1072
1116
|
b.actionid = devicesInfo[i].deviceId;
|
|
1117
|
+
b.groupId = devicesInfo[i].groupId;
|
|
1073
1118
|
if (
|
|
1074
1119
|
devicesInfo[i].label === '' ||
|
|
1075
1120
|
devicesInfo[i].label === undefined ||
|
|
@@ -1083,6 +1128,7 @@ class Video extends Component {
|
|
|
1083
1128
|
} else if (devicesInfo[i].kind === 'audioinput') {
|
|
1084
1129
|
// 麦克风
|
|
1085
1130
|
b.actionid = devicesInfo[i].deviceId;
|
|
1131
|
+
b.groupId = devicesInfo[i].groupId;
|
|
1086
1132
|
if (
|
|
1087
1133
|
devicesInfo[i].label === '' ||
|
|
1088
1134
|
devicesInfo[i].label === undefined ||
|
|
@@ -1096,6 +1142,7 @@ class Video extends Component {
|
|
|
1096
1142
|
} else if (devicesInfo[i].kind === 'audiooutput') {
|
|
1097
1143
|
// 喇叭
|
|
1098
1144
|
b.actionid = devicesInfo[i].deviceId;
|
|
1145
|
+
b.groupId = devicesInfo[i].groupId;
|
|
1099
1146
|
if (
|
|
1100
1147
|
devicesInfo[i].label === '' ||
|
|
1101
1148
|
devicesInfo[i].label === undefined ||
|
|
@@ -1108,10 +1155,34 @@ class Video extends Component {
|
|
|
1108
1155
|
obj2.push(b)
|
|
1109
1156
|
}
|
|
1110
1157
|
}
|
|
1158
|
+
const objList = []
|
|
1159
|
+
const arr = {}
|
|
1160
|
+
const objList1 = []
|
|
1161
|
+
const arr1 = {}
|
|
1162
|
+
const objList2 = []
|
|
1163
|
+
const arr2 = {}
|
|
1164
|
+
for(var i =0; i<obj.length; i++){
|
|
1165
|
+
if(!arr[obj[i].groupId]){
|
|
1166
|
+
objList.push(obj[i]);
|
|
1167
|
+
arr[obj[i].groupId] = true;
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
for(var i =0; i<obj1.length; i++){
|
|
1171
|
+
if(!arr1[obj1[i].groupId]){
|
|
1172
|
+
objList1.push(obj1[i]);
|
|
1173
|
+
arr1[obj1[i].groupId] = true;
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
for(var i =0; i<obj2.length; i++){
|
|
1177
|
+
if(!arr2[obj2[i].groupId]){
|
|
1178
|
+
objList2.push(obj2[i]);
|
|
1179
|
+
arr2[obj2[i].groupId] = true;
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1111
1182
|
this.setState({
|
|
1112
|
-
cameraList:
|
|
1113
|
-
microphoneList:
|
|
1114
|
-
speakerList:
|
|
1183
|
+
cameraList: objList,
|
|
1184
|
+
microphoneList: objList1,
|
|
1185
|
+
speakerList: [objList2[0]]
|
|
1115
1186
|
})
|
|
1116
1187
|
if (!this.state.appId) {
|
|
1117
1188
|
this.mpaasSig(data);
|
|
@@ -1402,6 +1473,21 @@ class Video extends Component {
|
|
|
1402
1473
|
// 推送“有新发布”给与会者
|
|
1403
1474
|
this.test_controller.OnNewPublish = (feed) => {
|
|
1404
1475
|
console.log('有新发布者', feed);
|
|
1476
|
+
// callNimIM('sendChatMsg', {
|
|
1477
|
+
// customId: feed.uid,
|
|
1478
|
+
// content: JSON.stringify({
|
|
1479
|
+
// 'typeId': 1014,
|
|
1480
|
+
// 'sessionId': this.state.sessionId,
|
|
1481
|
+
// 'meetingInfo': {
|
|
1482
|
+
// 'title': this.props.meetingInfo.title,
|
|
1483
|
+
// 'host': this.props.meetingInfo.host,
|
|
1484
|
+
// 'customers': this.props.meetingInfo.customers
|
|
1485
|
+
// }
|
|
1486
|
+
|
|
1487
|
+
// })
|
|
1488
|
+
// }, function (code, message, data) {
|
|
1489
|
+
// })
|
|
1490
|
+
|
|
1405
1491
|
callNimIM('sendCustomCmdMsg', {
|
|
1406
1492
|
customId: this.state.imRoomId,
|
|
1407
1493
|
content: JSON.stringify({
|
|
@@ -2028,6 +2114,11 @@ class Video extends Component {
|
|
|
2028
2114
|
ctx.fillRect(startX, startY, width, height)
|
|
2029
2115
|
}
|
|
2030
2116
|
requestAnimationFrame(this.test_controller.OnVolumeAnalyser.bind(this, sid, analyser));
|
|
2117
|
+
|
|
2118
|
+
this.state.analyserData.set(sid, analyser)
|
|
2119
|
+
this.setState({
|
|
2120
|
+
analyserData: this.state.analyserData
|
|
2121
|
+
})
|
|
2031
2122
|
}
|
|
2032
2123
|
// 停止共享
|
|
2033
2124
|
this.test_controller.OnDesktopDisplayClosed = () => {
|
|
@@ -2185,6 +2276,12 @@ class Video extends Component {
|
|
|
2185
2276
|
}
|
|
2186
2277
|
}
|
|
2187
2278
|
}
|
|
2279
|
+
componentWillUnmount() {
|
|
2280
|
+
this.setState = (state, callback) => {
|
|
2281
|
+
return
|
|
2282
|
+
}
|
|
2283
|
+
this.cancel('')
|
|
2284
|
+
}
|
|
2188
2285
|
componentWillMount() {
|
|
2189
2286
|
if (this.props.sessionId) {
|
|
2190
2287
|
this.getRoomStatus({
|
|
@@ -2200,7 +2297,8 @@ class Video extends Component {
|
|
|
2200
2297
|
// 静音本地
|
|
2201
2298
|
this.setState({
|
|
2202
2299
|
voiceStatue: true,
|
|
2203
|
-
voiceImg: voiceImgCloe
|
|
2300
|
+
voiceImg: voiceImgCloe,
|
|
2301
|
+
voiceName: '解除静音'
|
|
2204
2302
|
});
|
|
2205
2303
|
let sid = document.getElementById('publish_video1').name;
|
|
2206
2304
|
if (!sid) {
|
|
@@ -2226,7 +2324,8 @@ class Video extends Component {
|
|
|
2226
2324
|
// 打开本地
|
|
2227
2325
|
this.setState({
|
|
2228
2326
|
voiceStatue: false,
|
|
2229
|
-
voiceImg: voiceImgOpen
|
|
2327
|
+
voiceImg: voiceImgOpen,
|
|
2328
|
+
voiceName: '静音'
|
|
2230
2329
|
});
|
|
2231
2330
|
let sid = document.getElementById('publish_video1').name;
|
|
2232
2331
|
if (!sid) {
|
|
@@ -2386,7 +2485,8 @@ class Video extends Component {
|
|
|
2386
2485
|
if (this.state.voiceStatue) {
|
|
2387
2486
|
// 当前是音频
|
|
2388
2487
|
this.setState({
|
|
2389
|
-
voiceImg: voiceImgCloe
|
|
2488
|
+
voiceImg: voiceImgCloe,
|
|
2489
|
+
voiceName: '解除静音'
|
|
2390
2490
|
});
|
|
2391
2491
|
let sid = document.getElementById('publish_video1').name;
|
|
2392
2492
|
if (!sid) {
|
|
@@ -2398,7 +2498,8 @@ class Video extends Component {
|
|
|
2398
2498
|
// 当前是
|
|
2399
2499
|
this.test_controller.SetLocalAudioEnable(1, parseInt(sid, 10));
|
|
2400
2500
|
this.setState({
|
|
2401
|
-
voiceImg: voiceImgOpen
|
|
2501
|
+
voiceImg: voiceImgOpen,
|
|
2502
|
+
voiceName: '静音'
|
|
2402
2503
|
})
|
|
2403
2504
|
}
|
|
2404
2505
|
callNimIM('sendCustomCmdMsg', {
|
|
@@ -2962,11 +3063,11 @@ class Video extends Component {
|
|
|
2962
3063
|
<label className='labelClass'>{meetingInfo.title}</label>
|
|
2963
3064
|
</li>
|
|
2964
3065
|
<li>
|
|
2965
|
-
<span
|
|
3066
|
+
<span>客户经理:</span>
|
|
2966
3067
|
<label className='labelClass'>{meetingInfo.host}</label>
|
|
2967
3068
|
</li>
|
|
2968
3069
|
<li>
|
|
2969
|
-
<span
|
|
3070
|
+
<span>参会者:</span>
|
|
2970
3071
|
{customerNameList}
|
|
2971
3072
|
</li>
|
|
2972
3073
|
</ul>
|
|
@@ -3000,7 +3101,7 @@ class Video extends Component {
|
|
|
3000
3101
|
/>
|
|
3001
3102
|
}
|
|
3002
3103
|
<canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
|
|
3003
|
-
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}
|
|
3104
|
+
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>{this.props.meetingInfo.host ? this.props.meetingInfo.host : '坐席'}</div>
|
|
3004
3105
|
</div>
|
|
3005
3106
|
</div>
|
|
3006
3107
|
|
|
@@ -3343,9 +3444,11 @@ class Video extends Component {
|
|
|
3343
3444
|
|
|
3344
3445
|
</div>
|
|
3345
3446
|
<img id="icon_huatong" style={{ display: 'none' }} src={require("../../assets/img/icon_huatong.png").default}></img>
|
|
3447
|
+
<img id="icon_huatong_close" style={{ display: 'none' }} src={require("../../assets/img/jingyin.png").default}></img>
|
|
3346
3448
|
</div>
|
|
3347
3449
|
</div>
|
|
3348
3450
|
<Foot
|
|
3451
|
+
voiceName={this.state.voiceName}
|
|
3349
3452
|
img={this.state.voiceImg}
|
|
3350
3453
|
screenName={this.state.screenName}
|
|
3351
3454
|
suspendName={this.state.suspendName}
|
|
@@ -3471,11 +3574,11 @@ Video.defaultProps = {
|
|
|
3471
3574
|
tellerAccount: 't001',
|
|
3472
3575
|
businessNumber: '123',
|
|
3473
3576
|
callbackUrl: 'http://47.102.126.132:8720/hsbc/callback',
|
|
3474
|
-
roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
|
|
3475
|
-
|
|
3577
|
+
// roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
|
|
3578
|
+
roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
|
|
3476
3579
|
|
|
3477
|
-
|
|
3478
|
-
resourcePath: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
|
|
3580
|
+
resourcePath: 'https://counter-web.leimondata.cn:7199',
|
|
3581
|
+
// resourcePath: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
|
|
3479
3582
|
prohbiitPrompt: '当前无客户',
|
|
3480
3583
|
voiceColor: '#0AE544',
|
|
3481
3584
|
titleBackground: 'rgba(0,0,0,0.65)',
|
package/packages/utils/cell.js
CHANGED
|
@@ -24,8 +24,8 @@ function callNimIM(method, json, callback) {
|
|
|
24
24
|
const callId = _generateId()
|
|
25
25
|
|
|
26
26
|
callbackRegister.set(callId, fn)
|
|
27
|
-
if (method == '
|
|
28
|
-
sendMessage(json.
|
|
27
|
+
if (method == 'sendChatMsg') {
|
|
28
|
+
sendMessage(json.customId, (JSON.parse(window.sessionStorage.getItem('sigData')).account + '@' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname), 'chat', json.content)
|
|
29
29
|
} else if (method == 'sendCustomCmdMsg') {
|
|
30
30
|
sendMessage(json.customId, (JSON.parse(window.sessionStorage.getItem('sigData')).account + '@' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname), 'groupchat', json.content)
|
|
31
31
|
} else if (method == 'transfer' || method == 'transferreject' || method == 'transferagree') {
|