react_hsbc_teller 2.0.40 → 2.0.42
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/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +8 -5
package/package.json
CHANGED
|
@@ -60,7 +60,7 @@ import MultiModule from '../multiModule/multiModule'//签字、抄录
|
|
|
60
60
|
import axios from 'axios';
|
|
61
61
|
import CryptoJS from "crypto-js";
|
|
62
62
|
|
|
63
|
-
const SDK_VERISON = '2.0.
|
|
63
|
+
const SDK_VERISON = '2.0.42'
|
|
64
64
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
65
65
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
66
66
|
const { Option } = Select;
|
|
@@ -2338,6 +2338,7 @@ class Video extends Component {
|
|
|
2338
2338
|
this.roomCallBack(2, '音视频异常关闭', 8)
|
|
2339
2339
|
} else {
|
|
2340
2340
|
this.state.isScreenSwitching = false
|
|
2341
|
+
this.setSharedScreenState(false)
|
|
2341
2342
|
}
|
|
2342
2343
|
}
|
|
2343
2344
|
};
|
|
@@ -2529,6 +2530,7 @@ class Video extends Component {
|
|
|
2529
2530
|
console.log('发布媒体流成功', sid)
|
|
2530
2531
|
this.state.sessionType = true
|
|
2531
2532
|
if (sid == document.getElementById('video20').name) {
|
|
2533
|
+
this.setSharedScreenState(true)
|
|
2532
2534
|
this.sendMessage({
|
|
2533
2535
|
'typeId': 2030,
|
|
2534
2536
|
'sessionId': this.state.sessionId,
|
|
@@ -2538,7 +2540,6 @@ class Video extends Component {
|
|
|
2538
2540
|
if (this.state.screenName == '切换共享') {
|
|
2539
2541
|
this.state.isSharedScreen = true
|
|
2540
2542
|
this.state.isScreenSwitching = false
|
|
2541
|
-
this.setSharedScreenState(true)
|
|
2542
2543
|
}
|
|
2543
2544
|
this.videoInfo = this.generateMediaInfo(document.getElementById("video20").name);
|
|
2544
2545
|
}
|
|
@@ -2597,8 +2598,9 @@ class Video extends Component {
|
|
|
2597
2598
|
if (sid == document.getElementById('publish_streamId1').name) {
|
|
2598
2599
|
this.state.sessionType = false
|
|
2599
2600
|
this.roomCallBack(2, '发布失败', 4)
|
|
2600
|
-
} else {
|
|
2601
|
+
} else if (sid == document.getElementById('video20').name) {
|
|
2601
2602
|
this.messageClick('投屏失败请重新投屏', 'error')
|
|
2603
|
+
this.setSharedScreenState(false)
|
|
2602
2604
|
}
|
|
2603
2605
|
|
|
2604
2606
|
};
|
|
@@ -5447,6 +5449,7 @@ class Video extends Component {
|
|
|
5447
5449
|
navigator.mediaDevices.getDisplayMedia({
|
|
5448
5450
|
video: true,
|
|
5449
5451
|
preferCurrentTab: true,
|
|
5452
|
+
surfaceSwitching: "exclude"
|
|
5450
5453
|
// audio: true
|
|
5451
5454
|
// video: {
|
|
5452
5455
|
// width: document.body.clientWidth,
|
|
@@ -5480,7 +5483,7 @@ class Video extends Component {
|
|
|
5480
5483
|
document.getElementById('video20') && document.getElementById('video20').name ? this.test_controller.UnPublish(document.getElementById('video20').name) : ''
|
|
5481
5484
|
that.state.isSharedScreen = false
|
|
5482
5485
|
that.state.isScreenSwitching = false
|
|
5483
|
-
that.setSharedScreenState(false)
|
|
5486
|
+
// that.setSharedScreenState(false)
|
|
5484
5487
|
that.setState({
|
|
5485
5488
|
screenName: '共享模式'
|
|
5486
5489
|
});
|
|
@@ -5552,6 +5555,7 @@ class Video extends Component {
|
|
|
5552
5555
|
navigator.mediaDevices.getDisplayMedia({
|
|
5553
5556
|
video: true,
|
|
5554
5557
|
preferCurrentTab: true,
|
|
5558
|
+
surfaceSwitching: "exclude"
|
|
5555
5559
|
})
|
|
5556
5560
|
.then((stream) => {
|
|
5557
5561
|
if (streamRecord) {
|
|
@@ -5592,7 +5596,6 @@ class Video extends Component {
|
|
|
5592
5596
|
}, 'add')
|
|
5593
5597
|
if (this.state.isSharedScreen) {
|
|
5594
5598
|
this.state.isSharedScreen = false
|
|
5595
|
-
this.setSharedScreenState(false)
|
|
5596
5599
|
this.setState({
|
|
5597
5600
|
|
|
5598
5601
|
screenName: '共享模式'
|