react_hsbc_teller 2.0.67 → 2.0.69

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.67",
3
+ "version": "2.0.69",
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.67'
64
+ const SDK_VERISON = '2.0.69'
65
65
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
66
66
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
67
67
  const { Option } = Select;
@@ -2266,9 +2266,14 @@ class Video extends Component {
2266
2266
  })
2267
2267
  // 麦克风设置默认
2268
2268
  objList1.forEach((item, index) => {
2269
- 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) {
2270
2271
  microId = index
2271
2272
  }
2273
+ console.log(microId)
2274
+ // if (item.actionname.indexOf('Microphone Array (Realtek High Definition Audio(SST))') != -1) {
2275
+ // microId = index
2276
+ // }
2272
2277
  })
2273
2278
  console.log(indexId, microId)
2274
2279
  this.setState({
@@ -7621,7 +7626,7 @@ class Video extends Component {
7621
7626
  this.state.cameraList.map((item, index) => {
7622
7627
  return <div key={index} className="envClass">
7623
7628
  {/* <input type="radio" name="camere" value={item.actionid} style={{ float: 'left' }} checked={this.state.cameraValue == item.actionid} readOnly disabled /><i></i> */}
7624
- {item.actionname}{this.state.cameraValue == item.actionid ? '(当前设备)' : ''}
7629
+ {item.actionname}{this.state.cameraValue == item.actionid ? <span class="currentDevice">(当前设备)</span> : ''}
7625
7630
  </div>
7626
7631
  })
7627
7632
  }
@@ -7634,7 +7639,7 @@ class Video extends Component {
7634
7639
  {
7635
7640
  this.state.microphoneList.map((item, index) => {
7636
7641
  return <div key={index} className="envClass">
7637
- {item.actionname}{this.state.microphoneValue == item.actionid ? '(当前设备)' : ''}
7642
+ {item.actionname}{this.state.microphoneValue == item.actionid ? <span class="currentDevice">(当前设备)</span> : ''}
7638
7643
  </div>
7639
7644
  })
7640
7645
  }
@@ -7646,7 +7651,7 @@ class Video extends Component {
7646
7651
  {
7647
7652
  this.state.speakerList.map((item, index) => {
7648
7653
  return <div key={index} className="envClass">
7649
- {item.actionname}{'(当前设备)'}
7654
+ {item.actionname}{<span class="currentDevice">(当前设备)</span>}
7650
7655
  </div>
7651
7656
  })
7652
7657
  }
@@ -7747,6 +7752,7 @@ Video.defaultProps = {
7747
7752
  salesBranchCode: "", //网点编号(分行号)
7748
7753
  financialOffice: "", // 理财室
7749
7754
  staffName: '', // 坐席名称
7755
+ audioinputNameList: ['Microphone Array (Realtek High Definition Audio(SST))'], // 默认匹配的麦克风的名称列表
7750
7756
  echoCancellation: true,
7751
7757
  noiseSuppression: true,
7752
7758
  logUrl: 'http://hsbc.cn-shanghai.log.aliyuncs.com/logstores/hsbc/track?APIVersion=0.6.0&app=meeting-ui',
@@ -716,3 +716,6 @@ display: inline-flex;
716
716
  body {
717
717
  font-size: 100%;
718
718
  }
719
+ .currentDevice{
720
+ color: #DB0011;
721
+ }