react_hsbc_teller 1.3.4 → 1.3.7
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 +29 -41
package/package.json
CHANGED
|
@@ -296,6 +296,7 @@ class Video extends Component {
|
|
|
296
296
|
// initWebSocket('wss://im.uat.dsp.hsbcfts.com.cn:443/wealth/im/ws/')
|
|
297
297
|
// initWebSocket('wss://' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname + ':' + '15603' + '/ws/');
|
|
298
298
|
if(!this.state.imStatus){
|
|
299
|
+
this.state.manualClose = false
|
|
299
300
|
initWebSocket('wss://' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname + ':' + JSON.parse(window.sessionStorage.getItem('sigData')).webPort + '/ws/');
|
|
300
301
|
|
|
301
302
|
}
|
|
@@ -376,7 +377,7 @@ class Video extends Component {
|
|
|
376
377
|
recordParam.startTimeout = 10;
|
|
377
378
|
recordParam.splitType = 0;
|
|
378
379
|
recordParam.endType = 1;
|
|
379
|
-
recordParam.crf =
|
|
380
|
+
recordParam.crf = 26
|
|
380
381
|
recordParam.overlaps = [
|
|
381
382
|
{
|
|
382
383
|
tag: '', // 流 tag,如果不设置或为空,则为全局⽔印
|
|
@@ -400,9 +401,9 @@ class Video extends Component {
|
|
|
400
401
|
},
|
|
401
402
|
{
|
|
402
403
|
tag: 'VIDEO_SOURCE_SCREEN',
|
|
403
|
-
xPosition:
|
|
404
|
+
xPosition: 1290,
|
|
404
405
|
yPosition: 630,
|
|
405
|
-
width:
|
|
406
|
+
width: 630,
|
|
406
407
|
height: 360
|
|
407
408
|
},
|
|
408
409
|
{
|
|
@@ -1872,6 +1873,13 @@ class Video extends Component {
|
|
|
1872
1873
|
this.state.rtoken = '',
|
|
1873
1874
|
this.state.sessionId = '',
|
|
1874
1875
|
this.state.imRoomId = ''
|
|
1876
|
+
this.state.imJoinRoom = false
|
|
1877
|
+
if(this.state.imStatus) {
|
|
1878
|
+
console.log('disconnect断开连接')
|
|
1879
|
+
this.state.manualClose = true
|
|
1880
|
+
this.state.imStatus = false
|
|
1881
|
+
disconnect();
|
|
1882
|
+
}
|
|
1875
1883
|
this.test_controller.Disconnect()
|
|
1876
1884
|
let data = {
|
|
1877
1885
|
account: this.props.tellerAccount,
|
|
@@ -2342,7 +2350,6 @@ class Video extends Component {
|
|
|
2342
2350
|
}, function (code, message, data) {
|
|
2343
2351
|
console.log(data)
|
|
2344
2352
|
})
|
|
2345
|
-
setTimeout(() => {
|
|
2346
2353
|
let array = this.state.roomCustomerList;
|
|
2347
2354
|
let newArray = [...array];
|
|
2348
2355
|
newArray.push({
|
|
@@ -2397,24 +2404,6 @@ class Video extends Component {
|
|
|
2397
2404
|
|
|
2398
2405
|
}
|
|
2399
2406
|
} else {
|
|
2400
|
-
// let data_param = {
|
|
2401
|
-
// isVideo: true,
|
|
2402
|
-
// videoIndex: this.state.videoList.length + 1,
|
|
2403
|
-
// videoTwoName: ''
|
|
2404
|
-
// }
|
|
2405
|
-
// let videoList = this.state.videoList;
|
|
2406
|
-
// let newvideoList = [...videoList];
|
|
2407
|
-
// newvideoList.push(data_param);
|
|
2408
|
-
// this.setState({
|
|
2409
|
-
// videoList: newvideoList
|
|
2410
|
-
// },()=>{
|
|
2411
|
-
// config_param = {
|
|
2412
|
-
// subscribe_video_id: 'video' + this.state.videoList.length,
|
|
2413
|
-
// subscribe_audio_id: 'audio' + this.state.videoList.length,
|
|
2414
|
-
// subscribe_streamId_id: 'subscribe_streamId' + this.state.videoList.length,
|
|
2415
|
-
// feedId_id: 'feedId' + this.state.videoList.length,
|
|
2416
|
-
// feedId: feed.feedId
|
|
2417
|
-
// }
|
|
2418
2407
|
if (!document.getElementById('video1').name) {
|
|
2419
2408
|
config_param = {
|
|
2420
2409
|
subscribe_video_id: 'video1',
|
|
@@ -2526,19 +2515,11 @@ class Video extends Component {
|
|
|
2526
2515
|
if (config_param !== undefined) {
|
|
2527
2516
|
config_param.need_volume_analyser = true
|
|
2528
2517
|
console.log(config_param)
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
this.test_controller.Subscribe(config_param)
|
|
2532
|
-
|
|
2533
|
-
|
|
2518
|
+
this.test_controller.Subscribe(config_param)
|
|
2534
2519
|
}
|
|
2535
|
-
// })
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
2520
|
}
|
|
2539
2521
|
|
|
2540
2522
|
}
|
|
2541
|
-
}, 2000);
|
|
2542
2523
|
};
|
|
2543
2524
|
// 推送“有新订阅”给与会者
|
|
2544
2525
|
this.test_controller.OnNewSubscribe = (subscriber, feed) => {
|
|
@@ -4005,6 +3986,9 @@ class Video extends Component {
|
|
|
4005
3986
|
this.signCanvas.current.canvas.drawing.toDataURL('image/png').replace(/data.+?;base64,/, "")
|
|
4006
3987
|
)
|
|
4007
3988
|
}
|
|
3989
|
+
handleCancelSign=()=>{
|
|
3990
|
+
this.signCanvas.current.clear()
|
|
3991
|
+
}
|
|
4008
3992
|
|
|
4009
3993
|
navigatorClick=()=>{
|
|
4010
3994
|
const that = this
|
|
@@ -4017,22 +4001,25 @@ class Video extends Component {
|
|
|
4017
4001
|
const top = document.getElementById("whiteboardDIV").getBoundingClientRect().top
|
|
4018
4002
|
const bottom = document.getElementById("whiteboardDIV").getBoundingClientRect().bottom
|
|
4019
4003
|
const width = (right - left)* window.screen.width / document.body.clientWidth
|
|
4020
|
-
const height = (bottom - top)* window.screen.width /
|
|
4004
|
+
const height = ((bottom - top)* window.screen.width / document.body.clientWidth) - 50
|
|
4021
4005
|
const x = left * window.screen.width / document.body.clientWidth
|
|
4022
|
-
const y = top* window.screen.width /
|
|
4023
|
-
canvas.width =
|
|
4024
|
-
canvas.height =
|
|
4006
|
+
const y = top* window.screen.width / document.body.clientWidth
|
|
4007
|
+
canvas.width = 1280;
|
|
4008
|
+
canvas.height = 720;
|
|
4009
|
+
cobj.fillStyle = 'rgb(255 255 255)'
|
|
4010
|
+
cobj.fillRect(0,0,1280,720)
|
|
4025
4011
|
// const height1 = document.getElementById("whiteboardDIV").getBoundingClientRect().height* window.screen.height / (document.body.clientHeight + 280)
|
|
4026
4012
|
|
|
4027
4013
|
videoMedia.addEventListener('play', (event) =>{
|
|
4028
4014
|
var $this = this; //cache
|
|
4029
|
-
console.log('addEventListener',!$this.paused,!$this.ended)
|
|
4015
|
+
console.log('addEventListener',!$this.paused,!$this.ended,x, y, width, height)
|
|
4030
4016
|
loop()
|
|
4031
4017
|
function loop() {
|
|
4032
4018
|
if (!$this.paused && !$this.ended) {
|
|
4033
4019
|
|
|
4034
4020
|
// console.log('addEventListener',x,y,width,height1,height)
|
|
4035
|
-
|
|
4021
|
+
|
|
4022
|
+
cobj.drawImage(videoMedia, x, y, width, height, 0, 0,1280, 720);
|
|
4036
4023
|
setTimeout(loop, 1000 / 10); // drawing at 30fps
|
|
4037
4024
|
}
|
|
4038
4025
|
}
|
|
@@ -4044,16 +4031,16 @@ class Video extends Component {
|
|
|
4044
4031
|
publish_config.degradationType=2
|
|
4045
4032
|
publish_config.sid = document.getElementById('video20').name
|
|
4046
4033
|
publish_config.stream = canvas.captureStream(10)
|
|
4047
|
-
publish_config.video_profile_type=
|
|
4048
|
-
publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
|
|
4034
|
+
publish_config.video_profile_type=1
|
|
4035
|
+
// publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
|
|
4049
4036
|
this.test_controller.ChangeMediaStream(publish_config);
|
|
4050
4037
|
} else {
|
|
4051
4038
|
|
|
4052
4039
|
publish_config.media_type = 1
|
|
4053
4040
|
publish_config.publish_device = 5
|
|
4054
4041
|
publish_config.need_volume_analyser = true
|
|
4055
|
-
publish_config.video_profile_type=
|
|
4056
|
-
publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
|
|
4042
|
+
publish_config.video_profile_type=1
|
|
4043
|
+
// publish_config.video_profile_diy={width:1280, height:720, frameRate:8, bitrate:1500}
|
|
4057
4044
|
publish_config.degradationType=2
|
|
4058
4045
|
publish_config.stream = canvas.captureStream(10)
|
|
4059
4046
|
publish_config.publish_video_id = 'video20'
|
|
@@ -4992,6 +4979,7 @@ class Video extends Component {
|
|
|
4992
4979
|
<Modal title="签字白板" width={600} destroyOnClose={true} closable={false} centered={true} visible={isTranscribing} footer={
|
|
4993
4980
|
[
|
|
4994
4981
|
<div key='okSign'>
|
|
4982
|
+
<Button className="modelButtonCancel" onClick={this.handleCancelSign}>清除</Button>
|
|
4995
4983
|
<Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSign}>确定</Button>
|
|
4996
4984
|
</div>
|
|
4997
4985
|
]
|