react_hsbc_teller 2.0.21 → 2.0.22

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "2.0.21",
3
+ "version": "2.0.22",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
Binary file
@@ -167,7 +167,7 @@ export default class foot extends Component {
167
167
  item == 'PIP' && <div className="one" onClick={this.pictureInPicture.bind(this)}>
168
168
  <img className="imgClass" src={require("../../assets/img/huazhonghua.png").default} alt="" />
169
169
  <div className="text">
170
- 开启视频画中画
170
+ 开启视频浮窗
171
171
  </div>
172
172
  </div>
173
173
  }
@@ -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.21'
56
+ const SDK_VERISON = '2.0.22'
57
57
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
58
58
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
59
59
  const { Option } = Select;
@@ -82,6 +82,7 @@ let worker
82
82
  let streamShare
83
83
  let streamRecord
84
84
  let videoName
85
+ let lastFaceNum = 1
85
86
  let muteJson = new Map()
86
87
  // let dateTime = 0
87
88
  let messageValue = ''
@@ -1776,18 +1777,24 @@ class Video extends Component {
1776
1777
  recordId: this.state.recordId,
1777
1778
  base64Image: path.replace('data:image/png;base64,', '')
1778
1779
  });
1780
+ const changeNum = lastFaceNum - result.faceNum
1779
1781
  if (result.faceNum == 0) {
1780
1782
  // 人脸出框
1781
1783
  this.messageClick('检测到您的人脸已出框', 'error')
1782
- // 打点
1783
1784
  this.saveVideoPoint('ffd', 'RM端人脸离框');
1785
+ } else if (lastFaceNum == 0 && result.faceNum == 1) {
1786
+ // 0->1不需要提示
1787
+ } else if (changeNum != 0) {
1788
+ this.messageClick('检测到参会人员数量发生变化', 'error')
1789
+ this.saveVideoPoint('fcd', 'RM端人脸数量发生变化');
1784
1790
  }
1791
+ lastFaceNum = result.faceNum;
1785
1792
  } catch (err) {
1786
1793
  console.error(err);
1787
1794
  if (err.status == 502 || err.status == 404) {
1788
1795
  }
1789
1796
  }
1790
- }, 5000);
1797
+ }, this.props.faceDetectInterval * 1000);
1791
1798
 
1792
1799
  this.state.faceDetectionTimer = timer;
1793
1800
  }
@@ -1812,7 +1819,7 @@ class Video extends Component {
1812
1819
  // let end = new Date().getTime()
1813
1820
  // console.log('执行时间(s) ', (end - start)/1000 )
1814
1821
  }
1815
- }, 3000);
1822
+ }, this.props.lightDetectInterval * 1000);
1816
1823
 
1817
1824
  this.state.imageDetectionTimer = timer;
1818
1825
  }
@@ -6336,7 +6343,7 @@ class Video extends Component {
6336
6343
  <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkPictureConfirm}>确定</Button>
6337
6344
  </div>
6338
6345
  ]}>
6339
- <div className='endModal'>画中画已关闭,请重新开启</div>
6346
+ <div className='endModal'>视频浮窗已关闭,请重新开启</div>
6340
6347
  </Modal>
6341
6348
  {/* 双录中断重新开启确认 */}
6342
6349
  <Modal closable={false} centered={true} visible={this.state.isRecordingeErrorModalVisible} maskClosable={false} footer={[
@@ -6789,6 +6796,8 @@ Video.defaultProps = {
6789
6796
  isWeakSound: false,
6790
6797
  whetherDetectFace: false, // 是否在双录时开启人脸检测
6791
6798
  whetherDetectLight: false, // 是否在双录时开启背光检测
6799
+ faceDetectInterval: 6, // 人脸检测间隔(秒)
6800
+ lightDetectInterval: 6, // 背光检测间隔(秒)
6792
6801
  userSide: 2,
6793
6802
  meetingDuration: null, // 会议时长,单位小时
6794
6803
  recordMode: 1, // 录制模式 1远程录制 2网点录制