react_hsbc_teller 2.0.62 → 2.0.64
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 +9 -0
- package/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +11 -25
package/package.json
CHANGED
|
@@ -61,7 +61,7 @@ import MultiModule from '../multiModule/multiModule'//签字、抄录
|
|
|
61
61
|
import axios from 'axios';
|
|
62
62
|
import CryptoJS from "crypto-js";
|
|
63
63
|
|
|
64
|
-
const SDK_VERISON = '2.0.
|
|
64
|
+
const SDK_VERISON = '2.0.64'
|
|
65
65
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
66
66
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
67
67
|
const { Option } = Select;
|
|
@@ -600,6 +600,8 @@ class Video extends Component {
|
|
|
600
600
|
feedId_id: 'feedId6'
|
|
601
601
|
}
|
|
602
602
|
];
|
|
603
|
+
config_param.echoCancellation = this.props.echoCancellation // 回音消除 非必填,默认为false
|
|
604
|
+
config_param.noiseSuppression = this.props.noiseSuppression // 降噪 非必填,默认为false
|
|
603
605
|
this.test_controller.InitRoomConfig(config_param)
|
|
604
606
|
this.saveLog('mrtc InitRoomConfig start')
|
|
605
607
|
|
|
@@ -623,7 +625,7 @@ class Video extends Component {
|
|
|
623
625
|
}
|
|
624
626
|
}
|
|
625
627
|
// 开启录制
|
|
626
|
-
enableServerRecording = (record_business_id) => {
|
|
628
|
+
enableServerRecording = (record_business_id, type) => {
|
|
627
629
|
const that = this
|
|
628
630
|
const SCALE = 1.5
|
|
629
631
|
this.rateAll().then((res) => {
|
|
@@ -726,25 +728,8 @@ class Video extends Component {
|
|
|
726
728
|
width: (420 * SCALE),
|
|
727
729
|
height: (420 * SCALE)
|
|
728
730
|
})
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
// list.push({
|
|
732
|
-
// tag: item.tag,
|
|
733
|
-
// xPosition: (item.xaxis * SCALE),
|
|
734
|
-
// yPosition: (item.yaxis * SCALE),
|
|
735
|
-
// width: (item.width * SCALE),
|
|
736
|
-
// height: (item.height * SCALE)
|
|
737
|
-
// })
|
|
738
|
-
// }) :
|
|
739
|
-
// list.push({
|
|
740
|
-
// tag: 'VIDEO_SOURCE_SCREEN',
|
|
741
|
-
// xPosition: 960 * SCALE,
|
|
742
|
-
// yPosition: 535 * SCALE,
|
|
743
|
-
// width: 320 * SCALE,
|
|
744
|
-
// height: 180 * SCALE
|
|
745
|
-
// })
|
|
746
|
-
|
|
747
|
-
const filePath = 'recordId_' + new Date().valueOf();
|
|
731
|
+
// 开启业务录制的时候type传值,在后面加标识,全局的不加
|
|
732
|
+
const filePath = type ? ('recordId_' + new Date().valueOf() + '_business') : ('recordId_' + new Date().valueOf());
|
|
748
733
|
const recordParam = {};
|
|
749
734
|
recordParam.width = 1280 * SCALE;
|
|
750
735
|
recordParam.height = 720 * SCALE;
|
|
@@ -2009,7 +1994,7 @@ class Video extends Component {
|
|
|
2009
1994
|
console.log('业务录制开启')
|
|
2010
1995
|
this.state.businessId = Mival.id;
|
|
2011
1996
|
this.saveLog('Start business recording')
|
|
2012
|
-
this.enableServerRecording(
|
|
1997
|
+
this.enableServerRecording(Mival.id, 'startBusinessRecording')
|
|
2013
1998
|
if (this.state.ipadTag) this.enableIpadRecording(Mival.id)
|
|
2014
1999
|
|
|
2015
2000
|
if (this.props.whetherDetectFace && this.props.recordMode != 2){
|
|
@@ -6181,8 +6166,7 @@ class Video extends Component {
|
|
|
6181
6166
|
const cMicrophone = this.state.microphoneList.find((item)=> item.actionid === this.state.microphoneValue);
|
|
6182
6167
|
const cSpeaker = this.state.speakerList[0];
|
|
6183
6168
|
console.log(`当前麦克风设备: ${cMicrophone?.actionname ||''}, 当前扬声器设备: ${cSpeaker?.actionname || ''}`);
|
|
6184
|
-
this.saveLog(`当前麦克风设备: ${cMicrophone?.actionname ||''}, 当前扬声器设备: ${cSpeaker?.actionname || ''}`);
|
|
6185
|
-
// 开启画中画
|
|
6169
|
+
this.saveLog(`当前麦克风设备: ${cMicrophone?.actionname ||''}, 当前扬声器设备: ${cSpeaker?.actionname || ''}`); // 开启画中画
|
|
6186
6170
|
if (!this.state.isPictureInPicture) {
|
|
6187
6171
|
this.pictureInPicture()
|
|
6188
6172
|
}
|
|
@@ -7563,7 +7547,7 @@ class Video extends Component {
|
|
|
7563
7547
|
|
|
7564
7548
|
|
|
7565
7549
|
</Modal>
|
|
7566
|
-
<Modal title="销售人员合并签署" width={600} destroyOnClose={true} centered={true} visible={isTranscribing} onCancel={this.onCancelSign} footer={[]}>
|
|
7550
|
+
<Modal title="销售人员合并签署" width={600} destroyOnClose={true} maskClosable={false} centered={true} visible={isTranscribing} onCancel={this.onCancelSign} footer={[]}>
|
|
7567
7551
|
<div className="content">
|
|
7568
7552
|
<SignMy
|
|
7569
7553
|
handleOkSign={this.handleOkSign}
|
|
@@ -7759,6 +7743,8 @@ Video.defaultProps = {
|
|
|
7759
7743
|
salesBranchCode: "", //网点编号(分行号)
|
|
7760
7744
|
financialOffice: "", // 理财室
|
|
7761
7745
|
staffName: '', // 坐席名称
|
|
7746
|
+
echoCancellation: true,
|
|
7747
|
+
noiseSuppression: true,
|
|
7762
7748
|
logUrl: 'http://hsbc.cn-shanghai.log.aliyuncs.com/logstores/hsbc/track?APIVersion=0.6.0&app=meeting-ui',
|
|
7763
7749
|
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'
|
|
7764
7750
|
}
|