react_hsbc_teller 2.0.90 → 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/README.md +2 -0
- package/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +10 -2
package/package.json
CHANGED
|
@@ -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.
|
|
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,6 +3969,9 @@ class Video extends Component {
|
|
|
3964
3969
|
switch (sid) {
|
|
3965
3970
|
case publish_sid:
|
|
3966
3971
|
volumeView = "publish_volumeView";
|
|
3972
|
+
if(newanalyser) {
|
|
3973
|
+
analyser = newanalyser
|
|
3974
|
+
}
|
|
3967
3975
|
this.saveLog('zeroVolAlert: ' + this.props.zeroVolAlert)
|
|
3968
3976
|
if(this.props.zeroVolAlert) {
|
|
3969
3977
|
if (!this.volumeFunctionTimer && this.state.voiceStatue == false && this.state.analyserHeight.get(sid) == 0) {
|