react_hsbc_teller 1.4.8 → 1.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/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/demo/demo.js +1 -1
- package/packages/pages/video/video.jsx +20 -12
package/package.json
CHANGED
package/packages/demo/demo.js
CHANGED
|
@@ -1713,6 +1713,11 @@ class Video extends Component {
|
|
|
1713
1713
|
errorType: -1
|
|
1714
1714
|
})
|
|
1715
1715
|
}
|
|
1716
|
+
} else if (Mival.typeId == 4100 && Mival.data.sessionId == this.state.sessionId) {
|
|
1717
|
+
// 手机端停止投屏
|
|
1718
|
+
if (!document.getElementById("video21").name) {
|
|
1719
|
+
this.tabTitlesClick('customerScreen', 'delect')
|
|
1720
|
+
}
|
|
1716
1721
|
}
|
|
1717
1722
|
};
|
|
1718
1723
|
window.IMOpenfire = msg =>{
|
|
@@ -4135,10 +4140,10 @@ class Video extends Component {
|
|
|
4135
4140
|
let x = 0
|
|
4136
4141
|
let y = 0
|
|
4137
4142
|
// if(os.isTablet){
|
|
4138
|
-
width = ((right - left)* window.screen.width / document.body.clientWidth) -
|
|
4139
|
-
height = ((bottom - top)* window.screen.width / document.body.clientWidth) -
|
|
4140
|
-
x = left * window.screen.width / document.body.clientWidth
|
|
4141
|
-
y = top* window.screen.width / document.body.clientWidth
|
|
4143
|
+
width = ((right - left)* window.screen.width / document.body.clientWidth) - 13
|
|
4144
|
+
height = ((bottom - top)* window.screen.width / document.body.clientWidth) - 20
|
|
4145
|
+
x = (left * window.screen.width / document.body.clientWidth)
|
|
4146
|
+
y = (top* window.screen.width / document.body.clientWidth) + 8
|
|
4142
4147
|
// }
|
|
4143
4148
|
// if(os.isPc) {
|
|
4144
4149
|
// width = right - left
|
|
@@ -4434,14 +4439,17 @@ class Video extends Component {
|
|
|
4434
4439
|
sendNotification = () =>{
|
|
4435
4440
|
console.log(this.props.shareMask,this.state.shareMaskState)
|
|
4436
4441
|
this.state.shareMaskState = this.props.shareMask
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4442
|
+
setTimeout(() => {
|
|
4443
|
+
callNimIM('sendCustomCmdMsg', {
|
|
4444
|
+
customId: this.state.imRoomId,
|
|
4445
|
+
content: JSON.stringify({
|
|
4446
|
+
'typeId': 1230,
|
|
4447
|
+
'sessionId': this.state.sessionId,
|
|
4448
|
+
'type': this.state.shareMaskState ? 1 : 2
|
|
4449
|
+
})
|
|
4450
|
+
});
|
|
4451
|
+
},100)
|
|
4452
|
+
|
|
4445
4453
|
}
|
|
4446
4454
|
componentDidUpdate(prevProps){
|
|
4447
4455
|
console.log('componentDidUpdate',prevProps,prevProps.shareMask,this.props.shareMask)
|