react_hsbc_teller 1.9.32 → 1.9.33

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.9.32",
3
+ "version": "1.9.33",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -224,6 +224,7 @@ userExit =(val)=>{
224
224
  callbackUrl={this.state.callbackUrl}
225
225
  businessNumber={this.state.businessNumber}
226
226
  lang={this.state.lang}
227
+ isWeakSound={true}
227
228
  roomServerUrl={this.state.roomServerUrl}
228
229
  baseURL={this.state.baseURL}
229
230
  resourcePath={this.state.resourcePath}
@@ -233,6 +234,7 @@ userExit =(val)=>{
233
234
  joinRoomCallback={this.joinRoomCallback}
234
235
  imgCallback={this.imgCallback}
235
236
  sfpCallback={()=>{console.log('sfpCallback success')}}
237
+ OnNetworkWeak={(a, b, c)=>{console.log('OnNetworkWeak', a,b,c)}}
236
238
  userExit={this.userExit}
237
239
  staffPermission={this.staffPermission}
238
240
  >
@@ -20,6 +20,7 @@ import autod from '../../assets/mp3/joinmeeting.mp3'
20
20
  import internalJoin from '../../assets/mp3/internalJoin.mp3'
21
21
  import internalLeft from '../../assets/mp3/internalLeft.mp3'
22
22
  import leftMetting from '../../assets/mp3/leftmeeting.mp3'
23
+ import networkWeakAudio from '../../assets/mp3/networkweak.mp3'
23
24
  import errorPng from '../../assets/img/tooltips2_fail.png'
24
25
  import { callNimIM } from '../../utils/cell.js'
25
26
  import Modal from "antd/lib/modal";
@@ -46,7 +47,7 @@ import Step from '../components/step/step.jsx'
46
47
  import axios from 'axios';
47
48
  import CryptoJS from "crypto-js";
48
49
 
49
- const SDK_VERISON = '1.9.32'
50
+ const SDK_VERISON = '1.9.33'
50
51
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
51
52
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
52
53
  const { Option } = Select;
@@ -171,6 +172,7 @@ class Video extends Component {
171
172
  }
172
173
  cancel = axios.CancelToken.source()
173
174
  state = {
175
+ ablePlayNetweakAudio: true,
174
176
  beautyType: false,
175
177
  beautyName: '开启美颜',
176
178
  signNoClick: false,
@@ -2342,6 +2344,20 @@ class Video extends Component {
2342
2344
  if (sid == document.getElementById('publish_video1').name) {
2343
2345
  this.messageClick('当前网络环境较差', 'error')
2344
2346
  this.saveLog('mrtc OnNetworkWeak')
2347
+
2348
+ if (this.props.isWeakSound && this.state.ablePlayNetweakAudio) {
2349
+ this.state.ablePlayNetweakAudio = false;
2350
+ let src = networkWeakAudio
2351
+ let audio = new Audio(src)
2352
+ audio.play()
2353
+ setTimeout(() => {
2354
+ this.state.ablePlayNetweakAudio = true;
2355
+ }, 30000);
2356
+ }
2357
+ if (this.props.OnNetworkWeak) {
2358
+ this.props.OnNetworkWeak(bpsSend, bpsRecv, sid)
2359
+ }
2360
+
2345
2361
  }
2346
2362
  };
2347
2363
  // 开始服务端录制成功
@@ -5807,6 +5823,7 @@ Video.defaultProps = {
5807
5823
  isTranscribing: false,
5808
5824
  shareMask: false,
5809
5825
  isOpenSound: false, // true开启进出音效 false不开启
5826
+ isWeakSound: false,
5810
5827
  userSide: 2,
5811
5828
  logUrl: 'http://hsbc.cn-shanghai.log.aliyuncs.com/logstores/hsbc/track?APIVersion=0.6.0&app=meeting-ui',
5812
5829
  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'
package/dist new.zip DELETED
Binary file