react_hsbc_teller 1.9.21 → 1.9.23

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": "1.9.21",
3
+ "version": "1.9.23",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -296,7 +296,7 @@ class Video extends Component {
296
296
  saveLog = (val) => {
297
297
  axios({
298
298
  method: 'get',
299
- baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.21&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
299
+ baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=1.9.23&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
300
300
 
301
301
  }).then(res => {
302
302
 
@@ -1012,14 +1012,14 @@ class Video extends Component {
1012
1012
  return a.order - b.order;
1013
1013
  })
1014
1014
  for (let i =1;i<=12;i++){
1015
- if(document.getElementById('video'+i).name){
1015
+ if(sortedlist[i-1].videoName){
1016
1016
  list.push({
1017
- name: 'video' + i,
1018
- title: sortedlist[i-1].videoName,
1019
- mute: sortedlist[i-1].mute,
1020
- noVideo: sortedlist[i-1].noVideo
1021
- })
1022
- }
1017
+ name: 'video' + sortedlist[i-1].idIndex,
1018
+ title: sortedlist[i-1].videoName,
1019
+ mute: sortedlist[i-1].mute,
1020
+ noVideo: sortedlist[i-1].noVideo
1021
+ })
1022
+ }
1023
1023
  }
1024
1024
  console.log(list)
1025
1025
  this.state.listVideoPicture = list
@@ -1410,6 +1410,9 @@ class Video extends Component {
1410
1410
 
1411
1411
  }
1412
1412
  }
1413
+ if (this.state.isPictureInPicture) {
1414
+ this.pictureInPicture('Refresh')
1415
+ }
1413
1416
  }
1414
1417
  } else if (Mival.typeId == 121305) {
1415
1418
  if (Mival.sessionId == this.state.sessionId) {
@@ -1444,6 +1447,9 @@ class Video extends Component {
1444
1447
  this.setState({
1445
1448
  videoList: this.state.videoList
1446
1449
  })
1450
+ if (this.state.isPictureInPicture) {
1451
+ this.pictureInPicture('Refresh')
1452
+ }
1447
1453
  }
1448
1454
  }
1449
1455
  };
@@ -1826,6 +1832,7 @@ class Video extends Component {
1826
1832
  canvas.width = this.state.widthVideo
1827
1833
  } else {
1828
1834
  await startMix(newStream1, 'none');
1835
+ isGraffiti = false
1829
1836
  }
1830
1837
 
1831
1838
  newStream1 = mixCaptureStream();
@@ -1844,6 +1851,9 @@ class Video extends Component {
1844
1851
  stream = null;
1845
1852
  }
1846
1853
  }
1854
+ if (stream.getAudioTracks()[0] && newStream1.addTrack) {
1855
+ newStream1.addTrack(stream.getAudioTracks()[0])
1856
+ }
1847
1857
  return newStream1
1848
1858
  }
1849
1859
  return stream
@@ -2941,7 +2951,7 @@ class Video extends Component {
2941
2951
  }
2942
2952
  }
2943
2953
  componentWillMount() {
2944
- console.log('hsbc_teller_sdk', '1.9.21')
2954
+ console.log('hsbc_teller_sdk', '1.9.23')
2945
2955
  let arr = []
2946
2956
  for(let i=1;i<=12;i++){
2947
2957
  arr.push({
@@ -3021,6 +3031,11 @@ class Video extends Component {
3021
3031
  console.log(data)
3022
3032
  })
3023
3033
  }
3034
+ if (this.state.isPictureInPicture) {
3035
+ setTimeout(() => {
3036
+ this.pictureInPicture('Refresh')
3037
+ }, 0);
3038
+ }
3024
3039
  }
3025
3040
  };
3026
3041
  isFileSuccuse = () => {
@@ -3432,6 +3447,9 @@ class Video extends Component {
3432
3447
  // videoList: this.state.videoList
3433
3448
  // })
3434
3449
  this.videoListSort();
3450
+ if (this.state.isPictureInPicture) {
3451
+ this.pictureInPicture('Refresh')
3452
+ }
3435
3453
  } else {
3436
3454
  console.log('1')
3437
3455
  this.messageClick('保持信息失败', 'error')
@@ -3723,6 +3741,9 @@ class Video extends Component {
3723
3741
  // videoList: this.state.videoList
3724
3742
  // })
3725
3743
  this.videoListSort();
3744
+ if (this.state.isPictureInPicture) {
3745
+ this.pictureInPicture('Refresh')
3746
+ }
3726
3747
  } else {
3727
3748
  console.log('1')
3728
3749
  this.messageClick('保持信息失败', 'error')