react_hsbc_teller 1.3.0 → 1.3.1

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.0",
3
+ "version": "1.3.1",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -94,7 +94,7 @@ export default class foot extends Component {
94
94
  <div className="one">
95
95
  <img className="imgClass" src={require("../../assets/img/switchExternal.png").default} alt="" />
96
96
  <div className="text">
97
- 白板
97
+ 远程签署
98
98
  </div>
99
99
  </div>
100
100
  </div>
@@ -10,7 +10,7 @@ width: 100%;
10
10
  }
11
11
  .total{
12
12
  display: inline-flex;
13
- width: 33%;
13
+ width: 25%;
14
14
  height: 100%;
15
15
  align-items: center;
16
16
  // margin: 10px 0;
@@ -46,9 +46,11 @@ line-height: 11px;
46
46
  }
47
47
  .totalTwo{
48
48
  justify-content: center;
49
+ width: 50%;
49
50
  }
50
51
  .totalThree{
51
52
  // margin-top: 10px;
53
+ width: 25%;
52
54
  justify-content: flex-end;
53
55
  }
54
56
  .buttonClass{
@@ -852,6 +852,7 @@ class Video extends Component {
852
852
  endSessionValue = () => {
853
853
  if(streamShare) {
854
854
  streamShare.getTracks().forEach(track => track.stop());
855
+ streamShare=''
855
856
  }
856
857
  this.finishSession()
857
858
 
@@ -1439,6 +1440,7 @@ class Video extends Component {
1439
1440
  } else if (Mival.type == 2) {
1440
1441
  if(streamShare) {
1441
1442
  streamShare.getTracks().forEach(track => track.stop());
1443
+ streamShare = ''
1442
1444
  }
1443
1445
  this.tabTitlesClick('RMWhiteboard', 'delect')
1444
1446
  if (this.state.isSharedScreen) {
@@ -3042,36 +3044,31 @@ class Video extends Component {
3042
3044
  // 停止共享
3043
3045
  this.test_controller.OnDesktopDisplayClosed = () => {
3044
3046
  console.log('OnDesktopDisplayClosed', this.state.isSharedScreen ,this.state.laveRoomSharedScreen)
3045
- if(this.state.isScreenSwitching) {
3046
- this.state.isScreenSwitching = false
3047
+
3048
+ if(this.state.isScreenSwitching) {
3049
+ this.state.isScreenSwitching = false
3050
+ } else {
3051
+ if(!streamShare) {
3052
+ document.getElementById('video20') && document.getElementById('video20').name ? this.test_controller.UnPublish(document.getElementById('video20').name) : ''
3047
3053
  } else {
3048
- // if (this.state.isWhiteboard) {
3049
- // publish_config.publish_device = 4
3050
- // publish_config.media_type = 1
3051
- // publish_config.sid = document.getElementById('video20').name
3052
- // publish_config.part_of_screen_id = 'touBoxItem'
3053
- // publish_config.video_profile_type = 5
3054
- // this.test_controller.ChangeMediaStream(publish_config);
3055
- // this.setState({
3056
- // isPDF: true,
3057
- // })
3058
- // } else {
3059
- document.getElementById('video20') && document.getElementById('video20').name ? this.test_controller.UnPublish(document.getElementById('video20').name) : ''
3054
+ console.log('白板')
3055
+ }
3056
+ this.state.isSharedScreen = false
3057
+ this.state.isScreenSwitching = false
3058
+ this.setState({
3059
+ screenName: '共享模式'
3060
+ });
3061
+ console.log(pictureInPictureVideo)
3062
+ this.tabTitlesClick('RMScreen', 'delect')
3063
+ if (this.state.isPictureInPicture) {
3064
+ document.exitPictureInPicture()
3065
+ }
3066
+ // if (!this.state.laveRoomSharedScreen && this.state.isSharedScreen) {
3067
+ // this.sharedScreen()
3060
3068
  // }
3061
- this.state.isSharedScreen = false
3062
- this.state.isScreenSwitching = false
3063
- this.setState({
3064
- screenName: '共享模式'
3065
- });
3066
- console.log(pictureInPictureVideo)
3067
- this.tabTitlesClick('RMScreen', 'delect')
3068
- if (this.state.isPictureInPicture) {
3069
- document.exitPictureInPicture()
3070
3069
  }
3071
- // if (!this.state.laveRoomSharedScreen && this.state.isSharedScreen) {
3072
- // this.sharedScreen()
3073
- // }
3074
- }
3070
+
3071
+
3075
3072
 
3076
3073
 
3077
3074
  };
@@ -3455,6 +3452,7 @@ class Video extends Component {
3455
3452
  const publish_config = {};
3456
3453
  if(streamShare) {
3457
3454
  streamShare.getTracks().forEach(track => track.stop());
3455
+ streamShare = ''
3458
3456
  }
3459
3457
  if (this.state.isSharedScreen) {
3460
3458
  const publish_config = {}
@@ -4065,6 +4063,7 @@ class Video extends Component {
4065
4063
  .then((stream) => {
4066
4064
  if(streamShare) {
4067
4065
  streamShare.getTracks().forEach(track => track.stop());
4066
+ streamShare = ''
4068
4067
  }
4069
4068
  videoMedia.srcObject = stream;
4070
4069
  stream.getVideoTracks()[0].applyConstraints({
@@ -4074,6 +4073,7 @@ class Video extends Component {
4074
4073
  streamShare = stream
4075
4074
  stream.getVideoTracks()[0].onended = async ()=>{
4076
4075
  //单击停止共享按钮后,触发这个事件
4076
+ streamShare = ''
4077
4077
  if(document.getElementById('video20').name&&!this.state.isSharedScreen) {
4078
4078
  that.test_controller.UnPublish(document.getElementById('video20').name)
4079
4079
  }