react_hsbc_teller 2.0.84 → 2.0.87

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.84",
3
+ "version": "2.0.87",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
File without changes
@@ -5,10 +5,15 @@ import Pdf from './pdf.js'
5
5
  class Demo extends Component {
6
6
  state = {
7
7
  shareMask: false,
8
- imRoomId: "",
9
- sessionId: "",
10
- mtoken: "",
11
- roomId: "",
8
+ mtoken
9
+ :
10
+ "62e146acaaf8",
11
+ roomId
12
+ :
13
+ "7601660126711209",
14
+ sessionId
15
+ :
16
+ "67657131",
12
17
  // roomId: '',
13
18
  // mtoken: '',
14
19
  // imRoomId: '',
@@ -188,6 +193,8 @@ handleChangeUserSide = (event) => {
188
193
  userSide: event.target.value
189
194
  })
190
195
  }
196
+ onRoomAttendanceList=()=>{}
197
+ onNewJoinerIn=()=>{}
191
198
  userExit =(val)=>{
192
199
      console.log(val)
193
200
  }
@@ -260,6 +267,8 @@ userExit =(val)=>{
260
267
  OnNetworkWeak={(a, b, c)=>{console.log('OnNetworkWeak', a,b,c)}}
261
268
  userExit={this.userExit}
262
269
  staffPermission={this.staffPermission}
270
+ onRoomAttendanceList={this.onRoomAttendanceList}
271
+ onNewJoinerIn={this.onNewJoinerIn}
263
272
  >
264
273
 
265
274
  <Pdf></Pdf>
@@ -66,7 +66,7 @@ import axios from 'axios';
66
66
  import CryptoJS from "crypto-js";
67
67
 
68
68
 
69
- const SDK_VERISON = '2.0.84'
69
+ const SDK_VERISON = '2.0.87'
70
70
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
71
71
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
72
72
  const { Option } = Select;
@@ -2178,6 +2178,8 @@ class Video extends Component {
2178
2178
  this.enableAudioRecording(Mival.id,'supplesale')
2179
2179
  } else {
2180
2180
  // 开启业务录制的基础上关闭full录制音频,并开启业务录制音频
2181
+ this.state.presaleRecordId = this.state.presaleRecordId || Mival.preAudioRecordId
2182
+ this.saveLog('stop presale recording audio ' + this.state.presaleRecordId)
2181
2183
  if(this.state.presaleRecordId) {
2182
2184
  this.test_controller.StopRemoteRecord(this.state.presaleRecordId)
2183
2185
  }
@@ -2473,7 +2475,7 @@ class Video extends Component {
2473
2475
  // microId = index
2474
2476
  // }
2475
2477
  this.props.audioinputNameList.forEach((item1, index1) => {
2476
- if(item.actionname.indexOf(item1) || item1.actionname.indexOf(item)){
2478
+ if(item.actionname.indexOf(item1) || item1.indexOf(item.actionname)){
2477
2479
  microId = index
2478
2480
  }
2479
2481
 
@@ -3053,6 +3055,8 @@ class Video extends Component {
3053
3055
  // 推送“房间与会者列表”给新加⼊者
3054
3056
  this.test_controller.OnRoomAttendanceList = (participants) => {
3055
3057
  console.log('房间与会者列表', participants)
3058
+ // 新增房间与会者列表回调事件给汇丰
3059
+ this.props.onRoomAttendanceList(participants)
3056
3060
  setTimeout(() => {
3057
3061
  participants.map((item, index) => {
3058
3062
  if (item.uid != this.state.tellerAccount) {
@@ -3143,6 +3147,8 @@ class Video extends Component {
3143
3147
  this.props.h5JoinCallback()
3144
3148
  }
3145
3149
  }
3150
+ // 新增新加⼊房间者回调事件给汇丰
3151
+ this.props.onNewJoinerIn(participant)
3146
3152
  };
3147
3153
  // 推送“有新发布”给与会者
3148
3154
  this.test_controller.OnNewPublish = (feed) => {
@@ -4118,6 +4124,7 @@ class Video extends Component {
4118
4124
  roomId: this.state.channelId + '',
4119
4125
  appId: this.state.appId,
4120
4126
  recordId: this.state.presaleRecordId,
4127
+ preAudioRecordId: this.state.presaleRecordId,
4121
4128
  customerId: this.props.customerId,
4122
4129
  type: type,
4123
4130
  status: status,