react_hsbc_teller 2.0.40 → 2.0.41

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": "2.0.40",
3
+ "version": "2.0.41",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -60,7 +60,7 @@ import MultiModule from '../multiModule/multiModule'//签字、抄录
60
60
  import axios from 'axios';
61
61
  import CryptoJS from "crypto-js";
62
62
 
63
- const SDK_VERISON = '2.0.40'
63
+ const SDK_VERISON = '2.0.41'
64
64
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
65
65
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
66
66
  const { Option } = Select;
@@ -2338,6 +2338,7 @@ class Video extends Component {
2338
2338
  this.roomCallBack(2, '音视频异常关闭', 8)
2339
2339
  } else {
2340
2340
  this.state.isScreenSwitching = false
2341
+ this.setSharedScreenState(false)
2341
2342
  }
2342
2343
  }
2343
2344
  };
@@ -2529,6 +2530,7 @@ class Video extends Component {
2529
2530
  console.log('发布媒体流成功', sid)
2530
2531
  this.state.sessionType = true
2531
2532
  if (sid == document.getElementById('video20').name) {
2533
+ this.setSharedScreenState(true)
2532
2534
  this.sendMessage({
2533
2535
  'typeId': 2030,
2534
2536
  'sessionId': this.state.sessionId,
@@ -2538,7 +2540,6 @@ class Video extends Component {
2538
2540
  if (this.state.screenName == '切换共享') {
2539
2541
  this.state.isSharedScreen = true
2540
2542
  this.state.isScreenSwitching = false
2541
- this.setSharedScreenState(true)
2542
2543
  }
2543
2544
  this.videoInfo = this.generateMediaInfo(document.getElementById("video20").name);
2544
2545
  }
@@ -2597,8 +2598,9 @@ class Video extends Component {
2597
2598
  if (sid == document.getElementById('publish_streamId1').name) {
2598
2599
  this.state.sessionType = false
2599
2600
  this.roomCallBack(2, '发布失败', 4)
2600
- } else {
2601
+ } else if (sid == document.getElementById('video20').name) {
2601
2602
  this.messageClick('投屏失败请重新投屏', 'error')
2603
+ this.setSharedScreenState(false)
2602
2604
  }
2603
2605
 
2604
2606
  };
@@ -5480,7 +5482,7 @@ class Video extends Component {
5480
5482
  document.getElementById('video20') && document.getElementById('video20').name ? this.test_controller.UnPublish(document.getElementById('video20').name) : ''
5481
5483
  that.state.isSharedScreen = false
5482
5484
  that.state.isScreenSwitching = false
5483
- that.setSharedScreenState(false)
5485
+ // that.setSharedScreenState(false)
5484
5486
  that.setState({
5485
5487
  screenName: '共享模式'
5486
5488
  });
@@ -5592,7 +5594,6 @@ class Video extends Component {
5592
5594
  }, 'add')
5593
5595
  if (this.state.isSharedScreen) {
5594
5596
  this.state.isSharedScreen = false
5595
- this.setSharedScreenState(false)
5596
5597
  this.setState({
5597
5598
 
5598
5599
  screenName: '共享模式'