react_hsbc_teller 2.0.98 → 2.1.0
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/README.md +5 -0
- package/lib/hsbc.js +1 -1
- package/package.json +1 -1
- package/packages/pages/video/video.jsx +29 -13
package/package.json
CHANGED
|
@@ -66,7 +66,7 @@ import axios from 'axios';
|
|
|
66
66
|
import CryptoJS from "crypto-js";
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
const SDK_VERISON = '2.0
|
|
69
|
+
const SDK_VERISON = '2.1.0'
|
|
70
70
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
71
71
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
72
72
|
const { Option } = Select;
|
|
@@ -1392,19 +1392,23 @@ class Video extends Component {
|
|
|
1392
1392
|
};
|
|
1393
1393
|
// 画中画
|
|
1394
1394
|
pictureInPicture = (val) => {
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1395
|
+
// recordMode 为1 或者needIpad 为true 时,才支持画中画
|
|
1396
|
+
if(this.props.recordMode == '1' || this.props.needIpad) {
|
|
1397
|
+
if (this.isFileSuccuse()) {
|
|
1398
|
+
if (this.state.isPictureInPicture) {
|
|
1399
|
+
if (!val) {
|
|
1400
|
+
document.exitPictureInPicture()
|
|
1401
|
+
} else {
|
|
1402
|
+
this.pictureInPictureClick('update')
|
|
1403
|
+
}
|
|
1399
1404
|
} else {
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
if (!val) {
|
|
1404
|
-
this.pictureInPictureClick('add')
|
|
1405
|
+
if (!val) {
|
|
1406
|
+
this.pictureInPictureClick('add')
|
|
1407
|
+
}
|
|
1405
1408
|
}
|
|
1406
1409
|
}
|
|
1407
1410
|
}
|
|
1411
|
+
|
|
1408
1412
|
};
|
|
1409
1413
|
pictureInPictureClick = (val) => {
|
|
1410
1414
|
let interval
|
|
@@ -1959,6 +1963,7 @@ class Video extends Component {
|
|
|
1959
1963
|
if (Mival.sessionId == this.state.sessionId) {
|
|
1960
1964
|
// 1-开启,2-关闭
|
|
1961
1965
|
if (Mival.type == 1) {
|
|
1966
|
+
this.state.isSfpMeeting = true
|
|
1962
1967
|
this.switchExternal()
|
|
1963
1968
|
this.saveLog('whiteboard start, typeId=1218,')
|
|
1964
1969
|
if (typeof this.props.sfpCallback === 'function'){
|
|
@@ -3310,7 +3315,17 @@ class Video extends Component {
|
|
|
3310
3315
|
})
|
|
3311
3316
|
this.state.isSharedScreen = false
|
|
3312
3317
|
this.setSharedScreenState(false)
|
|
3313
|
-
|
|
3318
|
+
// 1218--sfp可以通过api去唤起meeting alisdk的白板进行文档签署
|
|
3319
|
+
// 在这里要多判断一层,要是收到通知1218导致的取消发布的时候不去调用setSharedScreenTimer
|
|
3320
|
+
|
|
3321
|
+
if(!this.state.isSfpMeeting){
|
|
3322
|
+
this.setSharedScreenTimer(false)
|
|
3323
|
+
} else {
|
|
3324
|
+
console.log('isSfpMeeting: true')
|
|
3325
|
+
this.saveLog('isSfpMeeting: true')
|
|
3326
|
+
this.state.isSfpMeeting = false
|
|
3327
|
+
}
|
|
3328
|
+
|
|
3314
3329
|
this.saveLog('Stop share')
|
|
3315
3330
|
this.setState({
|
|
3316
3331
|
|
|
@@ -4909,6 +4924,7 @@ class Video extends Component {
|
|
|
4909
4924
|
}
|
|
4910
4925
|
}
|
|
4911
4926
|
setSharedScreenTimer = (state) => {
|
|
4927
|
+
console.log('screenName',this.state.screenName)
|
|
4912
4928
|
// 设置定时,如果x秒内没有重新开启投屏 则弹出提示
|
|
4913
4929
|
if (!this.props.screenSharedInterval || typeof this.props.screenSharedInterval != 'number') return;
|
|
4914
4930
|
if (state) {
|
|
@@ -7588,7 +7604,7 @@ class Video extends Component {
|
|
|
7588
7604
|
|
|
7589
7605
|
</ul>
|
|
7590
7606
|
</div>
|
|
7591
|
-
{!this.state.loading && this.state.sessionType && this.state.sessionId && this.props.recordMode == 2?
|
|
7607
|
+
{!this.state.loading && this.state.sessionType && this.state.sessionId && (this.props.recordMode == 2 && this.props.needIpad)?
|
|
7592
7608
|
<div className='QRCode'>
|
|
7593
7609
|
<QRCode
|
|
7594
7610
|
value={JSON.stringify({
|
|
@@ -8299,7 +8315,7 @@ class Video extends Component {
|
|
|
8299
8315
|
</div>
|
|
8300
8316
|
</Panel>
|
|
8301
8317
|
{
|
|
8302
|
-
this.props.recordMode == 2 &&
|
|
8318
|
+
this.props.recordMode == 2 && this.props.needIpad &&
|
|
8303
8319
|
<Panel header={<span>双录iPad设备 - {this.state.ipadTag? '合格':'未开启'} {this.state.ipadTag? <img src={IconSuccess} />: <img src={IconFail} />}</span>} key="6" className={this.state.ipadTag? '':'panel-error'}>
|
|
8304
8320
|
<p className="envClass">{this.state.ipadTag? 'iPad设备已加入':'请使用双录iPAD扫描以下会议二维码或输入会议号,开启双录'}</p>
|
|
8305
8321
|
<div className='QRCode flex' style={{display: this.state.ipadTag? 'none':''}}>
|