react_hsbc_teller 2.0.14 → 2.0.15

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.14",
3
+ "version": "2.0.15",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -53,7 +53,7 @@ import Step from '../components/step/step.jsx'
53
53
  import axios from 'axios';
54
54
  import CryptoJS from "crypto-js";
55
55
 
56
- const SDK_VERISON = '2.0.14'
56
+ const SDK_VERISON = '2.0.15'
57
57
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
58
58
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
59
59
  const { Option } = Select;
@@ -367,21 +367,20 @@ class Video extends Component {
367
367
  this.state.imRoomId = result.imRoomId,
368
368
  this.state.sessionId = result.sessionId;
369
369
 
370
- this.state.cameraList.forEach((el, i) => {
371
- let publish_config = {}
372
- publish_config.media_type = i==0? 1:3
373
- publish_config.publish_device = 1
374
- publish_config.videoSource = el.actionid
375
- publish_config.audioSource = this.state.microphoneValue
376
- publish_config.need_volume_analyser = true
377
- // publish_config.video_profile_type = 3
378
- publish_config.video_profile_type = 100
379
- publish_config.video_profile_diy = { width: 640, height: 360, frameRate: 15, bitrate: 400 }
380
- publish_config.publish_video_id = 'publish_video' + (i+1)
381
- publish_config.publish_streamId_id = 'publish_streamId' + (i+1)
382
- publish_config.publish_tag = 'tag' + (i+1)
383
- this.test_controller.Publish(publish_config)
384
- })
370
+ let publish_config = {}
371
+ publish_config.media_type = 1
372
+ publish_config.publish_device = 1
373
+ publish_config.videoSource = this.state.cameraValue
374
+ publish_config.audioSource = this.state.microphoneValue
375
+ publish_config.need_volume_analyser = true
376
+ // publish_config.video_profile_type = 3
377
+ publish_config.video_profile_type = 100
378
+ publish_config.video_profile_diy = { width: 640, height: 360, frameRate: 15, bitrate: 400 }
379
+ publish_config.publish_video_id = 'publish_video1'
380
+ publish_config.publish_streamId_id = 'publish_streamId1'
381
+ publish_config.publish_tag = 'tag1'
382
+ this.test_controller.Publish(publish_config)
383
+
385
384
  // this.publishAllScreen();
386
385
  // 单独发布录制屏幕设备的流
387
386
  this.publishRecorderDevice()
@@ -522,16 +521,16 @@ class Video extends Component {
522
521
  publish_streamId_id: 'publish_streamId1',
523
522
  publish_tag: 'tag1'
524
523
  },
525
- {
526
- publish_video_id: 'publish_video2',
527
- publish_streamId_id: 'publish_streamId2',
528
- publish_tag: 'tag2'
529
- },
530
- {
531
- publish_video_id: 'publish_video3',
532
- publish_streamId_id: 'publish_streamId3',
533
- publish_tag: 'tag3'
534
- }
524
+ // {
525
+ // publish_video_id: 'publish_video2',
526
+ // publish_streamId_id: 'publish_streamId2',
527
+ // publish_tag: 'tag2'
528
+ // },
529
+ // {
530
+ // publish_video_id: 'publish_video3',
531
+ // publish_streamId_id: 'publish_streamId3',
532
+ // publish_tag: 'tag3'
533
+ // }
535
534
  ];
