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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "1.4.8",
3
+ "version": "1.5.1",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -34,7 +34,7 @@ class Demo extends Component {
34
34
  microphoneSize: 50,
35
35
  fontSize: 14,
36
36
  fontFamily: 'auto',
37
- isTranscribing: true
37
+ isTranscribing: false
38
38
  }
39
39
  componentWillMount() {
40
40
  // if(window.localStorage.getItem('roomId')) {
@@ -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) - 5
4139
- height = ((bottom - top)* window.screen.width / document.body.clientWidth) - 50
4140
- x = left * window.screen.width / document.body.clientWidth + 5
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
- callNimIM('sendCustomCmdMsg', {
4438
- customId: this.state.imRoomId,
4439
- content: JSON.stringify({
4440
- 'typeId': 1230,
4441
- 'sessionId': this.state.sessionId,
4442
- 'type': this.state.shareMaskState ? 1 : 2
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)