react_hsbc_teller 2.0.0 → 2.0.2
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 +92 -75
package/package.json
CHANGED
|
@@ -295,7 +295,7 @@ class Video extends Component {
|
|
|
295
295
|
saveLog = (val) => {
|
|
296
296
|
axios({
|
|
297
297
|
method: 'get',
|
|
298
|
-
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=2.0.
|
|
298
|
+
baseURL: this.props.logUrl + '&message=' + encodeURIComponent(val) + '&react_hsbc_teller=2.0.2&logTime=' + Date.now() + '&mtoken=' + encodeURIComponent(this.state.rtoken) + '&roomId=' + encodeURIComponent(this.state.channelId) + '&sessionId=' + encodeURIComponent(this.state.sessionId) + '&appointmentID=' + this.props.businessNumber,
|
|
299
299
|
|
|
300
300
|
}).then(res => {
|
|
301
301
|
|
|
@@ -324,19 +324,23 @@ class Video extends Component {
|
|
|
324
324
|
console.log(result);
|
|
325
325
|
this.state.imRoomId = result.imRoomId,
|
|
326
326
|
this.state.sessionId = result.sessionId;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
327
|
+
|
|
328
|
+
this.state.cameraList.forEach((el, i) => {
|
|
329
|
+
let publish_config = {}
|
|
330
|
+
publish_config.media_type = i==0? 1:3
|
|
331
|
+
publish_config.publish_device = 1
|
|
332
|
+
publish_config.videoSource = el.actionid
|
|
333
|
+
publish_config.audioSource = this.state.microphoneValue
|
|
334
|
+
publish_config.need_volume_analyser = true
|
|
335
|
+
// publish_config.video_profile_type = 3
|
|
336
|
+
publish_config.video_profile_type = 100
|
|
337
|
+
publish_config.video_profile_diy = { width: 640, height: 360, frameRate: 15, bitrate: 400 }
|
|
338
|
+
publish_config.publish_video_id = 'publish_video' + (i+1)
|
|
339
|
+
publish_config.publish_streamId_id = 'publish_streamId' + (i+1)
|
|
340
|
+
publish_config.publish_tag = 'tag' + (i+1)
|
|
341
|
+
this.test_controller.Publish(publish_config)
|
|
342
|
+
})
|
|
343
|
+
|
|
340
344
|
// eslint-disable-next-line no-undef
|
|
341
345
|
setTimeout(() => {
|
|
342
346
|
if (this.state.imStatus && !this.state.imJoinRoom) {
|
|
@@ -486,6 +490,16 @@ class Video extends Component {
|
|
|
486
490
|
publish_video_id: 'publish_video1',
|
|
487
491
|
publish_streamId_id: 'publish_streamId1',
|
|
488
492
|
publish_tag: 'tag1'
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
publish_video_id: 'publish_video2',
|
|
496
|
+
publish_streamId_id: 'publish_streamId2',
|
|
497
|
+
publish_tag: 'tag2'
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
publish_video_id: 'publish_video3',
|
|
501
|
+
publish_streamId_id: 'publish_streamId3',
|
|
502
|
+
publish_tag: 'tag3'
|
|
489
503
|
}
|
|
490
504
|
];
|
|
491
505
|
config_param.initSubscribe = [
|
|
@@ -578,82 +592,47 @@ class Video extends Component {
|
|
|
578
592
|
height: 175
|
|
579
593
|
},
|
|
580
594
|
{
|
|
581
|
-
tag: '
|
|
595
|
+
tag: 'tag2',
|
|
582
596
|
xPosition: 213,
|
|
583
597
|
yPosition: 0,
|
|
584
598
|
width: 213,
|
|
585
599
|
height: 175
|
|
586
600
|
},
|
|
587
601
|
{
|
|
588
|
-
tag: '
|
|
602
|
+
tag: 'tag3',
|
|
589
603
|
xPosition: 426,
|
|
590
604
|
yPosition: 0,
|
|
591
605
|
width: 213,
|
|
592
606
|
height: 175
|
|
593
607
|
},
|
|
594
608
|
{
|
|
595
|
-
tag: '
|
|
609
|
+
tag: 'customer1',
|
|
596
610
|
xPosition: 639,
|
|
597
611
|
yPosition: 0,
|
|
598
612
|
width: 213,
|
|
599
613
|
height: 175
|
|
600
614
|
},
|
|
601
615
|
{
|
|
602
|
-
tag: '
|
|
616
|
+
tag: 'customer2',
|
|
603
617
|
xPosition: 852,
|
|
604
618
|
yPosition: 0,
|
|
605
619
|
width: 213,
|
|
606
620
|
height: 175
|
|
607
621
|
},
|
|
608
622
|
{
|
|
609
|
-
tag: '
|
|
623
|
+
tag: 'customer3',
|
|
610
624
|
xPosition: 1065,
|
|
611
625
|
yPosition: 0,
|
|
612
626
|
width: 213,
|
|
613
627
|
height: 175
|
|
614
628
|
},
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
// {
|
|
623
|
-
// tag: 'customer7',
|
|
624
|
-
// xPosition: 1680,
|
|
625
|
-
// yPosition: 0,
|
|
626
|
-
// width: 240,
|
|
627
|
-
// height: 180
|
|
628
|
-
// },
|
|
629
|
-
// {
|
|
630
|
-
// tag: 'customer8',
|
|
631
|
-
// xPosition: 1680,
|
|
632
|
-
// yPosition: 180,
|
|
633
|
-
// width: 240,
|
|
634
|
-
// height: 180
|
|
635
|
-
// },
|
|
636
|
-
// {
|
|
637
|
-
// tag: 'customer9',
|
|
638
|
-
// xPosition: 1680,
|
|
639
|
-
// yPosition: 360,
|
|
640
|
-
// width: 240,
|
|
641
|
-
// height: 180
|
|
642
|
-
// },
|
|
643
|
-
// {
|
|
644
|
-
// tag: 'customer10',
|
|
645
|
-
// xPosition: 1680,
|
|
646
|
-
// yPosition: 540,
|
|
647
|
-
// width: 240,
|
|
648
|
-
// height: 180
|
|
649
|
-
// },
|
|
650
|
-
// {
|
|
651
|
-
// tag: 'customer11',
|
|
652
|
-
// xPosition: 1680,
|
|
653
|
-
// yPosition: 720,
|
|
654
|
-
// width: 240,
|
|
655
|
-
// height: 180
|
|
656
|
-
// }
|
|
629
|
+
{
|
|
630
|
+
tag: 'customer4',
|
|
631
|
+
xPosition: 1278,
|
|
632
|
+
yPosition: 0,
|
|
633
|
+
width: 213,
|
|
634
|
+
height: 175
|
|
635
|
+
},
|
|
657
636
|
]
|
|
658
637
|
Array.isArray(res) ?
|
|
659
638
|
res.map((item) => {
|
|
@@ -1721,19 +1700,23 @@ class Video extends Component {
|
|
|
1721
1700
|
// 加入房间成功
|
|
1722
1701
|
this.test_controller.OnJoinRoomSucc = () => {
|
|
1723
1702
|
console.log('加入房间成功')
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1703
|
+
|
|
1704
|
+
this.state.cameraList.forEach((el, i) => {
|
|
1705
|
+
let publish_config = {}
|
|
1706
|
+
publish_config.media_type = i==0? 1:3
|
|
1707
|
+
publish_config.publish_device = 1
|
|
1708
|
+
publish_config.videoSource = el.actionid
|
|
1709
|
+
publish_config.audioSource = this.state.microphoneValue
|
|
1710
|
+
publish_config.need_volume_analyser = true
|
|
1711
|
+
// publish_config.video_profile_type = 3
|
|
1712
|
+
publish_config.video_profile_type = 100
|
|
1713
|
+
publish_config.video_profile_diy = { width: 640, height: 360, frameRate: 15, bitrate: 400 }
|
|
1714
|
+
publish_config.publish_video_id = 'publish_video' + (i+1)
|
|
1715
|
+
publish_config.publish_streamId_id = 'publish_streamId' + (i+1)
|
|
1716
|
+
publish_config.publish_tag = 'tag' + (i+1)
|
|
1717
|
+
this.test_controller.Publish(publish_config)
|
|
1718
|
+
})
|
|
1719
|
+
|
|
1737
1720
|
this.roomCallBack(1, '', 0)
|
|
1738
1721
|
this.saveLog('mrtc join room success')
|
|
1739
1722
|
};
|
|
@@ -3013,7 +2996,7 @@ class Video extends Component {
|
|
|
3013
2996
|
}
|
|
3014
2997
|
}
|
|
3015
2998
|
componentWillMount() {
|
|
3016
|
-
console.log('hsbc_teller_sdk', '2.0.
|
|
2999
|
+
console.log('hsbc_teller_sdk', '2.0.2')
|
|
3017
3000
|
let arr = []
|
|
3018
3001
|
for(let i=1;i<=12;i++){
|
|
3019
3002
|
arr.push({
|
|
@@ -5233,6 +5216,40 @@ class Video extends Component {
|
|
|
5233
5216
|
</div>
|
|
5234
5217
|
|
|
5235
5218
|
</div>
|
|
5219
|
+
{
|
|
5220
|
+
this.state.cameraList.map((item, index) => {
|
|
5221
|
+
if (index > 0)
|
|
5222
|
+
return <div
|
|
5223
|
+
className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
|
|
5224
|
+
>
|
|
5225
|
+
<div className="publishVideoDiv">
|
|
5226
|
+
|
|
5227
|
+
<video
|
|
5228
|
+
id={"publish_video" + (index+1)}
|
|
5229
|
+
className={`publishVideoClass`}
|
|
5230
|
+
autoPlay
|
|
5231
|
+
muted={true}
|
|
5232
|
+
disablePictureInPicture
|
|
5233
|
+
/>
|
|
5234
|
+
<label style={{ display: 'none' }} id={"publish_streamId"+ (index+1)} type="text" />
|
|
5235
|
+
|
|
5236
|
+
<div id="publish_video_div" className={`tellerTitle titleSamlle`}>
|
|
5237
|
+
<div>
|
|
5238
|
+
{
|
|
5239
|
+
this.state.voiceStatue && <img
|
|
5240
|
+
alt=""
|
|
5241
|
+
src={require("../../assets/img/jingyin.png").default}
|
|
5242
|
+
className="voiceClass"
|
|
5243
|
+
/>
|
|
5244
|
+
}
|
|
5245
|
+
<canvas style={{ display: (!this.state.voiceStatue) ? '' : 'none', width: '25px', height: '25px', marginTop: '4px' }} className="canvasClass" id={"publish_volumeView"+ (index+1)} width="40" height="70"></canvas>
|
|
5246
|
+
</div>
|
|
5247
|
+
<div className='titleName' style={{ color: this.props.titleColor, fontSize: this.props.fontSize + 'px', fontFamily: this.props.fontFamily }}>{this.state.titleNameRm}</div>
|
|
5248
|
+
</div>
|
|
5249
|
+
</div>
|
|
5250
|
+
</div>
|
|
5251
|
+
})
|
|
5252
|
+
}
|
|
5236
5253
|
{/* <div className={`itemed ${this.state.isVideoList? 'videoMinutuListClass': 'videoMinutuClass'}`}
|
|
5237
5254
|
style={{ position: "relative", display: (this.state.videoList[0].videoName) ? '' : 'none' }}
|
|
5238
5255
|
>
|