react_hsbc_teller 2.0.34 → 2.0.36
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
|
Binary file
|
|
Binary file
|
package/packages/demo/demo.js
CHANGED
|
@@ -20,7 +20,9 @@ import cameraImgCloe from '../../assets/img/icon_cameraOne.png'
|
|
|
20
20
|
import beautyImg from '../../assets/img/whiteningLut.jpg'
|
|
21
21
|
import ocrImage from '../../assets/img/jietu.png'
|
|
22
22
|
import faceImage from '../../assets/img/jietu_face.png'
|
|
23
|
-
import
|
|
23
|
+
import joinMeeting from '../../assets/mp3/joinmeeting.mp3'
|
|
24
|
+
import ipadjoinMeeting from '../../assets/mp3/ipad_join_meeting.mp3'
|
|
25
|
+
import ipadLeaveMeeting from '../../assets/mp3/ipad_leave_meeting.mp3'
|
|
24
26
|
import recordErrorAudio from '../../assets/mp3/record_error.mp3'
|
|
25
27
|
import IpadLeaveAudio from '../../assets/mp3/ipad_leave_error.mp3';
|
|
26
28
|
import IpadLowPowerAudio from '../../assets/mp3/ipad_low_power.mp3';
|
|
@@ -58,7 +60,7 @@ import MultiModule from '../multiModule/multiModule'//签字、抄录
|
|
|
58
60
|
import axios from 'axios';
|
|
59
61
|
import CryptoJS from "crypto-js";
|
|
60
62
|
|
|
61
|
-
const SDK_VERISON = '2.0.
|
|
63
|
+
const SDK_VERISON = '2.0.36'
|
|
62
64
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
63
65
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
64
66
|
const { Option } = Select;
|
|
@@ -796,8 +798,21 @@ class Video extends Component {
|
|
|
796
798
|
url: '' // ⽔印图⽚ HTTP 地址
|
|
797
799
|
},
|
|
798
800
|
];
|
|
799
|
-
recordParam.tagPositions = [
|
|
800
|
-
|
|
801
|
+
recordParam.tagPositions = [{
|
|
802
|
+
tag: that.state.ipadTag,
|
|
803
|
+
xPosition: 0,
|
|
804
|
+
yPosition: 0,
|
|
805
|
+
width: 1280,
|
|
806
|
+
height: 720
|
|
807
|
+
},{
|
|
808
|
+
tag: 'tag1',
|
|
809
|
+
xPosition: 0,
|
|
810
|
+
yPosition: 0,
|
|
811
|
+
width: 0,
|
|
812
|
+
height: 0
|
|
813
|
+
}]
|
|
814
|
+
// recordParam.tagFilter = that.state.ipadTag
|
|
815
|
+
// recordParam.layoutParam = [that.state.ipadTag, 'tag1'];
|
|
801
816
|
console.log('recordParam', recordParam);
|
|
802
817
|
that.test_controller.StartRemoteRecord(filePath, recordParam, record_business_id+'_ipad')
|
|
803
818
|
};
|
|
@@ -2911,9 +2926,7 @@ class Video extends Component {
|
|
|
2911
2926
|
}
|
|
2912
2927
|
|
|
2913
2928
|
if (participant.includes(IPAD_SUFFIX) && this.state.businessId){
|
|
2914
|
-
// ipad
|
|
2915
|
-
console.log('iPad退出房间', participant)
|
|
2916
|
-
|
|
2929
|
+
// ipad单独处理,双录过程中ipad如果离开,要提示+循环播报直到ipad重新入会
|
|
2917
2930
|
this.setState({
|
|
2918
2931
|
IpadLeaveErrorModalVisible: true,
|
|
2919
2932
|
ipadTag: '',
|
|
@@ -2930,11 +2943,16 @@ class Video extends Component {
|
|
|
2930
2943
|
setTimeout(this.ipadLeavePlay, 0);
|
|
2931
2944
|
return
|
|
2932
2945
|
} else if (participant.includes(IPAD_SUFFIX)) {
|
|
2946
|
+
// 非双录下ipad离开提示iPad已断开
|
|
2933
2947
|
this.setState({
|
|
2934
2948
|
ipadTag: '',
|
|
2935
2949
|
})
|
|
2936
2950
|
this.messageClick(('iPad 已断开'), 'error')
|
|
2937
2951
|
this.saveLog('iPad leave room')
|
|
2952
|
+
if (this.props.isOpenSound && !this.state.businessId) {
|
|
2953
|
+
let audio = new Audio(ipadLeaveMeeting)
|
|
2954
|
+
audio.play()
|
|
2955
|
+
}
|
|
2938
2956
|
return
|
|
2939
2957
|
}
|
|
2940
2958
|
|
|
@@ -5181,8 +5199,14 @@ class Video extends Component {
|
|
|
5181
5199
|
this.messageClick('查询失败', 'error')
|
|
5182
5200
|
}
|
|
5183
5201
|
if (this.props.isOpenSound && sid != document.getElementById('publish_streamId1').name) {
|
|
5184
|
-
if (
|
|
5185
|
-
|
|
5202
|
+
if (userId.includes(IPAD_SUFFIX)) {
|
|
5203
|
+
if (!this.state.businessId) {
|
|
5204
|
+
let src = ipadjoinMeeting
|
|
5205
|
+
let audio = new Audio(src)
|
|
5206
|
+
audio.play()
|
|
5207
|
+
}
|
|
5208
|
+
} else if (result.data.userType == 1) {
|
|
5209
|
+
let src = joinMeeting
|
|
5186
5210
|
let audio = new Audio(src)
|
|
5187
5211
|
audio.play()
|
|
5188
5212
|
} else if (result.data.userType == 2) {
|