react_hsbc_teller 1.5.6 → 1.5.7
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/video/video.jsx +15 -9
package/package.json
CHANGED
|
@@ -2245,7 +2245,8 @@ class Video extends Component {
|
|
|
2245
2245
|
console.log(array, newArray, this.state.roomCustomerList);
|
|
2246
2246
|
this.state.roomCustomerList = newArray
|
|
2247
2247
|
let config_param
|
|
2248
|
-
if (itemOne.tag
|
|
2248
|
+
if (rateList.indexOf(itemOne.tag) > -1) {
|
|
2249
|
+
// itemOne.tag == 'VIDEO_SOURCE_SCREEN'
|
|
2249
2250
|
config_param = {
|
|
2250
2251
|
subscribe_video_id: 'video21',
|
|
2251
2252
|
subscribe_audio_id: 'audio21',
|
|
@@ -4083,10 +4084,14 @@ class Video extends Component {
|
|
|
4083
4084
|
// height = ((bottom - top)* window.screen.width / document.body.clientWidth) - 30
|
|
4084
4085
|
// x = (left * window.screen.width / document.body.clientWidth)
|
|
4085
4086
|
// y = (top* window.screen.width / document.body.clientWidth) + 8
|
|
4086
|
-
width = ((right - left)* 1280 / document.body.clientWidth) - 5
|
|
4087
|
-
height = ((bottom - top)* 1280 / document.body.clientWidth) - 30
|
|
4088
|
-
x = (left* 1280 / document.body.clientWidth)
|
|
4089
|
-
y = (top* 1280 / document.body.clientWidth) + 8
|
|
4087
|
+
// width = ((right - left)* 1280 / document.body.clientWidth) - 5
|
|
4088
|
+
// height = ((bottom - top)* 1280 / document.body.clientWidth) - 30
|
|
4089
|
+
// x = (left* 1280 / document.body.clientWidth)
|
|
4090
|
+
// y = (top* 1280 / document.body.clientWidth) + 8
|
|
4091
|
+
width = ((right - left)) - 5
|
|
4092
|
+
height = ((bottom - top)) - 30
|
|
4093
|
+
x = (left)
|
|
4094
|
+
y = (top) + 8
|
|
4090
4095
|
canvas.width = 960;
|
|
4091
4096
|
canvas.height = 540;
|
|
4092
4097
|
|
|
@@ -4135,8 +4140,8 @@ class Video extends Component {
|
|
|
4135
4140
|
video: true,
|
|
4136
4141
|
preferCurrentTab:true,
|
|
4137
4142
|
video: {
|
|
4138
|
-
width:
|
|
4139
|
-
height:
|
|
4143
|
+
width: document.body.clientWidth,
|
|
4144
|
+
height: document.body.clientHeight
|
|
4140
4145
|
}
|
|
4141
4146
|
})
|
|
4142
4147
|
.then((stream) => {
|
|
@@ -4375,7 +4380,8 @@ class Video extends Component {
|
|
|
4375
4380
|
sendNotification = () =>{
|
|
4376
4381
|
console.log(this.props.shareMask,this.state.shareMaskState)
|
|
4377
4382
|
this.state.shareMaskState = this.props.shareMask
|
|
4378
|
-
//
|
|
4383
|
+
// 加延迟是因为在关闭的时候可以看到部分rm的操作
|
|
4384
|
+
setTimeout(() => {
|
|
4379
4385
|
callNimIM('sendCustomCmdMsg', {
|
|
4380
4386
|
customId: this.state.imRoomId,
|
|
4381
4387
|
content: JSON.stringify({
|
|
@@ -4384,7 +4390,7 @@ class Video extends Component {
|
|
|
4384
4390
|
'type': this.state.shareMaskState ? 1 : 2
|
|
4385
4391
|
})
|
|
4386
4392
|
});
|
|
4387
|
-
|
|
4393
|
+
},100)
|
|
4388
4394
|
|
|
4389
4395
|
}
|
|
4390
4396
|
componentDidUpdate(prevProps){
|