react_hsbc_teller 1.7.9 → 1.8.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/package.json
CHANGED
|
@@ -99,7 +99,7 @@ export default class foot extends Component {
|
|
|
99
99
|
</div>
|
|
100
100
|
}
|
|
101
101
|
{
|
|
102
|
-
item == '
|
|
102
|
+
item == 'BACKGROUND'&&<div className='footHover' onClick={this.virtualization.bind(this)}>
|
|
103
103
|
<div className="one">
|
|
104
104
|
<img className="imgClass" src={require("../../assets/img/beijing.png").default} alt="" />
|
|
105
105
|
<div className="text">
|
|
@@ -2378,13 +2378,16 @@ class Video extends Component {
|
|
|
2378
2378
|
var box=document.getElementById("whiteboardDIV");
|
|
2379
2379
|
var box1 = document.getElementById("operate")
|
|
2380
2380
|
var height = box1 ? box1.offsetHeight : 40
|
|
2381
|
+
var width = this.state.whiteboardHeight * document.getElementById("video20").videoWidth / document.getElementById("video20").videoHeight
|
|
2381
2382
|
if(box){ //此处在加一层判断,更加严密,如果box存在的情况下获取
|
|
2382
2383
|
this.setState({
|
|
2384
|
+
widthVideo: width,
|
|
2383
2385
|
whiteboardTop: box.getBoundingClientRect().top - height,
|
|
2384
2386
|
whiteboardLeft: box.getBoundingClientRect().left,
|
|
2385
|
-
leftVideo: (box.offsetWidth -
|
|
2387
|
+
leftVideo: (box.offsetWidth - width)/2 + box.getBoundingClientRect().left
|
|
2386
2388
|
})
|
|
2387
|
-
console.log('
|
|
2389
|
+
console.log('whiteboardVideo20',this.state.whiteboardTop,this.state.whiteboardLeft,this.state.widthVideo,this.state.leftVideo)
|
|
2390
|
+
|
|
2388
2391
|
}
|
|
2389
2392
|
}
|
|
2390
2393
|
};
|
|
@@ -3781,6 +3784,7 @@ userType:'1'
|
|
|
3781
3784
|
}
|
|
3782
3785
|
}
|
|
3783
3786
|
componentWillMount() {
|
|
3787
|
+
console.log('hsbc_teller_sdk', '1.8.1')
|
|
3784
3788
|
if (this.props.sessionId) {
|
|
3785
3789
|
this.getRoomStatus({
|
|
3786
3790
|
sessionId: this.props.sessionId
|
|
@@ -4661,7 +4665,7 @@ userType:'1'
|
|
|
4661
4665
|
navigator.mediaDevices.getDisplayMedia({
|
|
4662
4666
|
video: true,
|
|
4663
4667
|
preferCurrentTab:true,
|
|
4664
|
-
audio: true
|
|
4668
|
+
// audio: true
|
|
4665
4669
|
// video: {
|
|
4666
4670
|
// width: document.body.clientWidth,
|
|
4667
4671
|
// height: document.body.clientHeight
|
|
@@ -5242,7 +5246,7 @@ userType:'1'
|
|
|
5242
5246
|
id="video20"
|
|
5243
5247
|
autoPlay
|
|
5244
5248
|
muted={true}
|
|
5245
|
-
style={{ height: this.state.whiteboardHeight + 'px'
|
|
5249
|
+
style={{ height: this.state.whiteboardHeight + 'px'}}
|
|
5246
5250
|
className="videoTab"
|
|
5247
5251
|
disablePictureInPicture
|
|
5248
5252
|
/>
|
|
@@ -5902,7 +5906,7 @@ sessionId: "",
|
|
|
5902
5906
|
microphoneSize: 25,
|
|
5903
5907
|
fontSize: '14',
|
|
5904
5908
|
fontFamily: 'auto',
|
|
5905
|
-
menus: ['BOARD','SHARE', 'FRIES', 'OCR', 'INVITE', 'PIP', 'BEAUTY','GRAFFITI','
|
|
5909
|
+
menus: ['BOARD','SHARE', 'FRIES', 'OCR', 'INVITE', 'PIP', 'BEAUTY','GRAFFITI','BACKGROUND'],
|
|
5906
5910
|
customLeaveRoom: '客户离开房间',
|
|
5907
5911
|
meetingInfo: {
|
|
5908
5912
|
title: '--',
|