react_hsbc_teller 2.0.90 → 2.0.93

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.90",
3
+ "version": "2.0.93",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -7,13 +7,13 @@ class Demo extends Component {
7
7
  shareMask: false,
8
8
  mtoken
9
9
  :
10
- "62e146acaaf8",
10
+ "",
11
11
  roomId
12
12
  :
13
- "7601660126711209",
13
+ "",
14
14
  sessionId
15
15
  :
16
- "67657131",
16
+ "",
17
17
  // roomId: '',
18
18
  // mtoken: '',
19
19
  // imRoomId: '',
@@ -66,7 +66,7 @@ import axios from 'axios';
66
66
  import CryptoJS from "crypto-js";
67
67
 
68
68
 
69
- const SDK_VERISON = '2.0.90'
69
+ const SDK_VERISON = '2.0.93'
70
70
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
71
71
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
72
72
  const { Option } = Select;
@@ -101,6 +101,7 @@ let worker
101
101
  let streamShare
102
102
  let streamRecord
103
103
  let videoName
104
+ let newanalyser = null;
104
105
  let lastFaceNum = 1
105
106
  let muteJson = new Map()
106
107
  // let dateTime = 0
@@ -2492,8 +2493,8 @@ class Video extends Component {
2492
2493
  })
2493
2494
  console.log(indexId, microId)
2494
2495
  this.setState({
2495
- cameraValue: objList[indexId].actionid,
2496
- microphoneValue: objList1[microId].actionid
2496
+ cameraValue: this.state.cameraValue || objList[indexId].actionid,
2497
+ microphoneValue: this.state.microphoneValue || objList1[microId].actionid
2497
2498
  })
2498
2499
  if (!this.state.appId && !this.state.sessionType) {
2499
2500
  console.log('cameraValue', this.state.cameraValue)
@@ -3884,8 +3885,11 @@ class Video extends Component {
3884
3885
  this.saveLog('mrtc OnUploadLogFail, code=' + code, ',msg=' + err_msg)
3885
3886
  };
3886
3887
  // 切流成功通知
3888
+
3887
3889
  this.test_controller.OnChangeMediaStreamSuccess = (sid) => {
3888
3890
  console.log('切流成功通知', sid);
3891
+ let originalMediaInfo = this.test_controller.GetMediaInfo(sid);
3892
+ newanalyser = originalMediaInfo.audioAnalyser;
3889
3893
  if (this.state.loading) {
3890
3894
  this.messageClick('摄像头或麦克风切换成功', 'success')
3891
3895
  this.setState({
@@ -3942,7 +3946,8 @@ class Video extends Component {
3942
3946
  console.log('服务端录制初始化成功', record_id, record_third_id)
3943
3947
  };
3944
3948
  this.test_controller.OnVolumeAnalyser = (sid, analyser) => {
3945
- console.log('analyser',analyser)
3949
+ console.log('analyser',analyser, newanalyser)
3950
+
3946
3951
  clearInterval(this.state.OnVolumeAnalyserMap.get(sid))
3947
3952
  let publish_sid = (document.getElementById('publish_video1') ? document.getElementById('publish_video1').name : '') || (document.getElementById('publish_streamId1') ? document.getElementById('publish_streamId1').name : '');
3948
3953
  let subscribe_sid1 = (document.getElementById('video1') ? document.getElementById('video1').name : '') || (document.getElementById('audio1') ? document.getElementById('audio1').name : '');
@@ -3964,6 +3969,9 @@ class Video extends Component {
3964
3969
  switch (sid) {
3965
3970
  case publish_sid:
3966
3971
  volumeView = "publish_volumeView";
3972
+ if(newanalyser) {
3973
+ analyser = newanalyser
3974
+ }
3967
3975
  this.saveLog('zeroVolAlert: ' + this.props.zeroVolAlert)
3968
3976
  if(this.props.zeroVolAlert) {
3969
3977
  if (!this.volumeFunctionTimer && this.state.voiceStatue == false && this.state.analyserHeight.get(sid) == 0) {