react_hsbc_teller 2.0.76 → 2.0.77
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 +3 -0
- package/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +59 -10
package/package.json
CHANGED
|
@@ -64,7 +64,7 @@ import MultiModule from '../multiModule/multiModule'//签字、抄录
|
|
|
64
64
|
import axios from 'axios';
|
|
65
65
|
import CryptoJS from "crypto-js";
|
|
66
66
|
|
|
67
|
-
const SDK_VERISON = '2.0.
|
|
67
|
+
const SDK_VERISON = '2.0.77'
|
|
68
68
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
69
69
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
70
70
|
const { Option } = Select;
|
|
@@ -354,7 +354,8 @@ class Video extends Component {
|
|
|
354
354
|
salePresaleRecordId: '',
|
|
355
355
|
supplesalePresaleRecordId: '',
|
|
356
356
|
gainNodeVolume: 1, // 音量增益节点-用于投屏
|
|
357
|
-
gainNodeVolumeNew: 1
|
|
357
|
+
gainNodeVolumeNew: 1,
|
|
358
|
+
networkAnomalyModalVisible: false, // 网络异常弹窗
|
|
358
359
|
|
|
359
360
|
};
|
|
360
361
|
// eslint-disable-next-line no-undef
|
|
@@ -2481,10 +2482,18 @@ class Video extends Component {
|
|
|
2481
2482
|
transcribeErrorCode: 30001,
|
|
2482
2483
|
transcribeErrorModalVisible: true
|
|
2483
2484
|
})
|
|
2485
|
+
this.saveLog('Failed to establish connection,' + code)
|
|
2484
2486
|
} else {
|
|
2487
|
+
let message = '建立连接失败'
|
|
2488
|
+
if(code == '-101') {
|
|
2489
|
+
this.setState({
|
|
2490
|
+
networkAnomalyModalVisible: true
|
|
2491
|
+
})
|
|
2492
|
+
message = '建立连接失败,网络异常,请检查网络后重试'
|
|
2493
|
+
}
|
|
2485
2494
|
|
|
2486
2495
|
this.saveLog('Failed to establish connection,' + code)
|
|
2487
|
-
this.messageClick(
|
|
2496
|
+
this.messageClick(message, 'error')
|
|
2488
2497
|
this.state.sessionType = false
|
|
2489
2498
|
this.roomCallBack(2, '连接失败', '2-'+code)
|
|
2490
2499
|
}
|
|
@@ -2536,6 +2545,11 @@ class Video extends Component {
|
|
|
2536
2545
|
console.log('创建房间失败', err_code, err_msg)
|
|
2537
2546
|
this.saveLog('Failed to create room,' + err_code)
|
|
2538
2547
|
this.state.sessionType = false
|
|
2548
|
+
let message = '创建房间失败-' + err_code
|
|
2549
|
+
if(err_code == '-303' || err_code == '-304') {
|
|
2550
|
+
message = '创建房间超时,请检查网络后重试-' + err_code
|
|
2551
|
+
}
|
|
2552
|
+
this.messageClick(message, 'error')
|
|
2539
2553
|
this.roomCallBack(2, '创建房间失败', '7-' + err_code)
|
|
2540
2554
|
};
|
|
2541
2555
|
// 初始化⾳视频成功
|
|
@@ -2552,7 +2566,9 @@ class Video extends Component {
|
|
|
2552
2566
|
const playAudioTip = (code) => {
|
|
2553
2567
|
this.messageClick('媒体流服务异常断开,请刷新', 'error')
|
|
2554
2568
|
if(code == 5003) {
|
|
2555
|
-
this.state.mediaErrorModalMessage = '
|
|
2569
|
+
this.state.mediaErrorModalMessage = '媒体流获取失败,请刷新('+ code + ')'
|
|
2570
|
+
} else if(code == 5004 || code == 5010) {
|
|
2571
|
+
this.state.mediaErrorModalMessage = '媒体流网络异常,请刷新('+ code + ')'
|
|
2556
2572
|
} else {
|
|
2557
2573
|
this.state.mediaErrorModalMessage = '媒体流服务异常,请刷新('+ code + ')'
|
|
2558
2574
|
}
|
|
@@ -2582,8 +2598,12 @@ class Video extends Component {
|
|
|
2582
2598
|
if (sid == this.state.publishSid) {
|
|
2583
2599
|
this.saveLog('Audio and video close notification,' + code)
|
|
2584
2600
|
this.roomCallBack(2, '音视频异常关闭', '8-' + code)
|
|
2585
|
-
if (code ==
|
|
2586
|
-
|
|
2601
|
+
if (code == 5004 || code == 5007 || code == 5009 || code == 5010 || code == 5011) {
|
|
2602
|
+
let message = 'RM端媒体链路断开'
|
|
2603
|
+
if(code == 5004 || code == 5010) {
|
|
2604
|
+
message = 'RM端媒体链路断开,网络异常,请检查网络后重试'
|
|
2605
|
+
}
|
|
2606
|
+
this.saveVideoPoint('conFail', `${message}, err_code=${code}`)
|
|
2587
2607
|
playAudioTip(code);
|
|
2588
2608
|
}
|
|
2589
2609
|
//5003:启动流失败(信令阶段)
|
|
@@ -2595,8 +2615,12 @@ class Video extends Component {
|
|
|
2595
2615
|
this.state.isScreenSwitching = false
|
|
2596
2616
|
this.setSharedScreenState(false)
|
|
2597
2617
|
this.setSharedScreenTimer(false)
|
|
2598
|
-
if (code ==
|
|
2599
|
-
|
|
2618
|
+
if (code == 5004 || code == 5007 || code == 5009 || code == 5010 || code == 5011) {
|
|
2619
|
+
let message = 'RM投屏媒体链路断开'
|
|
2620
|
+
if(code == 5004 || code == 5010) {
|
|
2621
|
+
message = 'RM投屏媒体链路断开,网络异常,请检查网络后重试'
|
|
2622
|
+
}
|
|
2623
|
+
this.saveVideoPoint('conFail', `${message}, err_code=${code}`)
|
|
2600
2624
|
playAudioTip(code);
|
|
2601
2625
|
}
|
|
2602
2626
|
//5003:启动流失败(信令阶段)
|
|
@@ -2906,7 +2930,18 @@ class Video extends Component {
|
|
|
2906
2930
|
this.roomCallBack(2, '发布失败', '4-' + err_code)
|
|
2907
2931
|
} else {
|
|
2908
2932
|
this.test_controller.UnPublish(sid)
|
|
2909
|
-
|
|
2933
|
+
let message = '投屏失败请重新投屏'
|
|
2934
|
+
if(err_code == '-1073'){
|
|
2935
|
+
message = '超出发布限额 请检查是否已经发布'
|
|
2936
|
+
}
|
|
2937
|
+
if(err_code == '-1074'){
|
|
2938
|
+
message = '网络异常,请检查网络后重新投屏'
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
if(err_code == '5103') {
|
|
2942
|
+
message = '不⽀持当前媒体,请重新投屏'
|
|
2943
|
+
}
|
|
2944
|
+
this.messageClick(message, 'error')
|
|
2910
2945
|
this.setSharedScreenState(false)
|
|
2911
2946
|
this.setSharedScreenTimer(false)
|
|
2912
2947
|
this.saveLog('Share fail, code=' + err_code)
|
|
@@ -5065,6 +5100,12 @@ class Video extends Component {
|
|
|
5065
5100
|
handleOktranscribeErrorConfirm = () => {
|
|
5066
5101
|
location.reload(false);
|
|
5067
5102
|
}
|
|
5103
|
+
networkAnomalyConfirm = () => {
|
|
5104
|
+
location.reload(false);
|
|
5105
|
+
this.setState({
|
|
5106
|
+
networkAnomalyModalVisible: false
|
|
5107
|
+
})
|
|
5108
|
+
}
|
|
5068
5109
|
handleCancelMediaError = () => {
|
|
5069
5110
|
clearTimeout(this.mediaErrorPlayTimer)
|
|
5070
5111
|
this.setState({ mediaErrorModalVisible: false })
|
|
@@ -7622,7 +7663,7 @@ class Video extends Component {
|
|
|
7622
7663
|
]}>
|
|
7623
7664
|
<div className='endModal'>{this.state.mediaErrorModalMessage}</div>
|
|
7624
7665
|
</Modal>
|
|
7625
|
-
{/* 30001(在信令链接失败回调中)/发布失败/音视频异常回调
|
|
7666
|
+
{/* 30001(在信令链接失败回调中)/发布失败/音视频异常回调 相关事件双录失败提示 */}
|
|
7626
7667
|
<Modal closable={false} centered={true} visible={this.state.transcribeErrorModalVisible} maskClosable={false} footer={[
|
|
7627
7668
|
<div key='end'>
|
|
7628
7669
|
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOktranscribeErrorConfirm}>确定</Button>
|
|
@@ -7630,6 +7671,14 @@ class Video extends Component {
|
|
|
7630
7671
|
]}>
|
|
7631
7672
|
<div className='endModal'>{'系统异常请刷新('+ this.state.transcribeErrorCode + ')'}</div>
|
|
7632
7673
|
</Modal>
|
|
7674
|
+
{/* 在网络异常的情况下弹窗提示后刷新后重试 */}
|
|
7675
|
+
<Modal closable={false} centered={true} visible={this.state.networkAnomalyModalVisible} maskClosable={false} footer={[
|
|
7676
|
+
<div key='end'>
|
|
7677
|
+
<Button className="modelButtonOk" type="primary" danger onClick={this.networkAnomalyConfirm}>确定</Button>
|
|
7678
|
+
</div>
|
|
7679
|
+
]}>
|
|
7680
|
+
<div className='endModal'>{'当前网络异常,请检查网络后重试'}</div>
|
|
7681
|
+
</Modal>
|
|
7633
7682
|
{/* 是否退出会议*/}
|
|
7634
7683
|
<Modal closable={false} centered={true} visible={this.state.isModalVisibleEnd} maskClosable={false} footer={[
|
|
7635
7684
|
<div key='end'>
|