react_hsbc_teller 1.7.1 → 1.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/demo/demo.js +5 -4
- package/packages/pages/video/video.jsx +47 -41
package/package.json
CHANGED
package/packages/demo/demo.js
CHANGED
|
@@ -5,10 +5,11 @@ import Pdf from './pdf.js'
|
|
|
5
5
|
class Demo extends Component {
|
|
6
6
|
state = {
|
|
7
7
|
shareMask: false,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
imRoomId: "AIByYlxRE@conference.openfire2.leimondata.cn",
|
|
9
|
+
sessionId: "AIByYlxRE",
|
|
10
|
+
mtoken: "101046e69f16",
|
|
11
|
+
roomId: "657007173551208",
|
|
12
|
+
|
|
12
13
|
// roomId: '',
|
|
13
14
|
// mtoken: '',
|
|
14
15
|
// imRoomId: '',
|
|
@@ -46,10 +46,6 @@ let rateList = []
|
|
|
46
46
|
let beautyDiv = {};
|
|
47
47
|
let CanvasHome = styled.div`
|
|
48
48
|
position: fixed;
|
|
49
|
-
width: 76vw;
|
|
50
|
-
height: 74vh;
|
|
51
|
-
top: 3vh;
|
|
52
|
-
left: 1.5vw;
|
|
53
49
|
z-index: ${props=>props.zIndexNum};
|
|
54
50
|
|
|
55
51
|
.canvas{
|
|
@@ -498,9 +494,9 @@ class Video extends Component {
|
|
|
498
494
|
{
|
|
499
495
|
tag: 'projectionWhiteboard',
|
|
500
496
|
xPosition: 0,
|
|
501
|
-
yPosition:
|
|
502
|
-
width:
|
|
503
|
-
height:
|
|
497
|
+
yPosition: 270,
|
|
498
|
+
width: 1280,
|
|
499
|
+
height: 720
|
|
504
500
|
},
|
|
505
501
|
// {
|
|
506
502
|
// tag: 'VIDEO_SOURCE_SCREEN_ONE',
|
|
@@ -520,43 +516,43 @@ class Video extends Component {
|
|
|
520
516
|
tag: 'tag1',
|
|
521
517
|
xPosition: 0,
|
|
522
518
|
yPosition: 0,
|
|
523
|
-
width:
|
|
524
|
-
height:
|
|
519
|
+
width: 310,
|
|
520
|
+
height: 180
|
|
525
521
|
},
|
|
526
522
|
{
|
|
527
523
|
tag: 'customer1',
|
|
528
|
-
xPosition:
|
|
524
|
+
xPosition: 320,
|
|
529
525
|
yPosition: 0,
|
|
530
|
-
width:
|
|
531
|
-
height:
|
|
526
|
+
width: 310,
|
|
527
|
+
height: 180
|
|
532
528
|
},
|
|
533
529
|
{
|
|
534
530
|
tag: 'customer2',
|
|
535
|
-
xPosition:
|
|
531
|
+
xPosition: 640,
|
|
536
532
|
yPosition: 0,
|
|
537
|
-
width:
|
|
538
|
-
height:
|
|
533
|
+
width: 310,
|
|
534
|
+
height: 180
|
|
539
535
|
},
|
|
540
536
|
{
|
|
541
537
|
tag: 'customer3',
|
|
542
|
-
xPosition:
|
|
538
|
+
xPosition: 960,
|
|
543
539
|
yPosition: 0,
|
|
544
|
-
width:
|
|
545
|
-
height:
|
|
540
|
+
width: 310,
|
|
541
|
+
height: 180
|
|
546
542
|
},
|
|
547
543
|
{
|
|
548
544
|
tag: 'customer4',
|
|
549
|
-
xPosition:
|
|
545
|
+
xPosition: 1280,
|
|
550
546
|
yPosition: 0,
|
|
551
|
-
width:
|
|
552
|
-
height:
|
|
547
|
+
width: 310,
|
|
548
|
+
height: 180
|
|
553
549
|
},
|
|
554
550
|
{
|
|
555
551
|
tag: 'customer5',
|
|
556
|
-
xPosition:
|
|
552
|
+
xPosition: 1600,
|
|
557
553
|
yPosition: 0,
|
|
558
|
-
width:
|
|
559
|
-
height:
|
|
554
|
+
width: 310,
|
|
555
|
+
height: 180
|
|
560
556
|
},
|
|
561
557
|
// {
|
|
562
558
|
// tag: 'customer6',
|
|
@@ -610,25 +606,17 @@ class Video extends Component {
|
|
|
610
606
|
width: item.width,
|
|
611
607
|
height: item.height
|
|
612
608
|
})
|
|
613
|
-
}) :
|
|
614
|
-
list.push({
|
|
609
|
+
}) : list.push({
|
|
615
610
|
tag: 'VIDEO_SOURCE_SCREEN',
|
|
616
|
-
xPosition:
|
|
617
|
-
yPosition:
|
|
618
|
-
width:
|
|
619
|
-
height:
|
|
611
|
+
xPosition: 1290,
|
|
612
|
+
yPosition: 640,
|
|
613
|
+
width: 630,
|
|
614
|
+
height: 350
|
|
620
615
|
})
|
|
621
|
-
// list.push({
|
|
622
|
-
// tag: 'VIDEO_SOURCE_SCREEN_19_9',
|
|
623
|
-
// xPosition: 960,
|
|
624
|
-
// yPosition: 573,
|
|
625
|
-
// width: 304,
|
|
626
|
-
// height: 144
|
|
627
|
-
// })
|
|
628
616
|
const filePath = 'recordId_' + new Date().valueOf();
|
|
629
617
|
const recordParam = {};
|
|
630
|
-
recordParam.width =
|
|
631
|
-
recordParam.height =
|
|
618
|
+
recordParam.width = 1920;
|
|
619
|
+
recordParam.height = 1080;
|
|
632
620
|
recordParam.recordTotalStream = 0;
|
|
633
621
|
recordParam.startTimeout = 10;
|
|
634
622
|
recordParam.splitType = 0;
|
|
@@ -3536,6 +3524,8 @@ userType:'1'
|
|
|
3536
3524
|
|
|
3537
3525
|
this.props.resourcePath + "/eruda.js",
|
|
3538
3526
|
this.props.resourcePath + "/iconfont.js",
|
|
3527
|
+
this.props.resourcePath + "/html2canvas.js",
|
|
3528
|
+
this.props.resourcePath + "/dom-to-image.js",
|
|
3539
3529
|
|
|
3540
3530
|
|
|
3541
3531
|
|
|
@@ -3772,8 +3762,22 @@ userType:'1'
|
|
|
3772
3762
|
if (!this.state.isPictureInPicture) {
|
|
3773
3763
|
this.pictureInPicture()
|
|
3774
3764
|
}
|
|
3775
|
-
|
|
3765
|
+
|
|
3766
|
+
|
|
3776
3767
|
}
|
|
3768
|
+
// const publish_config1 = {};
|
|
3769
|
+
// publish_config1.publish_device = 4;
|
|
3770
|
+
// publish_config1.media_type = 1;
|
|
3771
|
+
// publish_config1.part_of_screen_id = 'whiteboardDIV';
|
|
3772
|
+
// publish_config1.video_profile_type = 2;
|
|
3773
|
+
// publish_config1.degradationType=2
|
|
3774
|
+
// publish_config1.publish_video_id = 'video30';
|
|
3775
|
+
// publish_config1.publish_tag = 'projectionWhiteboard';
|
|
3776
|
+
// publish_config1.capture_interval = 200
|
|
3777
|
+
// publish_config1.capture_mode = 2
|
|
3778
|
+
// publish_config.capture_lib = 'dom2image'
|
|
3779
|
+
// publish_config1.listen_events = ['keyup', 'scroll', 'click','touchstart','touchend','touchmove','mousemove']
|
|
3780
|
+
// this.test_controller.Publish(publish_config1)
|
|
3777
3781
|
} else {
|
|
3778
3782
|
this.messageClick('internal staff正在共享屏幕,请先关闭','error')
|
|
3779
3783
|
}
|
|
@@ -4937,7 +4941,7 @@ userType:'1'
|
|
|
4937
4941
|
{tabTitleList}
|
|
4938
4942
|
{/* <img style={sectionStyle} src={require("../../assets/img/placeholder_bg.png").default} alt="" /> */}
|
|
4939
4943
|
<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}}>
|
|
4944
|
+
<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
4945
|
{this.state.operateShow &&
|
|
4942
4946
|
<OpreateDiv id="operate">
|
|
4943
4947
|
<span style={{color: this.state.selectSpan == 'pen' ? '#1890ff' : '#333'}} onClick={() => this.setTool('pen')}>铅笔</span>
|
|
@@ -5581,6 +5585,8 @@ userType:'1'
|
|
|
5581
5585
|
</Modal>
|
|
5582
5586
|
<video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="0" height="0"></video>
|
|
5583
5587
|
<video className="mixedvideo" id="manedvideo" autoPlay width="0" height="0"></video>
|
|
5588
|
+
<video className="mixedvideo" id="video30" autoPlay width="0" height="0"></video>
|
|
5589
|
+
|
|
5584
5590
|
|
|
5585
5591
|
</Spin>
|
|
5586
5592
|
</div>);
|