react_hsbc_teller 2.0.72 → 2.0.74

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.72",
3
+ "version": "2.0.74",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -43,18 +43,18 @@ class Demo extends Component {
43
43
  salesBranchCode: 'salesBranchCode', //网点编号(分行号)
44
44
  financialOffice: "defaultOfficeId", // 理财室
45
45
  audioinputNameList: ['默认值 - 外部麦克风 (Realtek(R) Audio)'],
46
- needPreSale: false
46
+ needPreSale: true
47
47
  }
48
48
  componentWillMount() {
49
- if(window.localStorage.getItem('sessionId') && window.localStorage.getItem('sessionId') != 'null' && window.localStorage.getItem('sessionId') != 'undefined') {
50
- this.setState({roomId: window.localStorage.getItem('roomId')});
51
- this.setState({mtoken: window.localStorage.getItem('mtoken')});
52
- this.setState({sessionId:window.localStorage.getItem('sessionId')});
53
- this.setState({imRoomId: window.localStorage.getItem('imRoomId')});
54
- this.setState({
55
- isVideo: true
56
- })
57
- }
49
+ // if(window.localStorage.getItem('sessionId') && window.localStorage.getItem('sessionId') != 'null' && window.localStorage.getItem('sessionId') != 'undefined') {
50
+ // this.setState({roomId: window.localStorage.getItem('roomId')});
51
+ // this.setState({mtoken: window.localStorage.getItem('mtoken')});
52
+ // this.setState({sessionId:window.localStorage.getItem('sessionId')});
53
+ // this.setState({imRoomId: window.localStorage.getItem('imRoomId')});
54
+ // this.setState({
55
+ // isVideo: true
56
+ // })
57
+ // }
58
58
 
59
59
  }
