react_hsbc_teller 1.1.7 → 1.1.8

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.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -24,7 +24,6 @@ class Demo extends Component {
24
24
  // baseURL:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
25
25
  // resourcePath:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
26
26
  prohibitPrompt: '无客户',
27
- voiceColor: '#333',
28
27
  titleBackground: '#40a9ff',
29
28
  titleColor: '#faad14',
30
29
  microphoneSize: 50,
@@ -846,7 +846,8 @@ class Video extends Component {
846
846
  let analyser = this.state.analyserData.get(sid)
847
847
  aou(analyser)
848
848
  function aou(analyser){
849
- cancelAnimationFrame(microTimerMap.get(sid))
849
+ clearInterval(microTimerMap.get(sid))
850
+ // cancelAnimationFrame(microTimerMap.get(sid))
850
851
  if(analyser) {
851
852
 
852
853
  let dataArray = new Uint8Array(analyser.frequencyBinCount);
@@ -873,7 +874,13 @@ class Video extends Component {
873
874
  cobj.fillRect(startX, startY, width, height )
874
875
  }
875
876
  }
876
- microTimerMap.set(sid,requestAnimationFrame(aou.bind(this, analyser)) )
877
+ microTimerMap.set(sid,
878
+ setInterval(
879
+ aou.bind(this, analyser),
880
+ 300
881
+ )
882
+ // requestAnimationFrame(aou.bind(this, analyser))
883
+ )
877
884
  }
878
885
 
879
886
 
@@ -2363,7 +2370,7 @@ class Video extends Component {
2363
2370
  console.log('服务端录制初始化成功', record_id, record_third_id)
2364
2371
  };
2365
2372
  this.test_controller.OnVolumeAnalyser = (sid, analyser) => {
2366
- cancelAnimationFrame(this.state.OnVolumeAnalyserMap.get(sid))
2373
+ clearInterval(this.state.OnVolumeAnalyserMap.get(sid))
2367
2374
  let publish_sid = document.getElementById('publish_video1').name || document.getElementById('publish_streamId1').name;
2368
2375
  let subscribe_sid1 = document.getElementById('video1').name || document.getElementById('audio1').name;
2369
2376
  let subscribe_sid2 = document.getElementById('video2').name || document.getElementById('audio2').name;
@@ -2459,8 +2466,12 @@ class Video extends Component {
2459
2466
  }
2460
2467
 
2461
2468
  }
2462
- this.state.OnVolumeAnalyserMap.set(sid,requestAnimationFrame(this.test_controller.OnVolumeAnalyser.bind(this, sid, analyser)))
2463
- this.state.OnVolumeAnalyserMap = this.state.OnVolumeAnalyserMap
2469
+ this.state.OnVolumeAnalyserMap.set(sid,setInterval(
2470
+ this.test_controller.OnVolumeAnalyser.bind(this, sid, analyser),
2471
+ 300
2472
+ ))
2473
+ this.state.OnVolumeAnalyserMap = this.state.OnVolumeAnalyserMap
2474
+ // requestAnimationFrame(this.test_controller.OnVolumeAnalyser.bind(this, sid, analyser));
2464
2475
 
2465
2476
  this.state.analyserData.set(sid, analyser)
2466
2477
  this.state.analyserData = this.state.analyserData