react_hsbc_teller 1.9.25 → 1.9.26

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.25",
3
+ "version": "1.9.26",
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.25&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.26&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
 
@@ -1873,7 +1873,11 @@ class Video extends Component {
1873
1873
  'tellerId': this.props.tellerAccount
1874
1874
  })
1875
1875
  });
1876
- if (this.state.screenName == '切换共享') {
1876
+ // if (this.state.screenName == '切换共享') {
1877
+ // this.state.isSharedScreen = true
1878
+ // this.state.isScreenSwitching = false
1879
+ // }
1880
+ if (this.state.screenName == '共享屏幕') {
1877
1881
  this.state.isSharedScreen = true
1878
1882
  this.state.isScreenSwitching = false
1879
1883
  }
@@ -2952,7 +2956,7 @@ class Video extends Component {
2952
2956
  }
2953
2957
  }
2954
2958
  componentWillMount() {
2955
- console.log('hsbc_teller_sdk', '1.9.25')
2959
+ console.log('hsbc_teller_sdk', '1.9.26')
2956
2960
  let arr = []
2957
2961
  for(let i=1;i<=12;i++){
2958
2962
  arr.push({
@@ -3107,30 +3111,58 @@ class Video extends Component {
3107
3111
  streamShare = ''
3108
3112
  }
3109
3113
  if (this.state.isSharedScreen) {
3110
- const publish_config = {}
3114
+ this.test_controller.UnPublish(document.getElementById('video20').name)
3115
+ setTimeout(() => {
3111
3116
  publish_config.media_type = 1
3112
3117
  publish_config.publish_device = 2
3118
+ publish_config.need_volume_analyser = true
3113
3119
  publish_config.video_profile_type = 1
3114
- // publish_config.video_profile_type=100
3115
- // publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
3120
+ publish_config.desktopStreamToCanvas = false
3116
3121
  publish_config.enableDesktopAudio = true
3117
3122
  publish_config.degradationType = 2
3118
- publish_config.desktopStreamToCanvas = false
3119
- publish_config.sid = document.getElementById('video20').name
3120
- this.test_controller.ChangeMediaStream(publish_config)
3121
- this.state.isScreenSwitching = true
3123
+ publish_config.publish_video_id = 'video20'
3124
+ publish_config.publish_streamId_id = 'subscribe_streamId20'
3125
+ publish_config.publish_tag = 'projectionWhiteboard'
3126
+ this.test_controller.Publish(publish_config)
3127
+ }, 300);
3128
+ // const publish_config = {}
3129
+ // publish_config.media_type = 1
3130
+ // publish_config.publish_device = 2
3131
+ // publish_config.video_profile_type = 1
3132
+ // // publish_config.video_profile_type=100
3133
+ // // publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
3134
+ // publish_config.enableDesktopAudio = true
3135
+ // publish_config.degradationType = 2
3136
+ // publish_config.desktopStreamToCanvas = false
3137
+ // publish_config.sid = document.getElementById('video20').name
3138
+ // this.test_controller.ChangeMediaStream(publish_config)
3139
+ // this.state.isScreenSwitching = true
3122
3140
  } else {
3123
3141
  if (document.getElementById('video20').name) {
3124
- publish_config.media_type = 1;
3125
- publish_config.publish_device = 2;
3126
- publish_config.video_profile_type = 1
3127
- // publish_config.video_profile_type=100
3128
- // publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
3129
- publish_config.enableDesktopAudio = true
3130
- publish_config.desktopStreamToCanvas = false
3131
- publish_config.degradationType = 2
3132
- publish_config.sid = document.getElementById('video20').name;
3133
- this.test_controller.ChangeMediaStream(publish_config);
3142
+ this.test_controller.UnPublish(document.getElementById('video20').name)
3143
+ setTimeout(() => {
3144
+ publish_config.media_type = 1
3145
+ publish_config.publish_device = 2
3146
+ publish_config.need_volume_analyser = true
3147
+ publish_config.video_profile_type = 1
3148
+ publish_config.desktopStreamToCanvas = false
3149
+ publish_config.enableDesktopAudio = true
3150
+ publish_config.degradationType = 2
3151
+ publish_config.publish_video_id = 'video20'
3152
+ publish_config.publish_streamId_id = 'subscribe_streamId20'
3153
+ publish_config.publish_tag = 'projectionWhiteboard'
3154
+ this.test_controller.Publish(publish_config)
3155
+ }, 300);
3156
+ // publish_config.media_type = 1;
3157
+ // publish_config.publish_device = 2;
3158
+ // publish_config.video_profile_type = 1
3159
+ // // publish_config.video_profile_type=100
3160
+ // // publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
3161
+ // publish_config.enableDesktopAudio = true
3162
+ // publish_config.desktopStreamToCanvas = false
3163
+ // publish_config.degradationType = 2
3164
+ // publish_config.sid = document.getElementById('video20').name;
3165
+ // this.test_controller.ChangeMediaStream(publish_config);
3134
3166
  } else {
3135
3167
  publish_config.media_type = 1
3136
3168
  publish_config.publish_device = 2