react_hsbc_teller 1.3.2 → 1.3.5

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.3.2",
3
+ "version": "1.3.5",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -376,7 +376,7 @@ class Video extends Component {
376
376
  recordParam.startTimeout = 10;
377
377
  recordParam.splitType = 0;
378
378
  recordParam.endType = 1;
379
- recordParam.crf = 30
379
+ recordParam.crf = 26
380
380
  recordParam.overlaps = [
381
381
  {
382
382
  tag: '', // 流 tag,如果不设置或为空,则为全局⽔印
@@ -400,9 +400,9 @@ class Video extends Component {
400
400
  },
401
401
  {
402
402
  tag: 'VIDEO_SOURCE_SCREEN',
403
- xPosition: 1280,
403
+ xPosition: 1290,
404
404
  yPosition: 630,
405
- width: 640,
405
+ width: 630,
406
406
  height: 360
407
407
  },
408
408
  {
@@ -2342,7 +2342,6 @@ class Video extends Component {
2342
2342
  }, function (code, message, data) {
2343
2343
  console.log(data)
2344
2344
  })
2345
- setTimeout(() => {
2346
2345
  let array = this.state.roomCustomerList;
2347
2346
  let newArray = [...array];
2348
2347
  newArray.push({
@@ -2397,24 +2396,6 @@ class Video extends Component {
2397
2396
 
2398
2397
  }
2399
2398
  } else {
2400
- // let data_param = {
2401
- // isVideo: true,
2402
- // videoIndex: this.state.videoList.length + 1,
2403
- // videoTwoName: ''
2404
- // }
2405
- // let videoList = this.state.videoList;
2406
- // let newvideoList = [...videoList];
2407
- // newvideoList.push(data_param);
2408
- // this.setState({
2409
- // videoList: newvideoList
2410
- // },()=>{
2411
- // config_param = {
2412
- // subscribe_video_id: 'video' + this.state.videoList.length,
2413
- // subscribe_audio_id: 'audio' + this.state.videoList.length,
2414
- // subscribe_streamId_id: 'subscribe_streamId' + this.state.videoList.length,
2415
- // feedId_id: 'feedId' + this.state.videoList.length,
2416
- // feedId: feed.feedId
2417
- // }
2418
2399
  if (!document.getElementById('video1').name) {
2419
2400
  config_param = {
2420
2401
  subscribe_video_id: 'video1',
@@ -2526,19 +2507,11 @@ class Video extends Component {
2526
2507
  if (config_param !== undefined) {
2527
2508
  config_param.need_volume_analyser = true
2528
2509
  console.log(config_param)
2529
-
2530
-
2531
- this.test_controller.Subscribe(config_param)
2532
-
2533
-
2510
+ this.test_controller.Subscribe(config_param)
2534
2511
  }
2535
- // })
2536
-
2537
-
2538
2512
  }
2539
2513
 
2540
2514
  }
2541
- }, 2000);
2542
2515
  };
2543
2516
  // 推送“有新订阅”给与会者
2544
2517
  this.test_controller.OnNewSubscribe = (subscriber, feed) => {
@@ -4005,6 +3978,9 @@ class Video extends Component {
4005
3978
  this.signCanvas.current.canvas.drawing.toDataURL('image/png').replace(/data.+?;base64,/, "")
4006
3979
  )
4007
3980
  }
3981
+ handleCancelSign=()=>{
3982
+ this.signCanvas.current.clear()
3983
+ }
4008
3984
 
4009
3985
  navigatorClick=()=>{
4010
3986
  const that = this
@@ -4017,20 +3993,25 @@ class Video extends Component {
4017
3993
  const top = document.getElementById("whiteboardDIV").getBoundingClientRect().top
4018
3994
  const bottom = document.getElementById("whiteboardDIV").getBoundingClientRect().bottom
4019
3995
  const width = (right - left)* window.screen.width / document.body.clientWidth
4020
- const height = (bottom - top)* window.screen.width / document.body.clientWidth
3996
+ const height = ((bottom - top)* window.screen.width / document.body.clientWidth)
4021
3997
  const x = left * window.screen.width / document.body.clientWidth
4022
- const y = top
4023
- canvas.width = width;
4024
- canvas.height = height;
4025
- console.log('addEventListener',x,y,width,height)
3998
+ const y = top* window.screen.width / document.body.clientWidth
3999
+ canvas.width = 1280;
4000
+ canvas.height = 720;
4001
+ cobj.fillStyle = 'rgb(255 255 255)'
4002
+ cobj.fillRect(0,0,1280,720)
4003
+ // const height1 = document.getElementById("whiteboardDIV").getBoundingClientRect().height* window.screen.height / (document.body.clientHeight + 280)
4004
+
4026
4005
  videoMedia.addEventListener('play', (event) =>{
4027
4006
  var $this = this; //cache
4028
- console.log('addEventListener',!$this.paused,!$this.ended)
4007
+ console.log('addEventListener',!$this.paused,!$this.ended,x, y, width, height)
4029
4008
  loop()
4030
4009
  function loop() {
4031
4010
  if (!$this.paused && !$this.ended) {
4032
- cobj.drawImage(videoMedia, x, y, width, height, 0, 0,width, height,);
4033
- // cobj.drawImage(videoMedia, 338.4848327636719, 145.45452880859375, 674.6685180664062, 553.39013671875, 0, 0,674.6685180664062, 553.39013671875,);
4011
+
4012
+ // console.log('addEventListener',x,y,width,height1,height)
4013
+
4014
+ cobj.drawImage(videoMedia, x, y, width, height, 0, 0,width, height);
4034
4015
  setTimeout(loop, 1000 / 10); // drawing at 30fps
4035
4016
  }
4036
4017
  }
@@ -4042,16 +4023,16 @@ class Video extends Component {
4042
4023
  publish_config.degradationType=2
4043
4024
  publish_config.sid = document.getElementById('video20').name
4044
4025
  publish_config.stream = canvas.captureStream(10)
4045
- publish_config.video_profile_type=100
4046
- publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
4026
+ publish_config.video_profile_type=1
4027
+ // publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
4047
4028
  this.test_controller.ChangeMediaStream(publish_config);
4048
4029
  } else {
4049
4030
 
4050
4031
  publish_config.media_type = 1
4051
4032
  publish_config.publish_device = 5
4052
4033
  publish_config.need_volume_analyser = true
4053
- publish_config.video_profile_type=100
4054
- publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
4034
+ publish_config.video_profile_type=1
4035
+ // publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
4055
4036
  publish_config.degradationType=2
4056
4037
  publish_config.stream = canvas.captureStream(10)
4057
4038
  publish_config.publish_video_id = 'video20'
@@ -4990,6 +4971,7 @@ class Video extends Component {
4990
4971
  <Modal title="签字白板" width={600} destroyOnClose={true} closable={false} centered={true} visible={isTranscribing} footer={
4991
4972
  [
4992
4973
  <div key='okSign'>
4974
+ <Button className="modelButtonCancel" onClick={this.handleCancelSign}>清除</Button>
4993
4975
  <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSign}>确定</Button>
4994
4976
  </div>
4995
4977
  ]