react_hsbc_teller 1.5.0 → 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.5.0",
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')) {
@@ -4140,10 +4140,10 @@ class Video extends Component {
4140
4140
  let x = 0
4141
4141
  let y = 0
4142
4142
  // if(os.isTablet){
4143
- width = ((right - left)* window.screen.width / document.body.clientWidth) - 5
4144
- height = ((bottom - top)* window.screen.width / document.body.clientWidth) - 15
4145
- x = left * window.screen.width / document.body.clientWidth + 5
4146
- 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
4147
4147
  // }
4148
4148
  // if(os.isPc) {
4149
4149
  // width = right - left
@@ -4439,14 +4439,17 @@ class Video extends Component {
4439
4439
  sendNotification = () =>{
4440
4440
  console.log(this.props.shareMask,this.state.shareMaskState)
4441
4441
  this.state.shareMaskState = this.props.shareMask
4442
- callNimIM('sendCustomCmdMsg', {
4443
- customId: this.state.imRoomId,
4444
- content: JSON.stringify({
4445
- 'typeId': 1230,
4446
- 'sessionId': this.state.sessionId,
4447
- 'type': this.state.shareMaskState ? 1 : 2
4448
- })
4449
- });
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
+
4450
4453
  }
4451
4454
  componentDidUpdate(prevProps){
4452
4455
  console.log('componentDidUpdate',prevProps,prevProps.shareMask,this.props.shareMask)