react_hsbc_teller 1.7.1 → 1.7.4
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/assets/img/jietu.png +0 -0
- package/packages/pages/video/video.jsx +163 -51
package/package.json
CHANGED
|
Binary file
|
|
@@ -12,6 +12,7 @@ import voiceImgOpen from '../../assets/img/icon_Mute.png'
|
|
|
12
12
|
import voiceImgCloe from '../../assets/img/icon_MuteOne.png'
|
|
13
13
|
import cameraImgOpen from '../../assets/img/icon_camera.png'
|
|
14
14
|
import cameraImgCloe from '../../assets/img/icon_cameraOne.png'
|
|
15
|
+
import ocrImage from '../../assets/img/jietu.png'
|
|
15
16
|
import autod from '../../assets/mp3/joinmeeting.mp3'
|
|
16
17
|
import leftMetting from '../../assets/mp3/leftmeeting.mp3'
|
|
17
18
|
import errorPng from '../../assets/img/tooltips2_fail.png'
|
|
@@ -44,12 +45,10 @@ let messageValue = ''
|
|
|
44
45
|
let beautyNum = 0 // 0-关闭 1--弱 2--中 5---高
|
|
45
46
|
let rateList = []
|
|
46
47
|
let beautyDiv = {};
|
|
48
|
+
let isBackgroundBlur = false
|
|
49
|
+
let isSuccuseHs = false
|
|
47
50
|
let CanvasHome = styled.div`
|
|
48
51
|
position: fixed;
|
|
49
|
-
width: 76vw;
|
|
50
|
-
height: 74vh;
|
|
51
|
-
top: 3vh;
|
|
52
|
-
left: 1.5vw;
|
|
53
52
|
z-index: ${props=>props.zIndexNum};
|
|
54
53
|
|
|
55
54
|
.canvas{
|
|
@@ -75,6 +74,7 @@ const OpreateDiv = styled.div`
|
|
|
75
74
|
cursor:pointer;
|
|
76
75
|
}
|
|
77
76
|
`;
|
|
77
|
+
|
|
78
78
|
function clearStreamRemain() {
|
|
79
79
|
if (!(beautyDiv.beauty_canvas == null || beautyDiv.beauty_canvas == undefined)) {
|
|
80
80
|
beautyDiv.beauty_canvas = null;
|
|
@@ -94,6 +94,28 @@ function startBeauty(stream) {
|
|
|
94
94
|
beautyDiv = meetingBeautifyStream(newStream, beautyNum);
|
|
95
95
|
newStream = beautyDiv.stream;
|
|
96
96
|
return newStream
|
|
97
|
+
}
|
|
98
|
+
async function startHs(stream) {
|
|
99
|
+
// var canvas = document.getElementById('publish_video_canvas');
|
|
100
|
+
var video_src = document.getElementById("publish_video1");
|
|
101
|
+
var mode = 'blur';
|
|
102
|
+
video_src.srcObject = stream;
|
|
103
|
+
|
|
104
|
+
await hsInit();
|
|
105
|
+
isSuccuseHs = true;
|
|
106
|
+
hsStart(stream, mode);
|
|
107
|
+
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
async function stopHs() {
|
|
111
|
+
var video_src = document.getElementById("publish_video1");
|
|
112
|
+
if(video_src) {
|
|
113
|
+
console.log('video_src',video_src)
|
|
114
|
+
video_src.srcObject = null;
|
|
115
|
+
isSuccuseHs = false
|
|
116
|
+
hsStop();
|
|
117
|
+
}
|
|
118
|
+
|
|
97
119
|
}
|
|
98
120
|
message.config({
|
|
99
121
|
getContainer: ()=>document.getElementById('allHSBC')
|
|
@@ -377,8 +399,8 @@ class Video extends Component {
|
|
|
377
399
|
mpaasSig = async data => {
|
|
378
400
|
console.log(data);
|
|
379
401
|
try {
|
|
380
|
-
|
|
381
|
-
let result = await API.mpaasSig({account: data.account, type: data.type});
|
|
402
|
+
let result = JSON.parse(this.decrypt(await API.mpaasSig({ ciphertext: this.encrypt({account: data.account, type: data.type})})));
|
|
403
|
+
// let result = await API.mpaasSig({account: data.account, type: data.type});
|
|
382
404
|
console.log('mpaasSig',result,result.mpsSig);
|
|
383
405
|
window.sessionStorage.setItem('alimpassSig', result.mpsSig);
|
|
384
406
|
this.state.workSpaceId = result.workspaceId,
|
|
@@ -498,9 +520,9 @@ class Video extends Component {
|
|
|
498
520
|
{
|
|
499
521
|
tag: 'projectionWhiteboard',
|
|
500
522
|
xPosition: 0,
|
|
501
|
-
yPosition:
|
|
502
|
-
width:
|
|
503
|
-
height:
|
|
523
|
+
yPosition: 270,
|
|
524
|
+
width: 1280,
|
|
525
|
+
height: 720
|
|
504
526
|
},
|
|
505
527
|
// {
|
|
506
528
|
// tag: 'VIDEO_SOURCE_SCREEN_ONE',
|
|
@@ -520,43 +542,43 @@ class Video extends Component {
|
|
|
520
542
|
tag: 'tag1',
|
|
521
543
|
xPosition: 0,
|
|
522
544
|
yPosition: 0,
|
|
523
|
-
width:
|
|
524
|
-
height:
|
|
545
|
+
width: 310,
|
|
546
|
+
height: 180
|
|
525
547
|
},
|
|
526
548
|
{
|
|
527
549
|
tag: 'customer1',
|
|
528
|
-
xPosition:
|
|
550
|
+
xPosition: 320,
|
|
529
551
|
yPosition: 0,
|
|
530
|
-
width:
|
|
531
|
-
height:
|
|
552
|
+
width: 310,
|
|
553
|
+
height: 180
|
|
532
554
|
},
|
|
533
555
|
{
|
|
534
556
|
tag: 'customer2',
|
|
535
|
-
xPosition:
|
|
557
|
+
xPosition: 640,
|
|
536
558
|
yPosition: 0,
|
|
537
|
-
width:
|
|
538
|
-
height:
|
|
559
|
+
width: 310,
|
|
560
|
+
height: 180
|
|
539
561
|
},
|
|
540
562
|
{
|
|
541
563
|
tag: 'customer3',
|
|
542
|
-
xPosition:
|
|
564
|
+
xPosition: 960,
|
|
543
565
|
yPosition: 0,
|
|
544
|
-
width:
|
|
545
|
-
height:
|
|
566
|
+
width: 310,
|
|
567
|
+
height: 180
|
|
546
568
|
},
|
|
547
569
|
{
|
|
548
570
|
tag: 'customer4',
|
|
549
|
-
xPosition:
|
|
571
|
+
xPosition: 1280,
|
|
550
572
|
yPosition: 0,
|
|
551
|
-
width:
|
|
552
|
-
height:
|
|
573
|
+
width: 310,
|
|
574
|
+
height: 180
|
|
553
575
|
},
|
|
554
576
|
{
|
|
555
577
|
tag: 'customer5',
|
|
556
|
-
xPosition:
|
|
578
|
+
xPosition: 1600,
|
|
557
579
|
yPosition: 0,
|
|
558
|
-
width:
|
|
559
|
-
height:
|
|
580
|
+
width: 310,
|
|
581
|
+
height: 180
|
|
560
582
|
},
|
|
561
583
|
// {
|
|
562
584
|
// tag: 'customer6',
|
|
@@ -610,25 +632,17 @@ class Video extends Component {
|
|
|
610
632
|
width: item.width,
|
|
611
633
|
height: item.height
|
|
612
634
|
})
|
|
613
|
-
}) :
|
|
614
|
-
list.push({
|
|
635
|
+
}) : list.push({
|
|
615
636
|
tag: 'VIDEO_SOURCE_SCREEN',
|
|
616
|
-
xPosition:
|
|
617
|
-
yPosition:
|
|
618
|
-
width:
|
|
619
|
-
height:
|
|
637
|
+
xPosition: 1290,
|
|
638
|
+
yPosition: 640,
|
|
639
|
+
width: 630,
|
|
640
|
+
height: 350
|
|
620
641
|
})
|
|
621
|
-
// list.push({
|
|
622
|
-
// tag: 'VIDEO_SOURCE_SCREEN_19_9',
|
|
623
|
-
// xPosition: 960,
|
|
624
|
-
// yPosition: 573,
|
|
625
|
-
// width: 304,
|
|
626
|
-
// height: 144
|
|
627
|
-
// })
|
|
628
642
|
const filePath = 'recordId_' + new Date().valueOf();
|
|
629
643
|
const recordParam = {};
|
|
630
|
-
recordParam.width =
|
|
631
|
-
recordParam.height =
|
|
644
|
+
recordParam.width = 1920;
|
|
645
|
+
recordParam.height = 1080;
|
|
632
646
|
recordParam.recordTotalStream = 0;
|
|
633
647
|
recordParam.startTimeout = 10;
|
|
634
648
|
recordParam.splitType = 0;
|
|
@@ -1829,6 +1843,72 @@ class Video extends Component {
|
|
|
1829
1843
|
// 手机端停止投屏
|
|
1830
1844
|
this.tabTitlesClick('customerScreen', 'delect')
|
|
1831
1845
|
|
|
1846
|
+
} else if (Mival.typeId == 1401) {
|
|
1847
|
+
if (Mival.sessionId == this.state.sessionId) {
|
|
1848
|
+
if (Mival.userId == this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid) {
|
|
1849
|
+
this.setState({
|
|
1850
|
+
videoOneName: Mival.name
|
|
1851
|
+
})
|
|
1852
|
+
|
|
1853
|
+
}
|
|
1854
|
+
if (Mival.userId == (document.getElementById("feedId2").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid : '')) {
|
|
1855
|
+
this.setState({
|
|
1856
|
+
videoTwoName: Mival.name
|
|
1857
|
+
})
|
|
1858
|
+
}
|
|
1859
|
+
if (Mival.userId == (document.getElementById("feedId3").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid : '')) {
|
|
1860
|
+
this.setState({
|
|
1861
|
+
videoThreeName: Mival.name
|
|
1862
|
+
})
|
|
1863
|
+
}
|
|
1864
|
+
if (Mival.userId == (document.getElementById("feedId4").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid : '')) {
|
|
1865
|
+
this.setState({
|
|
1866
|
+
videoFourName: Mival.name
|
|
1867
|
+
})
|
|
1868
|
+
}
|
|
1869
|
+
if (Mival.userId == (document.getElementById("feedId5").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid : '')) {
|
|
1870
|
+
this.setState({
|
|
1871
|
+
videoFiveName: Mival.name
|
|
1872
|
+
})
|
|
1873
|
+
}
|
|
1874
|
+
if (Mival.userId == (document.getElementById("feedId6").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid : '')) {
|
|
1875
|
+
this.setState({
|
|
1876
|
+
videoSixName: Mival.name
|
|
1877
|
+
})
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
if (Mival.userId == (document.getElementById("feedId7").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId7").innerText).uid : '')) {
|
|
1881
|
+
this.setState({
|
|
1882
|
+
videoSevenName: Mival.name
|
|
1883
|
+
})
|
|
1884
|
+
}
|
|
1885
|
+
if (Mival.userId == (document.getElementById("feedId8").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId8").innerText).uid : '')) {
|
|
1886
|
+
this.setState({
|
|
1887
|
+
videoEightName: Mival.name
|
|
1888
|
+
})
|
|
1889
|
+
}
|
|
1890
|
+
if (Mival.userId == (document.getElementById("feedId9").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId9").innerText).uid : '')) {
|
|
1891
|
+
this.setState({
|
|
1892
|
+
videoNineName: Mival.name
|
|
1893
|
+
})
|
|
1894
|
+
}
|
|
1895
|
+
if (Mival.userId == (document.getElementById("feedId10").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId10").innerText).uid : '')) {
|
|
1896
|
+
this.setState({
|
|
1897
|
+
videoTenName: Mival.name
|
|
1898
|
+
})
|
|
1899
|
+
}
|
|
1900
|
+
if (Mival.userId == (document.getElementById("feedId11").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId11").innerText).uid : '')) {
|
|
1901
|
+
this.setState({
|
|
1902
|
+
videoElevenName: Mival.name
|
|
1903
|
+
})
|
|
1904
|
+
}
|
|
1905
|
+
if (Mival.userId == (document.getElementById("feedId12").innerText ? this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId12").innerText).uid : '')) {
|
|
1906
|
+
this.setState({
|
|
1907
|
+
videoTwelveName: Mival.name
|
|
1908
|
+
})
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
}
|
|
1832
1912
|
}
|
|
1833
1913
|
};
|
|
1834
1914
|
window.IMOpenfire = msg =>{
|
|
@@ -2165,6 +2245,14 @@ class Video extends Component {
|
|
|
2165
2245
|
}
|
|
2166
2246
|
}
|
|
2167
2247
|
if(sid == document.getElementById('publish_video1').name) {
|
|
2248
|
+
var box=document.getElementById("whiteboardDIV");
|
|
2249
|
+
if(box){ //此处在加一层判断,更加严密,如果box存在的情况下获取
|
|
2250
|
+
this.setState({
|
|
2251
|
+
whiteboardTop: box.getBoundingClientRect().top * 1.08 - 40,
|
|
2252
|
+
whiteboardLeft: box.getBoundingClientRect().left
|
|
2253
|
+
})
|
|
2254
|
+
console.log('whiteboardDIV',this.state.whiteboardTop,this.state.whiteboardLeft)
|
|
2255
|
+
}
|
|
2168
2256
|
this.setState({
|
|
2169
2257
|
|
|
2170
2258
|
loading: false,
|
|
@@ -2953,6 +3041,10 @@ class Video extends Component {
|
|
|
2953
3041
|
};
|
|
2954
3042
|
// 退出房间回调
|
|
2955
3043
|
this.test_controller.OnLeaveRoom = (leaveType) => {
|
|
3044
|
+
if(isSuccuseHs) {
|
|
3045
|
+
stopHs();
|
|
3046
|
+
}
|
|
3047
|
+
|
|
2956
3048
|
console.log('退出房间回调', leaveType);
|
|
2957
3049
|
};
|
|
2958
3050
|
// 推送“退出房间者”给与会者
|
|
@@ -3536,6 +3628,12 @@ userType:'1'
|
|
|
3536
3628
|
|
|
3537
3629
|
this.props.resourcePath + "/eruda.js",
|
|
3538
3630
|
this.props.resourcePath + "/iconfont.js",
|
|
3631
|
+
this.props.resourcePath + "/html2canvas.js",
|
|
3632
|
+
this.props.resourcePath + "/dom-to-image.js",
|
|
3633
|
+
|
|
3634
|
+
// this.props.resourcePath + "/hs/hs_human_segmentation_wrapper.js",
|
|
3635
|
+
// this.props.resourcePath + "/hs/hs_human_segmentation.js",
|
|
3636
|
+
// this.props.resourcePath + "/hs/hs_human_segmentation.wasm",
|
|
3539
3637
|
|
|
3540
3638
|
|
|
3541
3639
|
|
|
@@ -3772,8 +3870,22 @@ userType:'1'
|
|
|
3772
3870
|
if (!this.state.isPictureInPicture) {
|
|
3773
3871
|
this.pictureInPicture()
|
|
3774
3872
|
}
|
|
3775
|
-
|
|
3873
|
+
|
|
3874
|
+
|
|
3776
3875
|
}
|
|
3876
|
+
// const publish_config1 = {};
|
|
3877
|
+
// publish_config1.publish_device = 4;
|
|
3878
|
+
// publish_config1.media_type = 1;
|
|
3879
|
+
// publish_config1.part_of_screen_id = 'whiteboardDIV';
|
|
3880
|
+
// publish_config1.video_profile_type = 2;
|
|
3881
|
+
// publish_config1.degradationType=2
|
|
3882
|
+
// publish_config1.publish_video_id = 'video30';
|
|
3883
|
+
// publish_config1.publish_tag = 'projectionWhiteboard';
|
|
3884
|
+
// publish_config1.capture_interval = 200
|
|
3885
|
+
// publish_config1.capture_mode = 2
|
|
3886
|
+
// publish_config.capture_lib = 'dom2image'
|
|
3887
|
+
// publish_config1.listen_events = ['keyup', 'scroll', 'click','touchstart','touchend','touchmove','mousemove']
|
|
3888
|
+
// this.test_controller.Publish(publish_config1)
|
|
3777
3889
|
} else {
|
|
3778
3890
|
this.messageClick('internal staff正在共享屏幕,请先关闭','error')
|
|
3779
3891
|
}
|
|
@@ -4113,14 +4225,12 @@ userType:'1'
|
|
|
4113
4225
|
this.setState({
|
|
4114
4226
|
clickedFacial: false,
|
|
4115
4227
|
clickedOcr: false,
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
})
|
|
4119
|
-
setTimeout(() => {
|
|
4228
|
+
facialImg: ocrImage,
|
|
4229
|
+
},()=>{
|
|
4120
4230
|
this.setState({
|
|
4121
|
-
|
|
4231
|
+
isModalVisibleFacial: true,
|
|
4122
4232
|
})
|
|
4123
|
-
}
|
|
4233
|
+
})
|
|
4124
4234
|
}
|
|
4125
4235
|
}
|
|
4126
4236
|
sgsinImage=()=>{
|
|
@@ -4648,7 +4758,7 @@ userType:'1'
|
|
|
4648
4758
|
this.state.whiteboardHeight = box.offsetHeight * 0.92,
|
|
4649
4759
|
this.state.whiteboardTop = box.getBoundingClientRect().top * 1.08 - 40
|
|
4650
4760
|
this.state.whiteboardLeft = box.getBoundingClientRect().left
|
|
4651
|
-
console.log('whiteboardDIV', this.state.whiteboardHeight,
|
|
4761
|
+
console.log('whiteboardDIV', this.state.whiteboardHeight,this.state.whiteboardWidth,this.state.whiteboardTop,this.state.whiteboardLeft)
|
|
4652
4762
|
}
|
|
4653
4763
|
}
|
|
4654
4764
|
muteOpposite = (value) => {
|
|
@@ -4937,7 +5047,7 @@ userType:'1'
|
|
|
4937
5047
|
{tabTitleList}
|
|
4938
5048
|
{/* <img style={sectionStyle} src={require("../../assets/img/placeholder_bg.png").default} alt="" /> */}
|
|
4939
5049
|
<div id="whiteboardDIV" style={{height: 'calc(100% - 33px)'}}>
|
|
4940
|
-
<CanvasHome zIndexNum={this.state.zIndexNum} style={{width: this.state.whiteboardWidth,height: this.state.whiteboardHeight,top: this.state.whiteboardTop,left:this.state.whiteboardLeft}}>
|
|
5050
|
+
<CanvasHome zIndexNum={this.state.zIndexNum} style={{width: this.state.whiteboardWidth + 'Px',height: this.state.whiteboardHeight + 'Px',top: this.state.whiteboardTop + 'Px',left:this.state.whiteboardLeft + 'Px'}}>
|
|
4941
5051
|
{this.state.operateShow &&
|
|
4942
5052
|
<OpreateDiv id="operate">
|
|
4943
5053
|
<span style={{color: this.state.selectSpan == 'pen' ? '#1890ff' : '#333'}} onClick={() => this.setTool('pen')}>铅笔</span>
|
|
@@ -5463,7 +5573,7 @@ userType:'1'
|
|
|
5463
5573
|
<Modal title={this.state.titleModal} closable={false} centered={true} visible={this.state.isModalVisibleFacial} footer={[
|
|
5464
5574
|
!this.state.idCardName && <div key='facial'>
|
|
5465
5575
|
<Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>
|
|
5466
|
-
<Button className="modelButtonCancel" onClick={this.sgsinImage}
|
|
5576
|
+
<Button className="modelButtonCancel" onClick={this.sgsinImage}>截图</Button>
|
|
5467
5577
|
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkFacial}>确定</Button>
|
|
5468
5578
|
</div>,
|
|
5469
5579
|
this.state.idCardName && <div key='facial'>
|
|
@@ -5581,6 +5691,8 @@ userType:'1'
|
|
|
5581
5691
|
</Modal>
|
|
5582
5692
|
<video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="0" height="0"></video>
|
|
5583
5693
|
<video className="mixedvideo" id="manedvideo" autoPlay width="0" height="0"></video>
|
|
5694
|
+
<video className="mixedvideo" id="video30" autoPlay width="0" height="0"></video>
|
|
5695
|
+
|
|
5584
5696
|
|
|
5585
5697
|
</Spin>
|
|
5586
5698
|
</div>);
|