react_hsbc_teller 1.9.31 → 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.31",
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";
@@ -45,6 +46,8 @@ import SignMy from '../sign/signMy.jsx'
45
46
  import Step from '../components/step/step.jsx'
46
47
  import axios from 'axios';
47
48
  import CryptoJS from "crypto-js";
49
+
50
+ const SDK_VERISON = '1.9.33'
48
51
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
49
52
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
50
53
  const { Option } = Select;
@@ -169,6 +172,7 @@ class Video extends Component {
169
172
  }
170
173
  cancel = axios.CancelToken.source()
171
174
  state = {
175
+ ablePlayNetweakAudio: true,
172
176
  beautyType: false,
173
177
  beautyName: '开启美颜',
174
178
  signNoClick: false,
@@ -296,7 +300,7 @@ class Video extends Component {
296
300
  saveLog = (val) => {
297
301
  axios({
298
302
  method: 'get',
299
- baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.31&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
303
+ baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller='+ SDK_VERISON +'&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
300
304
 
301
305
  }).then(res => {
302
306
 
@@ -2340,6 +2344,20 @@ class Video extends Component {
2340
2344
  if (sid == document.getElementById('publish_video1').name) {
2341
2345
  this.messageClick('当前网络环境较差', 'error')
2342
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
+
2343
2361
  }
2344
2362
  };
2345
2363
  // 开始服务端录制成功
@@ -2928,34 +2946,35 @@ class Video extends Component {
2928
2946
 
2929
2947
  }
2930
2948
  addToScriptClick = () => {
2949
+ let params = `?v=${SDK_VERISON}`
2931
2950
  const _dependScripts = [
2932
- this.props.resourcePath + "/beauty/beauty_frame_pkg.js",
2933
- this.props.resourcePath + "/adapter.js",
2934
- this.props.resourcePath + "/getMediaInfo.js",
2935
- this.props.resourcePath + "/EBML.js",
2936
- this.props.resourcePath + "/mcu.js",
2937
- this.props.resourcePath + "/meeting_desk_stream.js",
2938
- this.props.resourcePath + "/meeting_html_stream.js",
2939
- this.props.resourcePath + "/meeting_file_stream.js",
2940
- this.props.resourcePath + "/meeting_im.js",
2941
- this.props.resourcePath + "/meeting_vod.js",
2942
- this.props.resourcePath + "/meeting_invite.js",
2943
- this.props.resourcePath + "/client_record.js",
2944
- this.props.resourcePath + "/remote_record.js",
2945
- this.props.resourcePath + "/meeting_camera_stream.js",
2946
- this.props.resourcePath + "/meeting_api.js",
2947
-
2948
- this.props.resourcePath + "/eruda.js",
2949
- this.props.resourcePath + "/iconfont.js",
2950
- this.props.resourcePath + "/html2canvas.js",
2951
- this.props.resourcePath + "/dom-to-image.js",
2952
-
2953
- this.props.resourcePath + "/hs/hs_human_segmentation_wrapper.js",
2954
- this.props.resourcePath + "/hs/hs_human_segmentation.js",
2955
- this.props.resourcePath + "/hs/hs_human_segmentation.wasm",
2956
-
2957
- this.props.resourcePath + "/mix/mix_frame.js",
2958
- this.props.resourcePath + "/mix/pageBoard.js"
2951
+ this.props.resourcePath + "/beauty/beauty_frame_pkg.js" + params,
2952
+ this.props.resourcePath + "/adapter.js" + params,
2953
+ this.props.resourcePath + "/getMediaInfo.js" + params,
2954
+ this.props.resourcePath + "/EBML.js" + params,
2955
+ this.props.resourcePath + "/mcu.js" + params,
2956
+ this.props.resourcePath + "/meeting_desk_stream.js" + params,
2957
+ this.props.resourcePath + "/meeting_html_stream.js" + params,
2958
+ this.props.resourcePath + "/meeting_file_stream.js" + params,
2959
+ this.props.resourcePath + "/meeting_im.js" + params,
2960
+ this.props.resourcePath + "/meeting_vod.js" + params,
2961
+ this.props.resourcePath + "/meeting_invite.js" + params,
2962
+ this.props.resourcePath + "/client_record.js" + params,
2963
+ this.props.resourcePath + "/remote_record.js" + params,
2964
+ this.props.resourcePath + "/meeting_camera_stream.js" + params,
2965
+ this.props.resourcePath + "/meeting_api.js" + params,
2966
+
2967
+ this.props.resourcePath + "/eruda.js" + params,
2968
+ this.props.resourcePath + "/iconfont.js" + params,
2969
+ this.props.resourcePath + "/html2canvas.js" + params,
2970
+ this.props.resourcePath + "/dom-to-image.js" + params,
2971
+
2972
+ this.props.resourcePath + "/hs/hs_human_segmentation_wrapper.js" + params,
2973
+ this.props.resourcePath + "/hs/hs_human_segmentation.js" + params,
2974
+ this.props.resourcePath + "/hs/hs_human_segmentation.wasm" + params,
2975
+
2976
+ this.props.resourcePath + "/mix/mix_frame.js" + params,
2977
+ this.props.resourcePath + "/mix/pageBoard.js" + params,
2959
2978
 
2960
2979
  ]
2961
2980
  const that = this
@@ -3001,7 +3020,7 @@ class Video extends Component {
3001
3020
  }
3002
3021
  }
3003
3022
  componentWillMount() {
3004
- console.log('hsbc_teller_sdk', '1.9.31')
3023
+ console.log('hsbc_teller_sdk', SDK_VERISON)
3005
3024
  let arr = []
3006
3025
  for(let i=1;i<=12;i++){
3007
3026
  arr.push({
@@ -5804,6 +5823,7 @@ Video.defaultProps = {
5804
5823
  isTranscribing: false,
5805
5824
  shareMask: false,
5806
5825
  isOpenSound: false, // true开启进出音效 false不开启
5826
+ isWeakSound: false,
5807
5827
  userSide: 2,
5808
5828
  logUrl: 'http://hsbc.cn-shanghai.log.aliyuncs.com/logstores/hsbc/track?APIVersion=0.6.0&app=meeting-ui',
5809
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
package/dist wpb.zip DELETED
Binary file