react_hsbc_teller 2.0.88 → 2.0.90

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.88",
3
+ "version": "2.0.90",
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.88'
69
+ const SDK_VERISON = '2.0.90'
70
70
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
71
71
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
72
72
  const { Option } = Select;
@@ -2612,11 +2612,11 @@ class Video extends Component {
2612
2612
  const playAudioTip = (code) => {
2613
2613
  this.messageClick('媒体流服务异常断开,请刷新', 'error')
2614
2614
  if(code == 5003) {
2615
- this.state.mediaErrorModalMessage = '媒体流获取失败,请刷新('+ code + ')'
2615
+ this.state.mediaErrorModalMessage = '媒体流获取失败,请刷新('+ code + '),如您当前正在投屏操作,请在浏览器刷新后重新投屏'
2616
2616
  } else if(code == 5004 || code == 5010) {
2617
- this.state.mediaErrorModalMessage = '媒体流网络异常,请刷新('+ code + ')'
2617
+ this.state.mediaErrorModalMessage = '媒体流网络异常,请刷新('+ code + '),如您当前正在投屏操作,请在浏览器刷新后重新投屏'
2618
2618
  } else {
2619
- this.state.mediaErrorModalMessage = '媒体流服务异常,请刷新('+ code + ')'
2619
+ this.state.mediaErrorModalMessage = '媒体流服务异常,请刷新('+ code + '),如您当前正在投屏操作,请在浏览器刷新后重新投屏'
2620
2620
  }
2621
2621
  this.setState({
2622
2622
  mediaErrorModalVisible: true,
@@ -3964,13 +3964,17 @@ class Video extends Component {
3964
3964
  switch (sid) {
3965
3965
  case publish_sid:
3966
3966
  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
3967
+ this.saveLog('zeroVolAlert: ' + this.props.zeroVolAlert)
3968
+ if(this.props.zeroVolAlert) {
3969
+ if (!this.volumeFunctionTimer && this.state.voiceStatue == false && this.state.analyserHeight.get(sid) == 0) {
3970
+ this.volumeFunctionTimer = setTimeout(this.volumeFunction.bind(this, sid), 15000)
3971
+ }
3972
+ if (this.volumeFunctionTimer && this.state.voiceStatue == false && this.state.analyserHeight.get(sid) != 0) {
3973
+ clearTimeout(this.volumeFunctionTimer)
3974
+ this.volumeFunctionTimer = null
3975
+ }
3973
3976
  }
3977
+
3974
3978
  break;
3975
3979
  case subscribe_sid1:
3976
3980
  volumeView = "subscribe_volumeView1";
@@ -5113,10 +5117,10 @@ class Video extends Component {
5113
5117
  // 打开抄录/签署面板
5114
5118
  showModal=(moduleName)=>{
5115
5119
  if (!this.state.multiModuleShow) {
5116
- this.setState({
5117
- multiModuleShow:true,
5118
- multiModule: moduleName,
5119
- },()=>{
5120
+ this.setState({
5121
+ multiModuleShow:true,
5122
+ multiModule: moduleName,
5123
+ },()=>{
5120
5124
  })
5121
5125
  this.tabTitlesClick(
5122
5126
  {
@@ -5124,16 +5128,16 @@ class Video extends Component {
5124
5128
  name: '签署抄录'
5125
5129
  },'add'
5126
5130
  )
5127
- }else{
5128
- this.closeModule()
5129
- }
5131
+ }else{
5132
+ this.closeModule()
5133
+ }
5130
5134
  }
5131
5135
  // 关闭面板
5132
5136
  closeModule=()=>{
5133
5137
  setTimeout(() => {
5134
5138
  this.setState({
5135
5139
  multiModuleShow:false,
5136
- multiModule: '',
5140
+ multiModule: '',
5137
5141
  })
5138
5142
  this.tabTitlesClick('multiModule','delect')
5139
5143
  }, 0);
@@ -8355,6 +8359,7 @@ Video.defaultProps = {
8355
8359
  noiseSuppression: true,
8356
8360
  needPreSale: true, // 是否开启音频录制 默认true--只控制售前full
8357
8361
  signalDisconnectedTime: 20, // 网络异常断开多久后异常弹窗提示
8362
+ zeroVolAlert: true, // true 开启音量持续提示,,false不开启
8358
8363
  logUrl: 'http://hsbc.cn-shanghai.log.aliyuncs.com/logstores/hsbc/track?APIVersion=0.6.0&app=meeting-ui',
8359
8364
  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
8365
  }