react_hsbc_teller 2.0.66 → 2.0.68

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.66",
3
+ "version": "2.0.68",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -42,6 +42,7 @@ class Demo extends Component {
42
42
  customerId: "testCustomerId", //客户号
43
43
  salesBranchCode: 'salesBranchCode', //网点编号(分行号)
44
44
  financialOffice: "defaultOfficeId", // 理财室
45
+ audioinputNameList: ['默认值 - 外部麦克风 (Realtek(R) Audio)']
45
46
  }
46
47
  componentWillMount() {
47
48
  }
@@ -232,6 +233,7 @@ userExit =(val)=>{
232
233
  customerId={this.state.customerId}
233
234
  salesBranchCode={this.state.salesBranchCode}
234
235
  financialOffice={this.state.financialOffice}
236
+ audioinputNameList={this.state.audioinputNameList}
235
237
  onLeaveRoom={this.onLeaveRoom}
236
238
  getBusinessData={() => { return { businessList: [], businessType: 'REC' } }}
237
239
  createRoomCallback={this.createRoomCallback}
@@ -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.66'
64
+ const SDK_VERISON = '2.0.68'
65
65
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
66
66
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
67
67
  const { Option } = Select;
@@ -1995,8 +1995,11 @@ class Video extends Component {
1995
1995
  this.state.businessId = Mival.id;
1996
1996
  this.saveLog('Start business recording')
1997
1997
  this.enableServerRecording(Mival.id, 'startBusinessRecording')
1998
- if (this.state.ipadTag) this.enableIpadRecording(Mival.id)
1999
-
1998
+ // 这里加定时1秒后触发Ipad录制--阿里的胡子老师要求加的,解决录制的问题
1999
+ setTimeout(() => {
2000
+ if (this.state.ipadTag) this.enableIpadRecording(Mival.id)
2001
+ }, 1000);
2002
+
2000
2003
  if (this.props.whetherDetectFace && this.props.recordMode != 2){
2001
2004
  this.startFaceDetection();
2002
2005
  }
@@ -2164,7 +2167,6 @@ class Video extends Component {
2164
2167
  // 获取设备成功
2165
2168
  this.test_controller.OnGetDevicesSuccess = (devicesInfo) => {
2166
2169
  console.log('devicesInfo' + JSON.stringify(devicesInfo));
2167
- this.saveLog('devicesInfo:' + JSON.stringify(devicesInfo))
2168
2170
  const obj = [
2169
2171
  ];
2170
2172
  const obj1 = [];
@@ -2243,6 +2245,7 @@ class Video extends Component {
2243
2245
  }
2244
2246
  }
2245
2247
  console.log(objList, objList1, objList2)
2248
+ this.saveLog('devicesInfo:' + JSON.stringify(obj1))
2246
2249
  const cameraList = objList.filter(el => !el.actionname.includes(RECORD_DEVICE_NAME))
2247
2250
  const recorderDevice = objList.find(el => el.actionname.includes(RECORD_DEVICE_NAME))
2248
2251
  this.setState({
@@ -2263,9 +2266,14 @@ class Video extends Component {
2263
2266
  })
2264
2267
  // 麦克风设置默认
2265
2268
  objList1.forEach((item, index) => {
2266
- if (item.actionname.indexOf('Microphone Array (Realtek High Definition Audio(SST))') != -1) {
2269
+ console.log('audioinputNameList', this.props.audioinputNameList)
2270
+ if(this.props.audioinputNameList.indexOf(item.actionname) != -1) {
2267
2271
  microId = index
2268
2272
  }
2273
+ console.log(microId)
2274
+ // if (item.actionname.indexOf('Microphone Array (Realtek High Definition Audio(SST))') != -1) {
2275
+ // microId = index
2276
+ // }
2269
2277
  })
2270
2278
  console.log(indexId, microId)
2271
2279
  this.setState({
@@ -7744,6 +7752,7 @@ Video.defaultProps = {
7744
7752
  salesBranchCode: "", //网点编号(分行号)
7745
7753
  financialOffice: "", // 理财室
7746
7754
  staffName: '', // 坐席名称
7755
+ audioinputNameList: ['Microphone Array (Realtek High Definition Audio(SST))'], // 默认匹配的麦克风的名称列表
7747
7756
  echoCancellation: true,
7748
7757
  noiseSuppression: true,
7749
7758
  logUrl: 'http://hsbc.cn-shanghai.log.aliyuncs.com/logstores/hsbc/track?APIVersion=0.6.0&app=meeting-ui',