react_hsbc_teller 2.0.43 → 2.0.44
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 +23 -8
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.44'
|
|
64
64
|
const IDtypeFront = '请客户在其设备后置摄像头下展示证件正面(如:身份证照片页面)'
|
|
65
65
|
const IDtypeBack = '请在后置摄像头下展示证件反面(如:身份证国徽页)'
|
|
66
66
|
const { Option } = Select;
|
|
@@ -85,6 +85,7 @@ const POINT_TYPE = {
|
|
|
85
85
|
const RECORD_DEVICE_NAME = 'screen-capture-recorder'
|
|
86
86
|
// const RECORD_DEVICE_NAME = 'Full HD webcam'
|
|
87
87
|
const IPAD_SUFFIX = '_ipad'
|
|
88
|
+
const H5_SUFFIX = '_h5'
|
|
88
89
|
let media_status = 0
|
|
89
90
|
let pictureInPictureVideo
|
|
90
91
|
let mix_stream
|
|
@@ -1405,6 +1406,7 @@ class Video extends Component {
|
|
|
1405
1406
|
let microphoneSize = 50
|
|
1406
1407
|
var img = document.getElementById("icon_huatong");
|
|
1407
1408
|
var img1 = document.getElementById("icon_huatong_close");
|
|
1409
|
+
if (!this.state.listVideoPicture[i].title.includes(IPAD_SUFFIX)) {
|
|
1408
1410
|
if (this.state.listVideoPicture[i].mute) {
|
|
1409
1411
|
cobj.drawImage(img1, 10, 360 * (i + 1) - 60 + baseStartHeight, microphoneSize, microphoneSize);
|
|
1410
1412
|
} else {
|
|
@@ -1451,9 +1453,7 @@ class Video extends Component {
|
|
|
1451
1453
|
// requestAnimationFrame(aou.bind(this, analyser))
|
|
1452
1454
|
)
|
|
1453
1455
|
}
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1456
|
+
}
|
|
1457
1457
|
}
|
|
1458
1458
|
|
|
1459
1459
|
// 绘制消息
|
|
@@ -2465,7 +2465,7 @@ class Video extends Component {
|
|
|
2465
2465
|
return newStream
|
|
2466
2466
|
}
|
|
2467
2467
|
|
|
2468
|
-
if (publish_tag == 'projectionWhiteboard' && publish_device == 2) {
|
|
2468
|
+
if (publish_tag == 'projectionWhiteboard' && (publish_device == 2 || publish_device == 5)) {
|
|
2469
2469
|
let newStream1 = stream;
|
|
2470
2470
|
if (stream.getVideoTracks()[0]) {
|
|
2471
2471
|
try {
|
|
@@ -2480,7 +2480,10 @@ class Video extends Component {
|
|
|
2480
2480
|
} else if (stream.getVideoTracks()[0].label.includes('window')){
|
|
2481
2481
|
console.log('窗口共享')
|
|
2482
2482
|
this.saveLog('Share type = window')
|
|
2483
|
-
}
|
|
2483
|
+
} else if (stream.getVideoTracks()[0] instanceof CanvasCaptureMediaStreamTrack){
|
|
2484
|
+
console.log('白板共享')
|
|
2485
|
+
this.saveLog('Share type = whiteboard')
|
|
2486
|
+
}
|
|
2484
2487
|
} catch (err) {
|
|
2485
2488
|
console.log('不支持此浏览器记录投屏类型日志')
|
|
2486
2489
|
console.log(navigator.userAgent)
|
|
@@ -2531,6 +2534,7 @@ class Video extends Component {
|
|
|
2531
2534
|
this.state.sessionType = true
|
|
2532
2535
|
if (sid == document.getElementById('video20').name) {
|
|
2533
2536
|
this.setSharedScreenState(true)
|
|
2537
|
+
this.saveLog('Share success')
|
|
2534
2538
|
this.sendMessage({
|
|
2535
2539
|
'typeId': 2030,
|
|
2536
2540
|
'sessionId': this.state.sessionId,
|
|
@@ -2598,9 +2602,10 @@ class Video extends Component {
|
|
|
2598
2602
|
if (sid == document.getElementById('publish_streamId1').name) {
|
|
2599
2603
|
this.state.sessionType = false
|
|
2600
2604
|
this.roomCallBack(2, '发布失败', 4)
|
|
2601
|
-
} else
|
|
2605
|
+
} else {
|
|
2602
2606
|
this.messageClick('投屏失败请重新投屏', 'error')
|
|
2603
2607
|
this.setSharedScreenState(false)
|
|
2608
|
+
this.saveLog('Share fail')
|
|
2604
2609
|
}
|
|
2605
2610
|
|
|
2606
2611
|
};
|
|
@@ -2729,6 +2734,12 @@ class Video extends Component {
|
|
|
2729
2734
|
if (participant.includes(IPAD_SUFFIX) && this.state.businessId){
|
|
2730
2735
|
this.saveVideoPoint('padConnected', 'ipad已连接');
|
|
2731
2736
|
}
|
|
2737
|
+
if (participant.includes(H5_SUFFIX)){
|
|
2738
|
+
this.messageClick('客户端已就绪,可进行签署', 'error')
|
|
2739
|
+
if (typeof this.props.h5JoinCallback === 'function'){
|
|
2740
|
+
this.props.h5JoinCallback()
|
|
2741
|
+
}
|
|
2742
|
+
}
|
|
2732
2743
|
};
|
|
2733
2744
|
// 推送“有新发布”给与会者
|
|
2734
2745
|
this.test_controller.OnNewPublish = (feed) => {
|
|
@@ -2853,6 +2864,7 @@ class Video extends Component {
|
|
|
2853
2864
|
})
|
|
2854
2865
|
this.state.isSharedScreen = false
|
|
2855
2866
|
this.setSharedScreenState(false)
|
|
2867
|
+
this.saveLog('Stop share')
|
|
2856
2868
|
this.setState({
|
|
2857
2869
|
|
|
2858
2870
|
screenName: '共享模式'
|
|
@@ -3328,6 +3340,7 @@ class Video extends Component {
|
|
|
3328
3340
|
this.state.isSharedScreen = true
|
|
3329
3341
|
this.state.isScreenSwitching = false
|
|
3330
3342
|
this.setSharedScreenState(true)
|
|
3343
|
+
this.saveLog('Share changed')
|
|
3331
3344
|
}
|
|
3332
3345
|
}
|
|
3333
3346
|
};
|
|
@@ -3349,6 +3362,7 @@ class Video extends Component {
|
|
|
3349
3362
|
this.state.isSharedScreen = false
|
|
3350
3363
|
this.state.isScreenSwitching = false
|
|
3351
3364
|
this.setSharedScreenState(false)
|
|
3365
|
+
this.saveLog('Share fail')
|
|
3352
3366
|
this.setState({
|
|
3353
3367
|
screenName: '共享模式'
|
|
3354
3368
|
});
|
|
@@ -6754,6 +6768,7 @@ class Video extends Component {
|
|
|
6754
6768
|
<label style={{ display: 'none' }} id={'feedId'+(item.idIndex)} type="text" />
|
|
6755
6769
|
|
|
6756
6770
|
<div onClick={this.muteOpposite.bind(this, 'video'+(item.idIndex))} style={{ display: (item.videoName) ? '' : 'none'}} className={`customerTitle titleSamlle`}>
|
|
6771
|
+
{ item.videoName.includes(IPAD_SUFFIX) ? <span style={{paddingLeft: '8px'}}> </span>:<>
|
|
6757
6772
|
{
|
|
6758
6773
|
item.mute && <img
|
|
6759
6774
|
alt=""
|
|
@@ -6762,7 +6777,7 @@ class Video extends Component {
|
|
|
6762
6777
|
/>
|
|
6763
6778
|
}
|
|
6764
6779
|
<canvas style={{ display: (item.videoName && !item.mute) ? '' : 'none',width: '25px',height:'25px',marginTop: '4px' }} className="canvasClassOne" id={"subscribe_volumeView"+(item.idIndex)} width="40" height="70"></canvas>
|
|
6765
|
-
|
|
6780
|
+
</>}
|
|
6766
6781
|
<div className='titleName' style={{ color: this.props.titleColor,fontSize: this.props.fontSize + 'px',fontFamily : this.props.fontFamily}}>
|
|
6767
6782
|
{item.videoName}
|
|
6768
6783
|
</div>
|