60
60
  handleChangeRoomId = (event) => {
@@ -63,7 +63,7 @@ import MultiModule from '../multiModule/multiModule'//签字、抄录
63
63
  import axios from 'axios';
64
64
  import CryptoJS from "crypto-js";
65
65
 
66
- const SDK_VERISON = '2.0.72'
66
+ const SDK_VERISON = '2.0.74'
67
67
  const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
68
68
  const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
69
69
  const { Option } = Select;
@@ -410,7 +410,7 @@ class Video extends Component {
410
410
  publish_config.video_profile_diy = { width: 640, height: 360, frameRate: 15, bitrate: 400 }
411
411
  publish_config.publish_video_id = 'publish_video1'
412
412
  publish_config.publish_streamId_id = 'publish_streamId1'
413
- publish_config.publish_tag = 'tag1customer'
413
+ publish_config.publish_tag = 'tag1'
414
414
  if (this.props.recordMode == 2) {
415
415
  // 分行模式,只收音 不发布摄像头
416
416
  publish_config.media_type = 2
@@ -564,7 +564,7 @@ class Video extends Component {
564
564
  {
565
565
  publish_video_id: 'publish_video1',
566
566
  publish_streamId_id: 'publish_streamId1',
567
- publish_tag: 'tag1customer'
567
+ publish_tag: 'tag1'
568
568
  },
569
569
  // {
570
570
  // publish_video_id: 'publish_video2',
@@ -636,6 +636,7 @@ class Video extends Component {
636
636
  // 开启音频录制
637
637
  enableAudioRecording = (record_business_id, type) => {
638
638
  console.log('enableAudioRecording', record_business_id, type)
639
+ this.saveLog('mrtc needPreSale ' + this.props.needPreSale)
639
640
  // true开启
640
641
  console.log(this.props.needPreSale, type == 'presale' && !this.props.needPreSale)
641
642
  if(!(type == 'presale' && !this.props.needPreSale)){
@@ -652,49 +653,49 @@ class Video extends Component {
652
653
  height: 720
653
654
  },
654
655
  {
655
- tag: 'tag1customer',
656
+ tag: 'tag1',
656
657
  xPosition: 0,
657
658
  yPosition: 0,
658
659
  width: 213 * SCALE,
659
660
  height: 175 * SCALE
660
661
  },
661
662
  {
662
- tag: 'customer1',
663
+ tag: 'customertag1',
663
664
  xPosition: 213 * SCALE,
664
665
  yPosition: 0,
665
666
  width: 213 * SCALE,
666
667
  height: 175 * SCALE
667
668
  },
668
669
  {
669
- tag: 'customer2',
670
+ tag: 'customertag2',
670
671
  xPosition: 426 * SCALE,
671
672
  yPosition: 0,
672
673
  width: 213 * SCALE,
673
674
  height: 175 * SCALE
674
675
  },
675
676
  {
676
- tag: 'customer3',
677
+ tag: 'customertag3',
677
678
  xPosition: 639 * SCALE,
678
679
  yPosition: 0,
679
680
  width: 213 * SCALE,
680
681
  height: 175 * SCALE
681
682
  },
682
683
  {
683
- tag: 'customer4',
684
+ tag: 'customertag4',
684
685
  xPosition: 852 * SCALE,
685
686
  yPosition: 0,
686
687
  width: 213 * SCALE,
687
688
  height: 175 * SCALE
688
689
  },
689
690
  {
690
- tag: 'customer5',
691
+ tag: 'customertag5',
691
692
  xPosition: 1065 * SCALE,
692
693
  yPosition: 0,
693
694
  width: 213 * SCALE,
694
695
  height: 175 * SCALE
695
696
  },
696
697
  {
697
- tag: 'customer6',
698
+ tag: 'customertag6',
698
699
  xPosition: 1278 * SCALE,
699
700
  yPosition: 0,
700
701
  width: 213 * SCALE,
@@ -753,7 +754,7 @@ class Video extends Component {
753
754
  },
754
755
  ];
755
756
  recordParam.tagPositions = list
756
- recordParam.tagFilter = 'customer'
757
+ recordParam.tagFilter = 'tag'
757
758
  console.log('recordParam', recordParam);
758
759
  // 开启音频录制,如果有业务id用,没用sessionid 用于在成功回调里去区分是音频还是正常
759
760
  that.test_controller.StartRemoteRecord(filePath, recordParam, record_business_id ? record_business_id + '_' + type : this.state.sessionId + '_' + type)
@@ -791,49 +792,49 @@ class Video extends Component {
791
792
  // height: 350
792
793
  // },
793
794
  {
794
- tag: 'tag1customer',
795
+ tag: 'tag1',
795
796
  xPosition: 0,
796
797
  yPosition: 0,
797
798
  width: 213 * SCALE,
798
799
  height: 175 * SCALE
799
800
  },
800
801
  {
801
- tag: 'customer1',
802
+ tag: 'customertag1',
802
803
  xPosition: 213 * SCALE,
803
804
  yPosition: 0,
804
805
  width: 213 * SCALE,
805
806
  height: 175 * SCALE
806
807
  },
807
808
  {
808
- tag: 'customer2',
809
+ tag: 'customertag2',
809
810
  xPosition: 426 * SCALE,
810
811
  yPosition: 0,
811
812
  width: 213 * SCALE,
812
813
  height: 175 * SCALE
813
814
  },
814
815
  {
815
- tag: 'customer3',
816
+ tag: 'customertag3',
816
817
  xPosition: 639 * SCALE,
817
818
  yPosition: 0,
818
819
  width: 213 * SCALE,
819
820
  height: 175 * SCALE
820
821
  },
821
822
  {
822
- tag: 'customer4',
823
+ tag: 'customertag4',
823
824
  xPosition: 852 * SCALE,
824
825
  yPosition: 0,
825
826
  width: 213 * SCALE,
826
827
  height: 175 * SCALE
827
828
  },
828
829
  {
829
- tag: 'customer5',
830
+ tag: 'customertag5',
830
831
  xPosition: 1065 * SCALE,
831
832
  yPosition: 0,
832
833
  width: 213 * SCALE,
833
834
  height: 175 * SCALE
834
835
  },
835
836
  {
836
- tag: 'customer6',
837
+ tag: 'customertag6',
837
838
  xPosition: 1278 * SCALE,
838
839
  yPosition: 0,
839
840
  width: 213 * SCALE,
@@ -950,7 +951,7 @@ class Video extends Component {
950
951
  width: 1280,
951
952
  height: 720
952
953
  },{
953
- tag: 'tag1customer',
954
+ tag: 'tag1',
954
955
  xPosition: 0,
955
956
  yPosition: 0,
956
957
  width: 0,
@@ -2610,7 +2611,7 @@ class Video extends Component {
2610
2611
  publish_config.video_profile_diy = { width: 640, height: 360, frameRate: 15, bitrate: 400 }
2611
2612
  publish_config.publish_video_id = 'publish_video1'
2612
2613
  publish_config.publish_streamId_id = 'publish_streamId1'
2613
- publish_config.publish_tag = 'tag1customer'
2614
+ publish_config.publish_tag = 'tag1'
2614
2615
  if (this.props.recordMode == 2) {
2615
2616
  // 分行模式,只收音 不发布摄像头
2616
2617
  publish_config.media_type = 2
@@ -2688,8 +2689,8 @@ class Video extends Component {
2688
2689
  // if (publish_device != 2) {
2689
2690
  // return stream
2690
2691
  // }
2691
- if (publish_tag == 'tag1customer') {
2692
- console.log('tag1customer', stream)
2692
+ if (publish_tag == 'tag1') {
2693
+ console.log('tag1', stream)
2693
2694
  let newStream = stream;
2694
2695
  if (stream.getVideoTracks()[0]) {
2695
2696
  if (this.state.beautyType || isSuccuseHs){
@@ -2866,6 +2867,7 @@ class Video extends Component {
2866
2867
  })
2867
2868
  this.roomCallBack(2, '发布失败', '4-' + err_code)
2868
2869
  } else {
2870
+ this.test_controller.UnPublish(sid)
2869
2871
  this.messageClick('投屏失败请重新投屏', 'error')
2870
2872
  this.setSharedScreenState(false)
2871
2873
  this.setSharedScreenTimer(false)
@@ -4411,6 +4413,7 @@ class Video extends Component {
4411
4413
  }
4412
4414
  componentWillMount() {
4413
4415
  console.log('hsbc_teller_sdk', SDK_VERISON)
4416
+ console.log(`${this.props.recordMode ==1 ?'远程录制' :'网点录制'} ${this.props.salesBranchCode || ''} ${this.state.branchName || ''} ${this.props.financialOffice || ''}`)
4414
4417
  let arr = []
4415
4418
  for(let i=1;i<=12;i++){
4416
4419
  arr.push({
@@ -4964,8 +4967,8 @@ class Video extends Component {
4964
4967
  this.pictureInPicture()
4965
4968
  }
4966
4969
  this.saveLog('Start business recording')
4967
- if (!this.state.businessRecordId) this.enableServerRecording(this.state.businessId)
4968
- if (!this.state.businessRecordId) this.enableAudioRecording(this.state.businessId,'presale')
4970
+ if (!this.state.businessRecordId) this.enableServerRecording(this.state.businessId, 'startBusinessRecording')
4971
+ if (!this.state.businessRecordId) this.enableAudioRecording(this.state.businessId,'sale')
4969
4972
  if (!this.state.ipadRecordId && this.state.ipadTag) this.enableIpadRecording(this.state.businessId)
4970
4973
  clearTimeout(this.recordLoopPlayTimer)
4971
4974
  }