536
535
  config_param.initSubscribe = [
537
536
  {
@@ -567,6 +566,8 @@ class Video extends Component {
567
566
  ];
568
567
  this.test_controller.InitRoomConfig(config_param)
569
568
  this.saveLog('mrtc InitRoomConfig start')
569
+ // 预热摄像头
570
+ this.test_controller.PreOpenLocalMedia(config_param)
570
571
  };
571
572
  rateAll = async () => {
572
573
  let data = ''
@@ -617,42 +618,42 @@ class Video extends Component {
617
618
  height: 175
618
619
  },
619
620
  {
620
- tag: 'tag2',
621
+ tag: 'customer1',
621
622
  xPosition: 213,
622
623
  yPosition: 0,
623
624
  width: 213,
624
625
  height: 175
625
626
  },
626
627
  {
627
- tag: 'tag3',
628
+ tag: 'customer2',
628
629
  xPosition: 426,
629
630
  yPosition: 0,
630
631
  width: 213,
631
632
  height: 175
632
633
  },
633
634
  {
634
- tag: 'customer1',
635
+ tag: 'customer3',
635
636
  xPosition: 639,
636
637
  yPosition: 0,
637
638
  width: 213,
638
639
  height: 175
639
640
  },
640
641
  {
641
- tag: 'customer2',
642
+ tag: 'customer4',
642
643
  xPosition: 852,
643
644
  yPosition: 0,
644
645
  width: 213,
645
646
  height: 175
646
647
  },
647
648
  {
648
- tag: 'customer3',
649
+ tag: 'customer5',
649
650
  xPosition: 1065,
650
651
  yPosition: 0,
651
652
  width: 213,
652
653
  height: 175
653
654
  },
654
655
  {
655
- tag: 'customer4',
656
+ tag: 'customer6',
656
657
  xPosition: 1278,
657
658
  yPosition: 0,
658
659
  width: 213,
@@ -2086,21 +2087,20 @@ class Video extends Component {
2086
2087
  this.test_controller.OnJoinRoomSucc = () => {
2087
2088
  console.log('加入房间成功')
2088
2089
 
2089
- this.state.cameraList.forEach((el, i) => {
2090
- let publish_config = {}
2091
- publish_config.media_type = i==0? 1:3
2092
- publish_config.publish_device = 1
2093
- publish_config.videoSource = el.actionid
2094
- publish_config.audioSource = this.state.microphoneValue
2095
- publish_config.need_volume_analyser = true
2096
- // publish_config.video_profile_type = 3
2097
- publish_config.video_profile_type = 100
2098
- publish_config.video_profile_diy = { width: 640, height: 360, frameRate: 15, bitrate: 400 }
2099
- publish_config.publish_video_id = 'publish_video' + (i+1)
2100
- publish_config.publish_streamId_id = 'publish_streamId' + (i+1)
2101
- publish_config.publish_tag = 'tag' + (i+1)
2102
- this.test_controller.Publish(publish_config)
2103
- })
2090
+ let publish_config = {}
2091
+ publish_config.media_type = 1
2092
+ publish_config.publish_device = 1
2093
+ publish_config.videoSource = this.state.cameraValue
2094
+ publish_config.audioSource = this.state.microphoneValue
2095
+ publish_config.need_volume_analyser = true
2096
+ // publish_config.video_profile_type = 3
2097
+ publish_config.video_profile_type = 100
2098
+ publish_config.video_profile_diy = { width: 640, height: 360, frameRate: 15, bitrate: 400 }
2099
+ publish_config.publish_video_id = 'publish_video1'
2100
+ publish_config.publish_streamId_id = 'publish_streamId1'
2101
+ publish_config.publish_tag = 'tag1'
2102
+ this.test_controller.Publish(publish_config)
2103
+
2104
2104
  // this.publishAllScreen();
2105
2105
  // 单独发布录制屏幕设备的流
2106
2106
  this.publishRecorderDevice()
@@ -2671,7 +2671,7 @@ class Video extends Component {
2671
2671
  console.log('退出房间者', res)
2672
2672
  let data = res ? res.username ? res.username : '客户' : '客户'
2673
2673
  console.log(data)
2674
- this.messageClick((data + '已退出会议'), 'error')
2674
+ // this.messageClick((data + '已退出会议'), 'error')
2675
2675
  this.saveLog(data + ' leave room')
2676
2676
  if (res.userType == 1) {
2677
2677
  // 2--坐席  1--客户
@@ -2684,12 +2684,14 @@ class Video extends Component {
2684
2684
  let audio = new Audio(src)
2685
2685
  audio.play()
2686
2686
  }
2687
+ this.messageClick(('客户已退出会议'), 'error')
2687
2688
  } else if (res.userType == 2) {
2688
2689
  if (this.props.isOpenSound) {
2689
2690
  let src = internalLeft
2690
2691
  let audio = new Audio(src)
2691
2692
  audio.play()
2692
2693
  }
2694
+ this.messageClick(('内部人员已退出会议'), 'error')
2693
2695
  }
2694
2696
  // console.log('退出房间者',res)
2695
2697
  // let data = res? res : '客户'
@@ -5338,6 +5340,16 @@ class Video extends Component {
5338
5340
  envInfo: envInfo
5339
5341
  })
5340
5342
  }
5343
+ handleRetryEnvDetection = () => {
5344
+ this.lightDetect();
5345
+ message.success({
5346
+ content: '已更新检测结果',
5347
+ icon: <img src={require("../../assets/img/tooltips1_pass.png").default} alt="" ></img>,
5348
+ className: 'successClassName',
5349
+ top: 200,
5350
+ duration: 3
5351
+ })
5352
+ }
5341
5353
  handleOkEnvDetection = () => {
5342
5354
  this.setState({
5343
5355
  isModalVisibleEnvironment: false,
@@ -6112,7 +6124,7 @@ class Video extends Component {
6112
6124
  </div>
6113
6125
 
6114
6126
  </div>
6115
- {
6127
+ {/* {
6116
6128
  this.state.cameraList.map((item, index) => {
6117
6129
  if (index > 0)
6118
6130
  return <div
@@ -6145,7 +6157,7 @@ class Video extends Component {
6145
6157
  </div>
6146
6158
  </div>
6147
6159
  })
6148
- }
6160
+ } */}
6149
6161
  {/* <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
6150
6162
  style={{ position: "relative", display: (this.state.videoList[0].videoName) ? '' : 'none' }}
6151
6163
  >
@@ -6627,7 +6639,7 @@ class Video extends Component {
6627
6639
  </Modal>
6628
6640
  <Modal title="环境检测" maskClosable={false} width={650} closable={false} centered={true} visible={this.state.isModalVisibleEnvironment} footer={[
6629
6641
  <div key='env'>
6630
- {/* <Button className="modelButtonCancel" onClick={this.handleCancelEnvDetection}>取消</Button> */}
6642
+ <Button className="modelButtonCancel" onClick={this.handleRetryEnvDetection}>重新检测</Button>
6631
6643
  <Button className={isEnvironmentOK ?"modelButtonOk": "modelButtonNo"} type="primary" disabled={!isEnvironmentOK } danger onClick={this.handleOkEnvDetection}>确定</Button>
6632
6644
  </div>
6633
6645
  ]}>
@@ -6653,7 +6665,7 @@ class Video extends Component {
6653
6665
  </div>
6654
6666
  })
6655
6667
  }
6656
- {this.state.cameraList.length == 0 ? <p className="envClass">获取不到摄像头设备,请检查</p> : null}
6668
+ {this.state.cameraList.length == 0 ? <p className="envClass">获取不到设备,请检查电脑“设置”中的摄像头权限是否开启,并重启浏览器再试</p> : null}
6657
6669
  </div>
6658
6670
  </Panel>
6659
6671
  <Panel header={<span>麦克风设备 - {this.state.envInfo.microResult} {this.state.envInfo.microResult=='不合格'? <img src={IconFail} />: <img src={IconSuccess} />}</span>} key="4" className={this.state.envInfo.microResult=='不合格'? 'panel-error':''}>
@@ -6665,7 +6677,7 @@ class Video extends Component {
6665
6677
  </div>
6666
6678
  })
6667
6679
  }
6668
- {this.state.cameraList.length == 0 ? <p className="envClass">获取不到麦克风设备,请检查</p> : null}
6680
+ {this.state.cameraList.length == 0 ? <p className="envClass">获取不到设备,请检查电脑“设置”中的麦克风权限是否开启,并重启浏览器再试</p> : null}
6669
6681
  </div>
6670
6682
  </Panel>
6671
6683
  <Panel header={<span>背光、曝光 - {this.state.envInfo.lightResult} {this.state.envInfo.lightResult=='合格'? <img src={IconSuccess} />: <img src={IconFail} />}</span>} key="6" className={this.state.envInfo.lightResult=='合格'? '':'panel-error'}>