react_hsbc_teller 2.0.17 → 2.0.19
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/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/demo/demo.js +1 -0
- package/packages/pages/video/video.jsx +19 -3
package/package.json
CHANGED
package/packages/demo/demo.js
CHANGED
|
@@ -31,6 +31,7 @@ roomId
|
|
|
31
31
|
// roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
|
|
32
32
|
// baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
|
|
33
33
|
// resourcePath: 'https://counter-web.leimondata.cn:7199',
|
|
34
|
+
// resourcePath:'http://121.196.19.70:8027/',
|
|
34
35
|
roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
|
|
35
36
|
baseURL:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
|
|
36
37
|
resourcePath:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
|
|
@@ -53,7 +53,7 @@ import Step from '../components/step/step.jsx'
|
|
|
53
53
|
import axios from 'axios';
|
|
54
54
|
import CryptoJS from "crypto-js";
|
|
55
55
|
|
|
56
|
-
const SDK_VERISON = '2.0.
|
|
56
|
+
const SDK_VERISON = '2.0.19'
|
|
57
57
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
58
58
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
59
59
|
const { Option } = Select;
|
|
@@ -86,6 +86,7 @@ let muteJson = new Map()
|
|
|
86
86
|
// let dateTime = 0
|
|
87
87
|
let messageValue = ''
|
|
88
88
|
let messageValueMap = new Map()
|
|
89
|
+
let third_id_Map = new Map()
|
|
89
90
|
// let beautyType = false
|
|
90
91
|
// let beautyNum = 0 // 0-关闭 1--弱 2--中 5---高
|
|
91
92
|
let rateList = []
|
|
@@ -1393,7 +1394,7 @@ class Video extends Component {
|
|
|
1393
1394
|
|
|
1394
1395
|
clearTimeout(this.loopPlay)
|
|
1395
1396
|
// 画中画循环播放逻辑
|
|
1396
|
-
if (document.hidden) {
|
|
1397
|
+
if (document.hidden && !this.state.businessRecordId) {
|
|
1397
1398
|
this.setState({
|
|
1398
1399
|
isPictureConfirmModalVisible: true
|
|
1399
1400
|
})
|
|
@@ -2760,6 +2761,10 @@ class Video extends Component {
|
|
|
2760
2761
|
// 结束服务端录制成功
|
|
2761
2762
|
this.test_controller.OnStopRemoteRecordSucc = (recordId, record_third_id) => {
|
|
2762
2763
|
console.log('结束服务端录制成功', recordId, record_third_id);
|
|
2764
|
+
// 重进会议前端会丢失之前的third_id,从服务端去取
|
|
2765
|
+
if (!record_third_id && third_id_Map.get(recordId)) {
|
|
2766
|
+
record_third_id = third_id_Map.get(recordId)
|
|
2767
|
+
}
|
|
2763
2768
|
if (!record_third_id) {
|
|
2764
2769
|
this.videoRecordCallback('2', true)
|
|
2765
2770
|
this.saveLog('mrtc OnStopRemoteRecordSucc, recordId='+recordId)
|
|
@@ -2779,6 +2784,10 @@ class Video extends Component {
|
|
|
2779
2784
|
record_third_id
|
|
2780
2785
|
) => {
|
|
2781
2786
|
console.log('结束服务端录制失败', recordId, err_code, err_msg, record_third_id)
|
|
2787
|
+
// 重进会议前端会丢失之前的third_id,从服务端去取
|
|
2788
|
+
if (!record_third_id && third_id_Map.get(recordId)) {
|
|
2789
|
+
record_third_id = third_id_Map.get(recordId)
|
|
2790
|
+
}
|
|
2782
2791
|
if (!record_third_id) {
|
|
2783
2792
|
this.videoRecordCallback('2', false)
|
|
2784
2793
|
this.saveLog('mrtc OnStopRemoteRecordFailed, err_code='+err_code)
|
|
@@ -3386,7 +3395,11 @@ class Video extends Component {
|
|
|
3386
3395
|
this.stopASR()
|
|
3387
3396
|
this.asr_controller.Disconnect()
|
|
3388
3397
|
}
|
|
3398
|
+
if (this.state.isPictureInPicture) {
|
|
3399
|
+
document.exitPictureInPicture()
|
|
3400
|
+
}
|
|
3389
3401
|
message.destroy()
|
|
3402
|
+
clearTimeout(this.loopPlay)
|
|
3390
3403
|
clearInterval(this.state.drawCanvasInterval)
|
|
3391
3404
|
clearInterval(this.state.faceDetectionTimer);
|
|
3392
3405
|
clearInterval(this.state.imageDetectionTimer);
|
|
@@ -3508,7 +3521,7 @@ class Video extends Component {
|
|
|
3508
3521
|
loading: true,
|
|
3509
3522
|
})
|
|
3510
3523
|
const that = this
|
|
3511
|
-
axios.get(this.props.resourcePath +
|
|
3524
|
+
axios.get(this.props.resourcePath + `/mcu.js?v=${SDK_VERISON}`)
|
|
3512
3525
|
.then(response => this.addToScriptClick()).catch(function (error) {
|
|
3513
3526
|
console.log(error);
|
|
3514
3527
|
that.state.sessionType = false
|
|
@@ -3731,6 +3744,9 @@ class Video extends Component {
|
|
|
3731
3744
|
if (result.businessRecordStatus == 1){
|
|
3732
3745
|
// 业务录制
|
|
3733
3746
|
this.state.businessRecordId = result.businessRecordId;
|
|
3747
|
+
this.state.businessId = result.businessId;
|
|
3748
|
+
third_id_Map.set(result.businessRecordId, result.businessId);
|
|
3749
|
+
console.log(third_id_Map)
|
|
3734
3750
|
if (this.props.whetherDetectFace) this.startFaceDetection();
|
|
3735
3751
|
if (this.props.whetherDetectLight) this.startImageDetection();
|
|
3736
3752
|
}
|