react_hsbc_teller 2.0.89 → 2.0.92

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.89",
3
+ "version": "2.0.92",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -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.89'
69
+ const SDK_VERISON = '2.0.92'
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
@@ -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,13 +3969,20 @@ class Video extends Component {
3964
3969
  switch (sid) {
3965
3970
  case publish_sid:
3966
3971
  volumeView = "publish_volumeView";
3967
- // if (!this.volumeFunctionTimer && this.state.voiceStatue == false && this.state.analyserHeight.get(sid) == 0) {
3968
- // this.volumeFunctionTimer = setTimeout(this.volumeFunction.bind(this, sid), 15000)
3969
- // }
3970
- // if (this.volumeFunctionTimer && this.state.voiceStatue == false && this.state.analyserHeight.get(sid) != 0) {
3971
- // clearTimeout(this.volumeFunctionTimer)
3972
- // this.volumeFunctionTimer = null
3973
- // }
3972
+ if(newanalyser) {
3973
+ analyser = newanalyser
3974
+ }
3975
+ this.saveLog('zeroVolAlert: ' + this.props.zeroVolAlert)
3976
+ if(this.props.zeroVolAlert) {
3977
+ if (!this.volumeFunctionTimer && this.state.voiceStatue == false && this.state.analyserHeight.get(sid) == 0) {
3978
+ this.volumeFunctionTimer = setTimeout(this.volumeFunction.bind(this, sid), 15000)
3979
+ }
3980
+ if (this.volumeFunctionTimer && this.state.voiceStatue == false && this.state.analyserHeight.get(sid) != 0) {
3981
+ clearTimeout(this.volumeFunctionTimer)
3982
+ this.volumeFunctionTimer = null
3983
+ }
3984
+ }
3985
+
3974
3986
  break;
3975
3987
  case subscribe_sid1:
3976
3988
  volumeView = "subscribe_volumeView1";
@@ -4367,7 +4379,7 @@ class Video extends Component {
4367
4379
  clearTimeout(this.ipadLowPowerPlayTimer)
4368
4380
  clearTimeout(this.mediaErrorPlayTimer)
4369
4381
  clearTimeout(this.screenSharedTimer)
4370
- // clearTimeout(this.volumeFunctionTimer)
4382
+ clearTimeout(this.volumeFunctionTimer)
4371
4383
  clearTimeout(this.volumePlayTimer)
4372
4384
  clearInterval(this.state.drawCanvasInterval)
4373
4385
  clearInterval(this.state.faceDetectionTimer);
@@ -5113,10 +5125,10 @@ class Video extends Component {
5113
5125
  // 打开抄录/签署面板
5114
5126
  showModal=(moduleName)=>{
5115
5127
  if (!this.state.multiModuleShow) {
5116
- this.setState({
5117
- multiModuleShow:true,
5118
- multiModule: moduleName,
5119
- },()=>{
5128
+ this.setState({
5129
+ multiModuleShow:true,
5130
+ multiModule: moduleName,
5131
+ },()=>{
5120
5132
  })
5121
5133
  this.tabTitlesClick(
5122
5134
  {
@@ -5124,16 +5136,16 @@ class Video extends Component {
5124
5136
  name: '签署抄录'
5125
5137
  },'add'
5126
5138
  )
5127
- }else{
5128
- this.closeModule()
5129
- }
5139
+ }else{
5140
+ this.closeModule()
5141
+ }
5130
5142
  }
5131
5143
  // 关闭面板
5132
5144
  closeModule=()=>{
5133
5145
  setTimeout(() => {
5134
5146
  this.setState({
5135
5147
  multiModuleShow:false,
5136
- multiModule: '',
5148
+ multiModule: '',
5137
5149
  })
5138
5150
  this.tabTitlesClick('multiModule','delect')
5139
5151
  }, 0);
@@ -8355,6 +8367,7 @@ Video.defaultProps = {
8355
8367
  noiseSuppression: true,
8356
8368
  needPreSale: true, // 是否开启音频录制 默认true--只控制售前full
8357
8369
  signalDisconnectedTime: 20, // 网络异常断开多久后异常弹窗提示
8370
+ zeroVolAlert: true, // true 开启音量持续提示,,false不开启
8358
8371
  logUrl: 'http://hsbc.cn-shanghai.log.aliyuncs.com/logstores/hsbc/track?APIVersion=0.6.0&app=meeting-ui',
8359
8372
  internalUrl: 'https://wp-staff-gateway.wealth-platform.uat.ali.cloud.cn.hsbc/meeting-ui/OHB/CN/HSBC?chnlID=OHB&locale=zh_CN&chnlCC=CN&chnlGMC=HSBC&targetFunc=supervisorMeeting&sourceFunc=rmMeeting'
8360
8373
  }