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
|
@@ -10,7 +10,7 @@ width: 100%;
|
|
|
10
10
|
}
|
|
11
11
|
.total{
|
|
12
12
|
display: inline-flex;
|
|
13
|
-
width:
|
|
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
|
-
|
|
3046
|
-
this.state.isScreenSwitching
|
|
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
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
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
|
-
|
|
3072
|
-
|
|
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
|
}
|