react_hsbc_teller 0.3.7 → 0.3.8
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/lib/hsbc.js.LICENSE.txt +21 -0
- package/package.json +2 -1
- package/packages/api/api.js +20 -0
- package/packages/pages/foot/foot.jsx +70 -62
- package/packages/pages/video/video.jsx +230 -43
- package/packages/pages/video/video.less +1 -1
|
@@ -21,6 +21,7 @@ import 'antd/lib/spin/style'
|
|
|
21
21
|
import { Button } from '../../../node_modules/antd/lib/index';
|
|
22
22
|
import CanvasDraw from "react-canvas-draw";
|
|
23
23
|
import { FormattedMessage, injectIntl } from 'react-intl';
|
|
24
|
+
import html2canvas from 'html2canvas';
|
|
24
25
|
const LEAVE_TYPE = {
|
|
25
26
|
TELLER_EXIT: '1', // 坐席退出
|
|
26
27
|
ROOM_DESTROYED: '-1', // 房间异常
|
|
@@ -70,7 +71,13 @@ class Video extends Component {
|
|
|
70
71
|
imRoomId: this.props.imRoomId,
|
|
71
72
|
isPictureInPicture: false,
|
|
72
73
|
clickedFacial: false,
|
|
73
|
-
clickedOcr: false
|
|
74
|
+
clickedOcr: false,
|
|
75
|
+
videoOneName: '',
|
|
76
|
+
videoTwoName: '',
|
|
77
|
+
videoThreeName: '',
|
|
78
|
+
videoFourName: '',
|
|
79
|
+
videoFiveName: '',
|
|
80
|
+
videoSixName: ''
|
|
74
81
|
};
|
|
75
82
|
// eslint-disable-next-line no-undef
|
|
76
83
|
test_controller = '';
|
|
@@ -334,7 +341,7 @@ class Video extends Component {
|
|
|
334
341
|
list.push({
|
|
335
342
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).feedId,
|
|
336
343
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid,
|
|
337
|
-
name:
|
|
344
|
+
name: this.state.videoOneName,
|
|
338
345
|
})
|
|
339
346
|
}
|
|
340
347
|
if (document.getElementById('video2').name) {
|
|
@@ -343,7 +350,7 @@ class Video extends Component {
|
|
|
343
350
|
list.push({
|
|
344
351
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).feedId,
|
|
345
352
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid,
|
|
346
|
-
name:
|
|
353
|
+
name: this.state.videoTwoName
|
|
347
354
|
})
|
|
348
355
|
}
|
|
349
356
|
if (document.getElementById('video3').name) {
|
|
@@ -352,7 +359,7 @@ class Video extends Component {
|
|
|
352
359
|
list.push({
|
|
353
360
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).feedId,
|
|
354
361
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid,
|
|
355
|
-
name:
|
|
362
|
+
name: this.state.videoThreeName
|
|
356
363
|
})
|
|
357
364
|
}
|
|
358
365
|
if (document.getElementById('video4').name) {
|
|
@@ -361,7 +368,7 @@ class Video extends Component {
|
|
|
361
368
|
list.push({
|
|
362
369
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).feedId,
|
|
363
370
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid,
|
|
364
|
-
name:
|
|
371
|
+
name: this.state.videoFourName
|
|
365
372
|
})
|
|
366
373
|
}
|
|
367
374
|
if (document.getElementById('video5').name) {
|
|
@@ -370,7 +377,7 @@ class Video extends Component {
|
|
|
370
377
|
list.push({
|
|
371
378
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).feedId,
|
|
372
379
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid,
|
|
373
|
-
name:
|
|
380
|
+
name: this.state.videoFiveName
|
|
374
381
|
})
|
|
375
382
|
}
|
|
376
383
|
if (document.getElementById('video6').name) {
|
|
@@ -379,7 +386,7 @@ class Video extends Component {
|
|
|
379
386
|
list.push({
|
|
380
387
|
feedId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).feedId,
|
|
381
388
|
customId: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid,
|
|
382
|
-
name:
|
|
389
|
+
name: this.state.videoSixName
|
|
383
390
|
})
|
|
384
391
|
}
|
|
385
392
|
if(list.length > 0) {
|
|
@@ -462,32 +469,56 @@ class Video extends Component {
|
|
|
462
469
|
} else {
|
|
463
470
|
const list = []
|
|
464
471
|
if(document.getElementById('video1').name) {
|
|
465
|
-
list.push(
|
|
472
|
+
list.push({
|
|
473
|
+
name: 'video1',
|
|
474
|
+
title: this.state.videoOneName
|
|
475
|
+
})
|
|
466
476
|
}
|
|
467
477
|
if(document.getElementById('publish_video1').name) {
|
|
468
|
-
list.push(
|
|
478
|
+
list.push({
|
|
479
|
+
name: 'publish_video1',
|
|
480
|
+
title: '坐席'
|
|
481
|
+
})
|
|
469
482
|
}
|
|
470
483
|
if(document.getElementById('video2').name) {
|
|
471
|
-
list.push(
|
|
484
|
+
list.push({
|
|
485
|
+
name: 'video2',
|
|
486
|
+
title: this.state.videoTwoName
|
|
487
|
+
})
|
|
472
488
|
}
|
|
473
489
|
if(document.getElementById('video3').name) {
|
|
474
|
-
list.push(
|
|
490
|
+
list.push({
|
|
491
|
+
name: 'video3',
|
|
492
|
+
title: this.state.videoThreeName
|
|
493
|
+
})
|
|
475
494
|
}
|
|
476
495
|
if(document.getElementById('video4').name) {
|
|
477
|
-
list.push(
|
|
496
|
+
list.push({
|
|
497
|
+
name: 'video4',
|
|
498
|
+
title: this.state.videoFourName
|
|
499
|
+
})
|
|
478
500
|
}
|
|
479
501
|
if(document.getElementById('video5').name) {
|
|
480
|
-
list.push(
|
|
502
|
+
list.push({
|
|
503
|
+
name: 'video5',
|
|
504
|
+
title: this.state.videoFiveName
|
|
505
|
+
})
|
|
481
506
|
}
|
|
482
507
|
if(document.getElementById('video6').name) {
|
|
483
|
-
list.push(
|
|
508
|
+
list.push({
|
|
509
|
+
name: 'video6',
|
|
510
|
+
title: this.state.videoSixName
|
|
511
|
+
})
|
|
484
512
|
}
|
|
485
513
|
if(document.getElementById('video10').name) {
|
|
486
|
-
list.push(
|
|
514
|
+
list.push({
|
|
515
|
+
name: 'video10',
|
|
516
|
+
title: '互动白板'
|
|
517
|
+
})
|
|
487
518
|
}
|
|
488
519
|
console.log(list)
|
|
489
|
-
const width =
|
|
490
|
-
const height =
|
|
520
|
+
const width = 640;
|
|
521
|
+
const height = 360 * list.length;
|
|
491
522
|
const canvas = document.createElement('canvas');
|
|
492
523
|
const cobj = canvas.getContext('2d'); // 获取绘图环境
|
|
493
524
|
canvas.width = width;
|
|
@@ -496,18 +527,65 @@ class Video extends Component {
|
|
|
496
527
|
cobj.clearRect(0, 0, width, height);
|
|
497
528
|
for(let i=0;i<list.length;i++){
|
|
498
529
|
|
|
499
|
-
let videoId = list[i];
|
|
530
|
+
let videoId = list[i].name;
|
|
500
531
|
let videoDiv = document.getElementById(videoId);
|
|
501
532
|
let videoWidth = videoDiv.videoWidth;
|
|
502
533
|
let videoHeight = videoDiv.videoHeight;
|
|
503
|
-
let newVideoWidth =
|
|
504
|
-
let newVideoHeight =
|
|
505
|
-
if (videoHeight *
|
|
506
|
-
newVideoWidth = videoWidth *
|
|
534
|
+
let newVideoWidth = 640;
|
|
535
|
+
let newVideoHeight = 360;
|
|
536
|
+
if (videoHeight * 640 / videoWidth > 360) {
|
|
537
|
+
newVideoWidth = videoWidth * 360 / videoHeight;
|
|
507
538
|
} else {
|
|
508
|
-
newVideoHeight = videoHeight *
|
|
539
|
+
newVideoHeight = videoHeight * 640 / videoWidth;
|
|
509
540
|
}
|
|
510
|
-
|
|
541
|
+
console.log(newVideoWidth,videoHeight)
|
|
542
|
+
|
|
543
|
+
cobj.drawImage(videoDiv, (640 - newVideoWidth)/2, 360 * i, newVideoWidth, newVideoHeight);
|
|
544
|
+
var img = document.getElementById("icon_huatong");
|
|
545
|
+
cobj.drawImage(img, 600, 320, canvas.width, canvas.height);
|
|
546
|
+
cobj.beginPath();
|
|
547
|
+
cobj.strokeStyle = this.props.titleColor;
|
|
548
|
+
cobj.fillStyle = this.props.titleBackground;
|
|
549
|
+
cobj.fillRect(0, 360 * (i + 1) - 60, 300, 60 )
|
|
550
|
+
cobj.closePath();
|
|
551
|
+
cobj.fill();
|
|
552
|
+
cobj.stroke();
|
|
553
|
+
cobj.font = "28px auto";
|
|
554
|
+
cobj.textAlign = 'center';
|
|
555
|
+
cobj.strokeText(list[i].title, 150, 360 * (i + 1) - 20);
|
|
556
|
+
console.log(videoDiv.srcObject, videoDiv.srcObject.getAudioTracks(), videoDiv.srcObject.getAudioTracks()[0])
|
|
557
|
+
// const acc = new AudioContext()
|
|
558
|
+
// // 返回一个多媒体流
|
|
559
|
+
// const mic = acc.createMediaStreamSource(videoDiv.srcObject.getAudioTracks()[0])
|
|
560
|
+
// // creates an AnalyserNode 创建一个分析节点
|
|
561
|
+
// this.analyser = acc.createAnalyser()
|
|
562
|
+
// // fftsize默认值2048,是快速傅立叶变换用于频域分析的值,必须为2的幂,而我们得到的数据通常为其的一半,下面会说道
|
|
563
|
+
// this.analyser.fftSize = 256
|
|
564
|
+
// // 调用绘图函数
|
|
565
|
+
// mic.connect(this.analyser)
|
|
566
|
+
// let dataArray = new Uint8Array(this.analyser);
|
|
567
|
+
// this.analyser.getByteFrequencyData(dataArray);
|
|
568
|
+
// let step = Math.round(dataArray.length / 60); //采样步长
|
|
569
|
+
// 以画布左上角为坐标原点
|
|
570
|
+
// let drawArea = {
|
|
571
|
+
// x1: 28/50 * canvas.width, // 波动范围右下角的点坐标
|
|
572
|
+
// y1: 25/50 * canvas.height,
|
|
573
|
+
// x2: 22/50 * canvas.width, // 波动范围左上角的点坐标
|
|
574
|
+
// y2: 10/50 * canvas.height,
|
|
575
|
+
// }
|
|
576
|
+
|
|
577
|
+
// for (var j = 0; j < 40; j++) {
|
|
578
|
+
// let energy = (dataArray[step * j] / 256.0) * 80;
|
|
579
|
+
// ctx.beginPath();
|
|
580
|
+
// ctx.fillStyle = "#0AE544";
|
|
581
|
+
// const { x1,y1,x2,y2} = drawArea
|
|
582
|
+
// let width = x1-x2;
|
|
583
|
+
// let height = (energy>20?(energy-20):0) * (y1 - y2 ) / 70
|
|
584
|
+
// let startX = x2 // 绘制起始点x
|
|
585
|
+
// let startY = y1 - height // 绘制起始点y
|
|
586
|
+
// cobj.fillRect(startX, startY, width, height )
|
|
587
|
+
// }
|
|
588
|
+
// cobj.drawImage(videoDiv, 320 * i, (480 - newVideoHeight)/2, 320, newVideoHeight);
|
|
511
589
|
}
|
|
512
590
|
}, 100);
|
|
513
591
|
const captureStream = canvas.captureStream();
|
|
@@ -765,7 +843,7 @@ class Video extends Component {
|
|
|
765
843
|
// 订阅媒体流成功
|
|
766
844
|
this.test_controller.OnSubscribeSucc = (feed, sid) => {
|
|
767
845
|
console.log('订阅媒体流成功', feed, sid);
|
|
768
|
-
|
|
846
|
+
this.appGetUsername(sid)
|
|
769
847
|
};
|
|
770
848
|
// 订阅媒体流失败
|
|
771
849
|
this.test_controller.OnSubscribeFailed = (
|
|
@@ -796,7 +874,8 @@ class Video extends Component {
|
|
|
796
874
|
let newArray = [...array];
|
|
797
875
|
newArray.push({
|
|
798
876
|
feedId: feed.feedId,
|
|
799
|
-
uid: feed.uid
|
|
877
|
+
uid: feed.uid,
|
|
878
|
+
tag: feed.tag
|
|
800
879
|
});
|
|
801
880
|
console.log(array, newArray, this.state.roomCustomerList);
|
|
802
881
|
this.setState({
|
|
@@ -825,10 +904,52 @@ class Video extends Component {
|
|
|
825
904
|
// 取消订阅媒体流成功
|
|
826
905
|
this.test_controller.OnUnSubscribeSucc = (sid) => {
|
|
827
906
|
console.log('取消订阅媒体流成功', sid)
|
|
907
|
+
if(!document.getElementById("video1").name) {
|
|
908
|
+
this.setState({
|
|
909
|
+
videoOneName: ''
|
|
910
|
+
})
|
|
911
|
+
}
|
|
912
|
+
if(!document.getElementById("video2").name) {
|
|
913
|
+
this.setState({
|
|
914
|
+
videoTwoName: ''
|
|
915
|
+
})
|
|
916
|
+
}
|
|
917
|
+
if(!document.getElementById("video3").name) {
|
|
918
|
+
this.setState({
|
|
919
|
+
videoThreeName: ''
|
|
920
|
+
})
|
|
921
|
+
}
|
|
922
|
+
if(!document.getElementById("video4").name) {
|
|
923
|
+
this.setState({
|
|
924
|
+
videoFourName: ''
|
|
925
|
+
})
|
|
926
|
+
}
|
|
927
|
+
if(!document.getElementById("video5").name) {
|
|
928
|
+
this.setState({
|
|
929
|
+
videoFiveName: ''
|
|
930
|
+
})
|
|
931
|
+
}
|
|
932
|
+
if(!document.getElementById("video6").name) {
|
|
933
|
+
this.setState({
|
|
934
|
+
videoSixName: ''
|
|
935
|
+
})
|
|
936
|
+
}
|
|
828
937
|
};
|
|
829
938
|
// 推送“取消发布”给与会者
|
|
830
939
|
this.test_controller.OnUnPublish = (feed) => {
|
|
831
940
|
console.log('取消发布者', feed)
|
|
941
|
+
for(let i=0;i<this.state.roomCustomerList.length;i++) {
|
|
942
|
+
if(this.state.roomCustomerList[i].uid == feed.uid) {
|
|
943
|
+
this.state.roomCustomerList.splice(i, 1)
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
if(this.state.roomCustomerList.length == 0) {
|
|
948
|
+
this.test_controller.ChangeStreamSize(document.getElementById('publish_video1').name, 3)
|
|
949
|
+
this.setState({
|
|
950
|
+
isCustomer: false
|
|
951
|
+
})
|
|
952
|
+
}
|
|
832
953
|
};
|
|
833
954
|
// 推送“取消订阅”给与会者 OnUnSubscribe(unsubscriber,feed)
|
|
834
955
|
this.test_controller.OnUnSubscribe = (unsubscriber, feed) => {
|
|
@@ -1074,6 +1195,7 @@ class Video extends Component {
|
|
|
1074
1195
|
// ctx.fillRect(0, 0, canvas.width, canvas.height, )
|
|
1075
1196
|
let dataArray = new Uint8Array(analyser.frequencyBinCount);
|
|
1076
1197
|
analyser.getByteFrequencyData(dataArray);
|
|
1198
|
+
// console.log('wwww', dataArray.length, document.getElementById('publish_video1').srcObject)
|
|
1077
1199
|
let step = Math.round(dataArray.length / 60); //采样步长
|
|
1078
1200
|
var img = document.getElementById("icon_huatong");
|
|
1079
1201
|
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
|
|
@@ -1684,6 +1806,64 @@ class Video extends Component {
|
|
|
1684
1806
|
imRoomId: props.imRoomId
|
|
1685
1807
|
});
|
|
1686
1808
|
}
|
|
1809
|
+
appGetUsername = async (sid) => {
|
|
1810
|
+
console.log(sid)
|
|
1811
|
+
let userId = ''
|
|
1812
|
+
if(document.getElementById('video1').name == sid){
|
|
1813
|
+
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).uid
|
|
1814
|
+
}
|
|
1815
|
+
if(document.getElementById('video2').name == sid){
|
|
1816
|
+
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).uid
|
|
1817
|
+
}if(document.getElementById('video3').name == sid){
|
|
1818
|
+
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).uid
|
|
1819
|
+
}if(document.getElementById('video4').name == sid){
|
|
1820
|
+
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).uid
|
|
1821
|
+
}if(document.getElementById('video5').name == sid){
|
|
1822
|
+
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).uid
|
|
1823
|
+
}if(document.getElementById('video6').name == sid){
|
|
1824
|
+
userId = this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).uid
|
|
1825
|
+
}
|
|
1826
|
+
try {
|
|
1827
|
+
let result = await API.appGetUsername({
|
|
1828
|
+
userId: userId
|
|
1829
|
+
});
|
|
1830
|
+
console.log(result)
|
|
1831
|
+
if (result.code == 200) {
|
|
1832
|
+
let data = result.data.userInfo ? result.data.userInfo.userName ? result.data.userInfo.userName : '' : ''
|
|
1833
|
+
if(document.getElementById('video1').name == sid){
|
|
1834
|
+
|
|
1835
|
+
this.setState({
|
|
1836
|
+
videoOneName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' : data ? data : '客户1'
|
|
1837
|
+
})
|
|
1838
|
+
}
|
|
1839
|
+
if(document.getElementById('video2').name == sid){
|
|
1840
|
+
this.setState({
|
|
1841
|
+
videoTwoName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId2").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data? data : '客户2'
|
|
1842
|
+
})
|
|
1843
|
+
}if(document.getElementById('video3').name == sid){
|
|
1844
|
+
this.setState({
|
|
1845
|
+
videoThreeName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId3").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data : '客户3'
|
|
1846
|
+
})
|
|
1847
|
+
}if(document.getElementById('video4').name == sid){
|
|
1848
|
+
this.setState({
|
|
1849
|
+
videoFourName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId4").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data : '客户4'
|
|
1850
|
+
})
|
|
1851
|
+
}if(document.getElementById('video5').name == sid){
|
|
1852
|
+
this.setState({
|
|
1853
|
+
videoFiveName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId5").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data? data : '客户5'
|
|
1854
|
+
})
|
|
1855
|
+
}if(document.getElementById('video6').name == sid){
|
|
1856
|
+
this.setState({
|
|
1857
|
+
videoSixName: this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId6").innerText).tag == 'VIDEO_SOURCE_SCREEN' ? '共享屏幕' :data ? data: '客户6'
|
|
1858
|
+
})
|
|
1859
|
+
}
|
|
1860
|
+
} else {
|
|
1861
|
+
message.success('查询失败')
|
|
1862
|
+
}
|
|
1863
|
+
} catch (err) {
|
|
1864
|
+
|
|
1865
|
+
}
|
|
1866
|
+
}
|
|
1687
1867
|
queryStaff = async () => {
|
|
1688
1868
|
try {
|
|
1689
1869
|
let result = await API.getUsername({
|
|
@@ -1827,7 +2007,7 @@ class Video extends Component {
|
|
|
1827
2007
|
<div
|
|
1828
2008
|
className={`itemed ${this.state.isBigVideo == 'video1' ? 'item1' : ""}`}
|
|
1829
2009
|
// className="itemed item1"
|
|
1830
|
-
style={{ position: "relative",'margin-right': '5px'
|
|
2010
|
+
style={{ position: "relative",'margin-right': '5px'}}
|
|
1831
2011
|
onClick={this.enlargeClick.bind(this, 'isLangVideo1')}
|
|
1832
2012
|
>
|
|
1833
2013
|
{
|
|
@@ -1839,6 +2019,7 @@ class Video extends Component {
|
|
|
1839
2019
|
}
|
|
1840
2020
|
<div className="video1Div" style={{ display: (!this.state.customAudioed) ? '' : 'none', }}>
|
|
1841
2021
|
<video
|
|
2022
|
+
style={{display: (this.state.isBigVideo == 'video1' && this.state.isSelect == 'noVideo') ? 'none' : '' }}
|
|
1842
2023
|
id="video1"
|
|
1843
2024
|
autoPlay
|
|
1844
2025
|
muted={true}
|
|
@@ -1846,7 +2027,7 @@ class Video extends Component {
|
|
|
1846
2027
|
/>
|
|
1847
2028
|
<audio id="audio1" autoPlay />
|
|
1848
2029
|
<label style={{ display: 'none' }} id="feedId1" type="text" />
|
|
1849
|
-
<div style={{ display: (this.state.
|
|
2030
|
+
<div style={{ display: (this.state.videoOneName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle ${this.state.isBigVideo == 'video1' ? 'titleBig' : "titleSamlle"}`}>{this.state.videoOneName}</div>
|
|
1850
2031
|
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
|
|
1851
2032
|
</div>
|
|
1852
2033
|
</div>
|
|
@@ -1877,22 +2058,22 @@ class Video extends Component {
|
|
|
1877
2058
|
</span>
|
|
1878
2059
|
} */}
|
|
1879
2060
|
<video
|
|
1880
|
-
style={{ display: (!this.state.audioed && !this.state.isSuspend) ? '' : 'none', }}
|
|
2061
|
+
style={{ display: (!this.state.audioed && !this.state.isSuspend) ? ((this.state.isBigVideo == 'publish_video1' && this.state.isSelect == 'noVideo') ? 'none' : '') : 'none', }}
|
|
1881
2062
|
id="publish_video1"
|
|
1882
2063
|
className={`publishVideoClass ${this.state.isCustomer ? '' : "videoFit"}`}
|
|
1883
2064
|
onClick={this.enlargeClick.bind(this, 'isLangVideo2')}
|
|
1884
2065
|
autoPlay
|
|
1885
2066
|
muted={true}
|
|
1886
2067
|
/>
|
|
1887
|
-
<audio id="
|
|
2068
|
+
{/* <audio id="publish_audio1" autoPlay /> */}
|
|
1888
2069
|
<label style={{ display: 'none' }} id="publish_streamId1" type="text" />
|
|
1889
|
-
<div style={{ display: (this.state.isCustomer) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}} className={`tellerTitle ${this.state.isBigVideo == 'publish_video1' ? 'titleBig' : "titleSamlle"}`}>坐席</div>
|
|
2070
|
+
<div id="publish_video_div" style={{ display: (this.state.isCustomer) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily}} className={`tellerTitle ${this.state.isBigVideo == 'publish_video1' ? 'titleBig' : "titleSamlle"}`}>坐席</div>
|
|
1890
2071
|
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
|
|
1891
2072
|
</div>
|
|
1892
2073
|
|
|
1893
2074
|
</div>
|
|
1894
|
-
<div className={`itemed ${this.state.isBigVideo == 'video2' ? 'item1' : ""}`} style={{'margin-top': '5px'
|
|
1895
|
-
<video
|
|
2075
|
+
<div className={`itemed ${this.state.isBigVideo == 'video2' ? 'item1' : ""}`} style={{'margin-top': '5px'}} onClick={this.enlargeClick.bind(this, 'isLangVideo2')}>
|
|
2076
|
+
<video style={{display: (this.state.isBigVideo == 'video2' && this.state.isSelect == 'noVideo') ? 'none' : '' }}
|
|
1896
2077
|
id="video2"
|
|
1897
2078
|
autoPlay
|
|
1898
2079
|
muted={true}
|
|
@@ -1900,13 +2081,14 @@ class Video extends Component {
|
|
|
1900
2081
|
/>
|
|
1901
2082
|
<audio id="audio2" autoPlay />
|
|
1902
2083
|
<label style={{ display: 'none' }} id="feedId2" type="text" />
|
|
1903
|
-
|
|
2084
|
+
<div style={{ display: (this.state.videoTwoName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle ${this.state.isBigVideo == 'video2' ? 'titleBig' : "titleSamlle"}`}>{this.state.videoTwoName}</div>
|
|
1904
2085
|
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView2" width="40" height="70"></canvas>
|
|
1905
2086
|
</div>
|
|
1906
2087
|
<div className={`itemed ${this.state.isBigVideo == 'video3' ? 'item1' : ""}`}
|
|
1907
|
-
style={{'margin-top': '5px'
|
|
2088
|
+
style={{'margin-top': '5px' }}
|
|
1908
2089
|
onClick={this.enlargeClick.bind(this, 'isLangVideo3')}>
|
|
1909
2090
|
<video
|
|
2091
|
+
style={{ display: (this.state.isBigVideo == 'video3' && this.state.isSelect == 'noVideo') ? 'none' : '' }}
|
|
1910
2092
|
id="video3"
|
|
1911
2093
|
autoPlay
|
|
1912
2094
|
muted={true}
|
|
@@ -1914,13 +2096,14 @@ class Video extends Component {
|
|
|
1914
2096
|
/>
|
|
1915
2097
|
<audio id="audio3" autoPlay />
|
|
1916
2098
|
<label style={{ display: 'none' }} id="feedId3" type="text" />
|
|
1917
|
-
|
|
2099
|
+
<div style={{ display: (this.state.videoThreeName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle ${this.state.isBigVideo == 'video3' ? 'titleBig' : "titleSamlle"}`}>{this.state.videoThreeName}</div>
|
|
1918
2100
|
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
|
|
1919
2101
|
</div>
|
|
1920
2102
|
<div className={`itemed ${this.state.isBigVideo == 'video4' ? 'item1' : ""}`}
|
|
1921
|
-
style={{'margin-right': '5px'
|
|
2103
|
+
style={{'margin-right': '5px'}}
|
|
1922
2104
|
onClick={this.enlargeClick.bind(this, 'isLangVideo4')}>
|
|
1923
2105
|
<video
|
|
2106
|
+
style={{display: (this.state.isBigVideo == 'video4' && this.state.isSelect == 'noVideo') ? 'none' : '' }}
|
|
1924
2107
|
id="video4"
|
|
1925
2108
|
autoPlay
|
|
1926
2109
|
muted={true}
|
|
@@ -1928,13 +2111,14 @@ class Video extends Component {
|
|
|
1928
2111
|
/>
|
|
1929
2112
|
<audio id="audio4" autoPlay />
|
|
1930
2113
|
<label style={{ display: 'none' }} id="feedId4" type="text" />
|
|
1931
|
-
|
|
2114
|
+
<div style={{ display: (this.state.videoFourName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle ${this.state.isBigVideo == 'video4' ? 'titleBig' : "titleSamlle"}`}>{this.state.videoFourName}</div>
|
|
1932
2115
|
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
|
|
1933
2116
|
</div>
|
|
1934
2117
|
<div className={`itemed ${this.state.isBigVideo == 'video5' ? 'item1' : ""}`}
|
|
1935
|
-
style={{'margin-top': '5px'
|
|
2118
|
+
style={{'margin-top': '5px' }}
|
|
1936
2119
|
onClick={this.enlargeClick.bind(this, 'isLangVideo5')}>
|
|
1937
2120
|
<video
|
|
2121
|
+
style={{display: (this.state.isBigVideo == 'video5' && this.state.isSelect == 'noVideo') ? 'none' : '' }}
|
|
1938
2122
|
id="video5"
|
|
1939
2123
|
autoPlay
|
|
1940
2124
|
muted={true}
|
|
@@ -1942,11 +2126,12 @@ class Video extends Component {
|
|
|
1942
2126
|
/>
|
|
1943
2127
|
<audio id="audio5" autoPlay />
|
|
1944
2128
|
<label style={{ display: 'none' }} id="feedId5" type="text" />
|
|
1945
|
-
|
|
2129
|
+
<div style={{ display: (this.state.videoFiveName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle ${this.state.isBigVideo == 'video5' ? 'titleBig' : "titleSamlle"}`}>{this.state.videoFiveName}</div>
|
|
1946
2130
|
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
|
|
1947
2131
|
</div>
|
|
1948
|
-
<div onClick={this.enlargeClick.bind(this, 'isLangVideo6')} style={{'margin-top': '5px'
|
|
2132
|
+
<div onClick={this.enlargeClick.bind(this, 'isLangVideo6')} style={{'margin-top': '5px'}} className={`${this.state.isBigVideo == 'video6' ? 'item1' : "itemed"}`}>
|
|
1949
2133
|
<video
|
|
2134
|
+
style={{display: (this.state.isBigVideo == 'video6' && this.state.isSelect == 'noVideo') ? 'none' : '' }}
|
|
1950
2135
|
id="video6"
|
|
1951
2136
|
autoPlay
|
|
1952
2137
|
muted={true}
|
|
@@ -1954,7 +2139,7 @@ class Video extends Component {
|
|
|
1954
2139
|
/>
|
|
1955
2140
|
<audio id="audio6" autoPlay />
|
|
1956
2141
|
<label style={{ display: 'none' }} id="feedId6" type="text" />
|
|
1957
|
-
|
|
2142
|
+
<div style={{ display: (this.state.videoSixName) ? '' : 'none', background: this.props.titleBackground,color: this.props.titleColor,'font-size': this.props.fontSize + 'px','font-family' : this.props.fontFamily }} className={`customerTitle ${this.state.isBigVideo == 'video6' ? 'titleBig' : "titleSamlle"}`}>{this.state.videoSixName}</div>
|
|
1958
2143
|
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView6" width="40" height="70"></canvas>
|
|
1959
2144
|
|
|
1960
2145
|
</div>
|
|
@@ -1969,6 +2154,7 @@ class Video extends Component {
|
|
|
1969
2154
|
customerList={this.state.customerList}
|
|
1970
2155
|
clickedOcr={this.state.clickedOcr}
|
|
1971
2156
|
clickedFacial={this.state.clickedFacial}
|
|
2157
|
+
{...this.props}
|
|
1972
2158
|
suspend={this.suspend}
|
|
1973
2159
|
facialHandleVisibleChange={this.facialHandleVisibleChange}
|
|
1974
2160
|
ocrHandleVisibleChange={this.ocrHandleVisibleChange}
|
|
@@ -2055,6 +2241,7 @@ Video.defaultProps = {
|
|
|
2055
2241
|
titleColor: '#DB0011',
|
|
2056
2242
|
microphoneSize: '50',
|
|
2057
2243
|
fontSize: '14',
|
|
2058
|
-
fontFamily: 'auto'
|
|
2244
|
+
fontFamily: 'auto',
|
|
2245
|
+
defaultData: ['SHARE', 'FRIES', 'OCR', 'INVITE', 'PIP']
|
|
2059
2246
|
}
|
|
2060
2247
|
export default Video
|