react_hsbc_teller 2.0.81 → 2.0.83
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 +4 -0
- package/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/assets/mp3/volume_error.mp3 +0 -0
- package/packages/pages/video/video.jsx +64 -3
package/package.json
CHANGED
|
Binary file
|
|
@@ -46,6 +46,7 @@ import recordErrorAudio from '../../assets/mp3/record_error.mp3'
|
|
|
46
46
|
import IpadLeaveAudio from '../../assets/mp3/ipad_leave_error.mp3';
|
|
47
47
|
import IpadLowPowerAudio from '../../assets/mp3/ipad_low_power.mp3';
|
|
48
48
|
import ipadMediaCloseAudio from '../../assets/mp3/ipad_media_close.mp3';
|
|
49
|
+
import volumeError from '../../assets/mp3/volume_error.mp3'
|
|
49
50
|
import MediaErrorAudio from '../../assets/mp3/media_error.mp3';
|
|
50
51
|
import startMediaError from '../../assets/mp3/startMedia_error.mp3'
|
|
51
52
|
import internalJoin from '../../assets/mp3/internalJoin.mp3'
|
|
@@ -65,7 +66,7 @@ import axios from 'axios';
|
|
|
65
66
|
import CryptoJS from "crypto-js";
|
|
66
67
|
|
|
67
68
|
|
|
68
|
-
const SDK_VERISON = '2.0.
|
|
69
|
+
const SDK_VERISON = '2.0.83'
|
|
69
70
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
70
71
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
71
72
|
const { Option } = Select;
|
|
@@ -357,7 +358,7 @@ class Video extends Component {
|
|
|
357
358
|
gainNodeVolume: 1, // 音量增益节点-用于投屏
|
|
358
359
|
gainNodeVolumeNew: 1,
|
|
359
360
|
networkAnomalyModalVisible: false, // 网络异常弹窗
|
|
360
|
-
|
|
361
|
+
isModalVisibleVolume: false, // RM音量异常弹窗
|
|
361
362
|
};
|
|
362
363
|
// eslint-disable-next-line no-undef
|
|
363
364
|
test_controller = '';
|
|
@@ -3864,6 +3865,7 @@ class Video extends Component {
|
|
|
3864
3865
|
console.log('服务端录制初始化成功', record_id, record_third_id)
|
|
3865
3866
|
};
|
|
3866
3867
|
this.test_controller.OnVolumeAnalyser = (sid, analyser) => {
|
|
3868
|
+
console.log('analyser',analyser)
|
|
3867
3869
|
clearInterval(this.state.OnVolumeAnalyserMap.get(sid))
|
|
3868
3870
|
let publish_sid = (document.getElementById('publish_video1') ? document.getElementById('publish_video1').name : '') || (document.getElementById('publish_streamId1') ? document.getElementById('publish_streamId1').name : '');
|
|
3869
3871
|
let subscribe_sid1 = (document.getElementById('video1') ? document.getElementById('video1').name : '') || (document.getElementById('audio1') ? document.getElementById('audio1').name : '');
|
|
@@ -3881,9 +3883,17 @@ class Video extends Component {
|
|
|
3881
3883
|
let subscribe_sid12 = (document.getElementById('video12') ? document.getElementById('video12').name : '') || (document.getElementById('audio12') ? document.getElementById('audio12').name : '');
|
|
3882
3884
|
|
|
3883
3885
|
let volumeView;
|
|
3886
|
+
// RM音量处理:新增提示,当rm非静音的情况下,音量为0,提示 voiceStatue--为false RM端是非静音的状态
|
|
3884
3887
|
switch (sid) {
|
|
3885
3888
|
case publish_sid:
|
|
3886
3889
|
volumeView = "publish_volumeView";
|
|
3890
|
+
if (!this.volumeFunctionTimer && this.state.voiceStatue == false && this.state.analyserHeight.get(sid) == 0) {
|
|
3891
|
+
this.volumeFunctionTimer = setTimeout(this.volumeFunction.bind(this, sid), 15000)
|
|
3892
|
+
}
|
|
3893
|
+
if (this.volumeFunctionTimer && this.state.voiceStatue == false && this.state.analyserHeight.get(sid) != 0) {
|
|
3894
|
+
clearTimeout(this.volumeFunctionTimer)
|
|
3895
|
+
this.volumeFunctionTimer = null
|
|
3896
|
+
}
|
|
3887
3897
|
break;
|
|
3888
3898
|
case subscribe_sid1:
|
|
3889
3899
|
volumeView = "subscribe_volumeView1";
|
|
@@ -3961,6 +3971,7 @@ class Video extends Component {
|
|
|
3961
3971
|
this.state.analyserHeight = this.state.analyserHeight
|
|
3962
3972
|
}
|
|
3963
3973
|
}
|
|
3974
|
+
console.log('this.state.analyserHeight', this.state.analyserHeight, this.state.analyserHeight.get(sid))
|
|
3964
3975
|
this.state.OnVolumeAnalyserMap.set(sid, setInterval(
|
|
3965
3976
|
this.test_controller.OnVolumeAnalyser.bind(this, sid, analyser),
|
|
3966
3977
|
300
|
|
@@ -4278,6 +4289,8 @@ class Video extends Component {
|
|
|
4278
4289
|
clearTimeout(this.ipadLowPowerPlayTimer)
|
|
4279
4290
|
clearTimeout(this.mediaErrorPlayTimer)
|
|
4280
4291
|
clearTimeout(this.screenSharedTimer)
|
|
4292
|
+
clearTimeout(this.volumeFunctionTimer)
|
|
4293
|
+
clearTimeout(this.volumePlayTimer)
|
|
4281
4294
|
clearInterval(this.state.drawCanvasInterval)
|
|
4282
4295
|
clearInterval(this.state.faceDetectionTimer);
|
|
4283
4296
|
clearInterval(this.state.imageDetectionTimer);
|
|
@@ -6853,6 +6866,9 @@ class Video extends Component {
|
|
|
6853
6866
|
this.setState({ idCardNumber: event.target.value });
|
|
6854
6867
|
}
|
|
6855
6868
|
dateNewTime=(value)=>{
|
|
6869
|
+
if(value == '长期') {
|
|
6870
|
+
return true;
|
|
6871
|
+
}
|
|
6856
6872
|
var myDate = new Date();
|
|
6857
6873
|
var year = myDate.getFullYear();
|
|
6858
6874
|
var month = myDate.getMonth() + 1;
|
|
@@ -7174,6 +7190,41 @@ class Video extends Component {
|
|
|
7174
7190
|
gainNodeVolumeNew: value
|
|
7175
7191
|
})
|
|
7176
7192
|
}
|
|
7193
|
+
// RM音量处理
|
|
7194
|
+
volumeFunction(sid) {
|
|
7195
|
+
console.log('this.state.analyserHeight', this.state.analyserHeight, this.state.analyserHeight.get(sid))
|
|
7196
|
+
if (this.state.voiceStatue == false && this.state.analyserHeight.get(sid) == 0) {
|
|
7197
|
+
// this.messageClick('当前音量为0,请检查设备', 'error')
|
|
7198
|
+
this.setState({
|
|
7199
|
+
isModalVisibleVolume: true,
|
|
7200
|
+
})
|
|
7201
|
+
clearTimeout(this.volumePlayTimer)
|
|
7202
|
+
this.volumePlay = () => {
|
|
7203
|
+
if (this.state.isModalVisibleVolume) {
|
|
7204
|
+
if (this.volumeAudio) this.volumeAudio.pause()
|
|
7205
|
+
this.volumeAudio = new Audio(volumeError)
|
|
7206
|
+
this.volumeAudio.play()
|
|
7207
|
+
this.volumePlayTimer = setTimeout(this.volumePlay, 3000);
|
|
7208
|
+
console.log('this.state.analyserHeight111', this.volumePlayTimer)
|
|
7209
|
+
}
|
|
7210
|
+
}
|
|
7211
|
+
setTimeout(this.volumePlay, 0);
|
|
7212
|
+
}
|
|
7213
|
+
}
|
|
7214
|
+
// RM音量异常弹框取消
|
|
7215
|
+
handleCancelVolume = () => {
|
|
7216
|
+
clearTimeout(this.volumePlayTimer)
|
|
7217
|
+
clearTimeout(this.volumeFunctionTimer)
|
|
7218
|
+
this.volumeFunctionTimer = null
|
|
7219
|
+
this.setState({isModalVisibleVolume: false})
|
|
7220
|
+
}
|
|
7221
|
+
//RM音量异常弹框刷新
|
|
7222
|
+
handleOkVolume = () => {
|
|
7223
|
+
clearTimeout(this.volumePlayTimer)
|
|
7224
|
+
clearTimeout(this.volumeFunctionTimer)
|
|
7225
|
+
this.volumeFunctionTimer = null
|
|
7226
|
+
location.reload(false);
|
|
7227
|
+
}
|
|
7177
7228
|
render() {
|
|
7178
7229
|
const { meetingInfo, isTranscribing } = this.props
|
|
7179
7230
|
var pdfChildren
|
|
@@ -8067,6 +8118,7 @@ class Video extends Component {
|
|
|
8067
8118
|
key="5" className={this.state.envInfo.networkResult=='不合格'? 'panel-error':''} >
|
|
8068
8119
|
<p className='envClass'>网络状态:{this.state.envInfo.networkStatus}</p>
|
|
8069
8120
|
{this.state.envInfo.networkInfo?<p className='envClass'>{this.state.envInfo.networkInfo}</p>:null}
|
|
8121
|
+
<p className='envClass'>检测标准:预估下行速度/带宽应大于0.2Mb/s</p>
|
|
8070
8122
|
</Panel>
|
|
8071
8123
|
<Panel header={<span>设备电量 - {this.state.envInfo.batteryResult} {this.state.envInfo.batteryResult=='不合格'? <img src={IconFail} />: <img src={IconSuccess} />} </span>}
|
|
8072
8124
|
key="2" className={this.state.envInfo.batteryResult=='不合格'? 'panel-error':''}>
|
|
@@ -8144,6 +8196,15 @@ class Video extends Component {
|
|
|
8144
8196
|
</Panel>
|
|
8145
8197
|
</Collapse>
|
|
8146
8198
|
</Modal>
|
|
8199
|
+
{/* RM音量处理,当为0的时候弹窗处理*/}
|
|
8200
|
+
<Modal closable={false} centered={true} visible={this.state.isModalVisibleVolume} maskClosable={false} footer={[
|
|
8201
|
+
<div key='end'>
|
|
8202
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelVolume}>取消</Button>
|
|
8203
|
+
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkVolume}>刷新</Button>
|
|
8204
|
+
</div>
|
|
8205
|
+
]}>
|
|
8206
|
+
<div className='endModal'>当前设备音量为0,请检查设备</div>
|
|
8207
|
+
</Modal>
|
|
8147
8208
|
<video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="0" height="0"></video>
|
|
8148
8209
|
<video className="mixedvideo" id="manedvideo" autoPlay width="0" height="0"></video>
|
|
8149
8210
|
<video className="mixedvideo" id="video30" autoPlay width="0" height="0"></video>
|
|
@@ -8218,4 +8279,4 @@ Video.defaultProps = {
|
|
|
8218
8279
|
logUrl: 'http://hsbc.cn-shanghai.log.aliyuncs.com/logstores/hsbc/track?APIVersion=0.6.0&app=meeting-ui',
|
|
8219
8280
|
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'
|
|
8220
8281
|
}
|
|
8221
|
-
export default Video
|
|
8282
|
+
export default Video
|