react_hsbc_teller 0.3.2 → 0.3.6
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/package.json
CHANGED
|
Binary file
|
|
@@ -3,10 +3,6 @@ import './foot.less'
|
|
|
3
3
|
import Popover from "antd/lib/popover";
|
|
4
4
|
import 'antd/lib/popover/style'
|
|
5
5
|
export default class foot extends Component {
|
|
6
|
-
state = {
|
|
7
|
-
clicked: false,
|
|
8
|
-
clickedOcr: false
|
|
9
|
-
}
|
|
10
6
|
voice = () => {
|
|
11
7
|
this.props.voice()
|
|
12
8
|
}
|
|
@@ -26,15 +22,9 @@ export default class foot extends Component {
|
|
|
26
22
|
this.props.endSession()
|
|
27
23
|
}
|
|
28
24
|
facialRecognition=()=>{
|
|
29
|
-
this.setState({
|
|
30
|
-
clicked: true
|
|
31
|
-
})
|
|
32
25
|
this.props.facialRecognition()
|
|
33
26
|
}
|
|
34
27
|
ocrClick=()=>{
|
|
35
|
-
this.setState({
|
|
36
|
-
clickedOcr: true
|
|
37
|
-
})
|
|
38
28
|
this.props.ocrClick()
|
|
39
29
|
}
|
|
40
30
|
pictureInPicture=()=>{
|
|
@@ -44,17 +34,21 @@ export default class foot extends Component {
|
|
|
44
34
|
this.props.invitationClick()
|
|
45
35
|
}
|
|
46
36
|
customerFaceClick=(item)=>{
|
|
47
|
-
this.setState({
|
|
48
|
-
clicked: false,
|
|
49
|
-
clickedOcr: false
|
|
50
|
-
})
|
|
51
37
|
this.props.customerFaceClick(item)
|
|
52
38
|
}
|
|
53
39
|
switchExternal=()=>{
|
|
54
40
|
this.props.switchExternal()
|
|
55
41
|
}
|
|
42
|
+
facialHandleVisibleChange = visible => {
|
|
43
|
+
console.log(visible)
|
|
44
|
+
this.props.facialHandleVisibleChange(visible)
|
|
45
|
+
};
|
|
46
|
+
ocrHandleVisibleChange = visible => {
|
|
47
|
+
console.log(visible)
|
|
48
|
+
this.props.ocrHandleVisibleChange(visible)
|
|
49
|
+
};
|
|
56
50
|
render() {
|
|
57
|
-
const {isTranscribing,img,cameraImg,screenName,suspendName,customerList} = this.props
|
|
51
|
+
const {clickedOcr,clickedFacial,isTranscribing,img,cameraImg,screenName,suspendName,customerList} = this.props
|
|
58
52
|
const content = (
|
|
59
53
|
<div>
|
|
60
54
|
{customerList.map((item)=>{
|
|
@@ -111,7 +105,7 @@ export default class foot extends Component {
|
|
|
111
105
|
{suspendName}
|
|
112
106
|
</div>
|
|
113
107
|
</div> */}
|
|
114
|
-
<Popover content={content} trigger="click" visible={this.
|
|
108
|
+
<Popover content={content} trigger="click" visible={clickedFacial} onVisibleChange={this.facialHandleVisibleChange}>
|
|
115
109
|
<div className="one" onClick={this.facialRecognition.bind(this)}>
|
|
116
110
|
<img className="imgClass" src={require("../../assets/img/Face_recognition.png").default} alt="" />
|
|
117
111
|
<div className="text">
|
|
@@ -126,7 +120,7 @@ export default class foot extends Component {
|
|
|
126
120
|
邀请
|
|
127
121
|
</div>
|
|
128
122
|
</div>
|
|
129
|
-
<Popover content={content} trigger="click" visible={this.
|
|
123
|
+
<Popover content={content} trigger="click" visible={clickedOcr} onVisibleChange={this.ocrHandleVisibleChange}>
|
|
130
124
|
<div className="one" onClick={this.ocrClick.bind(this)}>
|
|
131
125
|
<img className="imgClass" src={require("../../assets/img/icon_ocr.png").default} alt="" />
|
|
132
126
|
<div className="text">
|
|
@@ -69,6 +69,8 @@ class Video extends Component {
|
|
|
69
69
|
sessionId: this.props.sessionId,
|
|
70
70
|
imRoomId: this.props.imRoomId,
|
|
71
71
|
isPictureInPicture: false,
|
|
72
|
+
clickedFacial: false,
|
|
73
|
+
clickedOcr: false
|
|
72
74
|
};
|
|
73
75
|
// eslint-disable-next-line no-undef
|
|
74
76
|
test_controller = '';
|
|
@@ -156,7 +158,7 @@ class Video extends Component {
|
|
|
156
158
|
config_param.auto_publish_subscribe = 3;
|
|
157
159
|
config_param.media_type = 1;
|
|
158
160
|
config_param.publish_device = 1;
|
|
159
|
-
config_param.video_profile_type = '
|
|
161
|
+
config_param.video_profile_type = '3';
|
|
160
162
|
config_param.need_volume_analyser = true;
|
|
161
163
|
// config_param.audioSource = that.microphone[0].actionid
|
|
162
164
|
// config_param.videoSource = that.checkOne[0]
|
|
@@ -324,7 +326,7 @@ class Video extends Component {
|
|
|
324
326
|
}
|
|
325
327
|
}
|
|
326
328
|
// 获取人员客户列表
|
|
327
|
-
selectCustomer = () => {
|
|
329
|
+
selectCustomer = (val) => {
|
|
328
330
|
const list = []
|
|
329
331
|
if (document.getElementById('video1').name) {
|
|
330
332
|
console.log(this.seeList(this.state.roomCustomerList, 'feedId', document.getElementById("feedId1").innerText))
|
|
@@ -380,24 +382,41 @@ class Video extends Component {
|
|
|
380
382
|
name: '客户6'
|
|
381
383
|
})
|
|
382
384
|
}
|
|
385
|
+
if(list.length > 0) {
|
|
386
|
+
if(val == 'ocr') {
|
|
387
|
+
this.setState({
|
|
388
|
+
clickedOcr: true
|
|
389
|
+
})
|
|
390
|
+
} else if(val == 'facial'){
|
|
391
|
+
this.setState({
|
|
392
|
+
clickedFacial: true
|
|
393
|
+
})
|
|
394
|
+
}
|
|
395
|
+
} else {
|
|
396
|
+
message.success('当前暂无客户')
|
|
397
|
+
}
|
|
383
398
|
this.setState({
|
|
384
399
|
customerList: list
|
|
385
400
|
})
|
|
386
401
|
}
|
|
387
402
|
// 人脸识别
|
|
388
403
|
facialRecognition = () => {
|
|
404
|
+
if (this.isFileSuccuse()) {
|
|
389
405
|
this.setState({
|
|
390
406
|
faceCustomerType: 1,
|
|
391
407
|
titleModal: '人脸识别'
|
|
392
408
|
})
|
|
393
|
-
this.selectCustomer()
|
|
409
|
+
this.selectCustomer('facial')
|
|
410
|
+
}
|
|
394
411
|
};
|
|
395
412
|
ocrClick = () => {
|
|
413
|
+
if (this.isFileSuccuse()) {
|
|
396
414
|
this.setState({
|
|
397
415
|
faceCustomerType: 2,
|
|
398
416
|
titleModal: 'OCR识别'
|
|
399
417
|
})
|
|
400
|
-
this.selectCustomer()
|
|
418
|
+
this.selectCustomer('ocr')
|
|
419
|
+
}
|
|
401
420
|
};
|
|
402
421
|
endSessionValue = () => {
|
|
403
422
|
this.test_controller.LeaveRoom()
|
|
@@ -409,7 +428,7 @@ class Video extends Component {
|
|
|
409
428
|
this.setState({ isBigVideo: 'video1' })
|
|
410
429
|
}
|
|
411
430
|
} else if (val == 'isLangPublishVideo1') {
|
|
412
|
-
if (document.getElementById('publish_video1').name) {
|
|
431
|
+
if (document.getElementById('publish_video1').name && this.state.isCustomer) {
|
|
413
432
|
this.setState({ isBigVideo: 'publish_video1' })
|
|
414
433
|
}
|
|
415
434
|
} else if (val == 'isLangVideo2') {
|
|
@@ -763,6 +782,7 @@ class Video extends Component {
|
|
|
763
782
|
// 推送“新加⼊房间者”给与会者
|
|
764
783
|
this.test_controller.OnNewJoinerIn = (participant) => {
|
|
765
784
|
console.log('新加⼊房间者', participant);
|
|
785
|
+
this.test_controller.ChangeStreamSize(document.getElementById('publish_video1').name, 5)
|
|
766
786
|
this.setState(
|
|
767
787
|
{
|
|
768
788
|
isCustomer: true
|
|
@@ -1040,6 +1060,8 @@ class Video extends Component {
|
|
|
1040
1060
|
return;
|
|
1041
1061
|
}
|
|
1042
1062
|
let canvas = document.getElementById(volumeView);
|
|
1063
|
+
canvas.width = this.props.microphoneSize
|
|
1064
|
+
canvas.height = this.props.microphoneSize
|
|
1043
1065
|
let ctx = canvas.getContext("2d");
|
|
1044
1066
|
|
|
1045
1067
|
let outcanvas = document.createElement("canvas");
|
|
@@ -1048,42 +1070,93 @@ class Video extends Component {
|
|
|
1048
1070
|
ctx.strokeStyle = "#db0011";
|
|
1049
1071
|
ctx.lineWidth = 2;
|
|
1050
1072
|
ctx.clearRect(0, 0, canvas.width, canvas.height); //清理画布
|
|
1073
|
+
// ctx.fillStyle ='rgba(0, 0, 0, 0.2)';
|
|
1074
|
+
// ctx.fillRect(0, 0, canvas.width, canvas.height, )
|
|
1051
1075
|
let dataArray = new Uint8Array(analyser.frequencyBinCount);
|
|
1052
1076
|
analyser.getByteFrequencyData(dataArray);
|
|
1053
1077
|
let step = Math.round(dataArray.length / 60); //采样步长
|
|
1078
|
+
var img = document.getElementById("icon_huatong");
|
|
1079
|
+
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
|
|
1080
|
+
// 以画布左上角为坐标原点
|
|
1081
|
+
let drawArea = {
|
|
1082
|
+
x1: 28/50*canvas.width, // 波动范围右下角的点坐标
|
|
1083
|
+
y1: 25/50*canvas.height,
|
|
1084
|
+
x2: 22/50*canvas.width, // 波动范围左上角的点坐标
|
|
1085
|
+
y2: 10/50*canvas.height,
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1054
1088
|
for (var i = 0; i < 40; i++) {
|
|
1055
1089
|
let energy = (dataArray[step * i] / 256.0) * 80;
|
|
1056
|
-
for (var j = 0; j < energy; j++) {
|
|
1057
|
-
ctx.beginPath();
|
|
1058
|
-
ctx.moveTo(20 * i + 2, 200 + 4 * j);
|
|
1059
|
-
ctx.lineTo(20 * (i + 1) - 2, 200 + 4 * j);
|
|
1060
|
-
ctx.stroke();
|
|
1061
|
-
ctx.beginPath();
|
|
1062
|
-
ctx.moveTo(20 * i + 2, 200 - 4 * j);
|
|
1063
|
-
ctx.lineTo(20 * (i + 1) - 2, 200 - 4 * j);
|
|
1064
|
-
ctx.stroke();
|
|
1065
|
-
}
|
|
1066
1090
|
ctx.beginPath();
|
|
1067
|
-
ctx.
|
|
1068
|
-
|
|
1069
|
-
|
|
1091
|
+
ctx.fillStyle = this.props.voiceColor;
|
|
1092
|
+
const { x1,y1,x2,y2} = drawArea
|
|
1093
|
+
let width = x1-x2;
|
|
1094
|
+
let height = (energy>20?(energy-20):0) * (y1 - y2 ) / 70
|
|
1095
|
+
let startX = x2 // 绘制起始点x
|
|
1096
|
+
let startY = y1 - height // 绘制起始点y
|
|
1097
|
+
ctx.fillRect(startX, startY, width, height )
|
|
1070
1098
|
}
|
|
1071
1099
|
|
|
1072
1100
|
//制造半透明投影
|
|
1073
1101
|
function draw() {
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1102
|
+
ctx.drawImage(outcanvas, 0, 0);
|
|
1103
|
+
ctx.save();
|
|
1104
|
+
ctx.translate(canvas.width / 2, canvas.height / 2);
|
|
1105
|
+
ctx.rotate(Math.PI);
|
|
1106
|
+
ctx.scale(-1, 1);
|
|
1107
|
+
ctx.drawImage(outcanvas, -canvas.width / 2, -canvas.height / 2);
|
|
1108
|
+
ctx.restore();
|
|
1109
|
+
ctx.fillStyle = 'rgba(192,192,192, .0)';
|
|
1110
|
+
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
1083
1111
|
}
|
|
1084
1112
|
|
|
1085
1113
|
draw();
|
|
1086
1114
|
requestAnimationFrame(this.test_controller.OnVolumeAnalyser.bind(this, sid, analyser));
|
|
1115
|
+
// let canvas = document.getElementById(volumeView);
|
|
1116
|
+
// let ctx = canvas.getContext("2d");
|
|
1117
|
+
|
|
1118
|
+
// let outcanvas = document.createElement("canvas");
|
|
1119
|
+
// outcanvas.width = canvas.width;
|
|
1120
|
+
// outcanvas.height = canvas.height;
|
|
1121
|
+
// ctx.strokeStyle = this.props.voiceColor;
|
|
1122
|
+
// ctx.lineWidth = 2;
|
|
1123
|
+
// ctx.clearRect(0, 0, canvas.width, canvas.height); //清理画布
|
|
1124
|
+
// let dataArray = new Uint8Array(analyser.frequencyBinCount);
|
|
1125
|
+
// analyser.getByteFrequencyData(dataArray);
|
|
1126
|
+
// let step = Math.round(dataArray.length / 60); //采样步长
|
|
1127
|
+
// for (var i = 0; i < 40; i++) {
|
|
1128
|
+
// let energy = (dataArray[step * i] / 256.0) * 50;
|
|
1129
|
+
// for (var j = 0; j < energy; j++) {
|
|
1130
|
+
// ctx.beginPath();
|
|
1131
|
+
// ctx.moveTo(20 * i + 2, 200 + 4 * j);
|
|
1132
|
+
// ctx.lineTo(20 * (i + 1) - 2, 200 + 4 * j);
|
|
1133
|
+
// ctx.stroke();
|
|
1134
|
+
// ctx.beginPath();
|
|
1135
|
+
// ctx.moveTo(20 * i + 2, 200 - 4 * j);
|
|
1136
|
+
// ctx.lineTo(20 * (i + 1) - 2, 200 - 4 * j);
|
|
1137
|
+
// ctx.stroke();
|
|
1138
|
+
// }
|
|
1139
|
+
// ctx.beginPath();
|
|
1140
|
+
// ctx.moveTo(20 * i + 2, 200);
|
|
1141
|
+
// ctx.lineTo(20 * (i + 1) - 2, 200);
|
|
1142
|
+
// ctx.stroke();
|
|
1143
|
+
// }
|
|
1144
|
+
|
|
1145
|
+
// //制造半透明投影
|
|
1146
|
+
// function draw() {
|
|
1147
|
+
// ctx.drawImage(outcanvas, 0, 0);
|
|
1148
|
+
// ctx.save();
|
|
1149
|
+
// ctx.translate(canvas.width / 4, canvas.height / 2);
|
|
1150
|
+
// ctx.rotate(Math.PI);
|
|
1151
|
+
// ctx.scale(-1, 1);
|
|
1152
|
+
// ctx.drawImage(outcanvas, -canvas.width / 2, -canvas.height / 2);
|
|
1153
|
+
// ctx.restore();
|
|
1154
|
+
// ctx.fillStyle = 'rgba(192,192,192, .0)';
|
|
1155
|
+
// ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
1156
|
+
// }
|
|
1157
|
+
|
|
1158
|
+
// draw();
|
|
1159
|
+
// requestAnimationFrame(this.test_controller.OnVolumeAnalyser.bind(this, sid, analyser));
|
|
1087
1160
|
}
|
|
1088
1161
|
|
|
1089
1162
|
}
|
|
@@ -1137,7 +1210,7 @@ class Video extends Component {
|
|
|
1137
1210
|
let result = await API.getRoomStatus({
|
|
1138
1211
|
sessionId: data.sessionId
|
|
1139
1212
|
});
|
|
1140
|
-
if (result.code == 200 && result.data.
|
|
1213
|
+
if (result.code == 200 && result.data.roomStatus == 1) {
|
|
1141
1214
|
this.addToScript()
|
|
1142
1215
|
} else {
|
|
1143
1216
|
message.success('当前房间状态异常')
|
|
@@ -1285,11 +1358,8 @@ class Video extends Component {
|
|
|
1285
1358
|
}
|
|
1286
1359
|
};
|
|
1287
1360
|
isFileSuccuse = () => {
|
|
1288
|
-
if (!this.state.sessionId) {
|
|
1289
|
-
|
|
1290
|
-
} else if (this.state.isSuspend) {
|
|
1291
|
-
return false
|
|
1292
|
-
} else if (!this.state.isCustomer) {
|
|
1361
|
+
if (!this.state.sessionId || this.state.isSuspend || !this.state.isCustomer) {
|
|
1362
|
+
message.success(this.props.prohibitPrompt)
|
|
1293
1363
|
return false
|
|
1294
1364
|
} else {
|
|
1295
1365
|
return true
|
|
@@ -1591,6 +1661,8 @@ class Video extends Component {
|
|
|
1591
1661
|
}
|
|
1592
1662
|
console.log(sid)
|
|
1593
1663
|
this.setState({
|
|
1664
|
+
clickedFacial: false,
|
|
1665
|
+
clickedOcr: false,
|
|
1594
1666
|
faceCustomerUid: item.customId,
|
|
1595
1667
|
isModalVisibleFacial: true,
|
|
1596
1668
|
facialImg: this.test_controller.TakePicture(1, undefined, undefined, sid, 'png')
|
|
@@ -1695,6 +1767,20 @@ class Video extends Component {
|
|
|
1695
1767
|
})
|
|
1696
1768
|
}
|
|
1697
1769
|
}
|
|
1770
|
+
facialHandleVisibleChange=(value)=>{
|
|
1771
|
+
if(!value) {
|
|
1772
|
+
this.setState({
|
|
1773
|
+
clickedFacial: false
|
|
1774
|
+
})
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
ocrHandleVisibleChange=(value)=>{
|
|
1778
|
+
if(!value) {
|
|
1779
|
+
this.setState({
|
|
1780
|
+
clickedOcr: false
|
|
1781
|
+
})
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1698
1784
|
render() {
|
|
1699
1785
|
var pdfChildren
|
|
1700
1786
|
if (this.props.children) {
|
|
@@ -1733,14 +1819,14 @@ class Video extends Component {
|
|
|
1733
1819
|
<div
|
|
1734
1820
|
className={`itemed ${this.state.isBigVideo == 'video1' ? 'item1' : ""}`}
|
|
1735
1821
|
// className="itemed item1"
|
|
1736
|
-
style={{ position: "relative" }}
|
|
1822
|
+
style={{ position: "relative",'margin-right': '5px', }}
|
|
1737
1823
|
onClick={this.enlargeClick.bind(this, 'isLangVideo1')}
|
|
1738
1824
|
>
|
|
1739
1825
|
{
|
|
1740
1826
|
this.state.customAudioed && <img
|
|
1741
1827
|
alt=""
|
|
1742
1828
|
src={require("../../assets/img/yingpin.png").default}
|
|
1743
|
-
style={{ width: "100%", height: "100%"
|
|
1829
|
+
style={{ width: "100%", height: "100%",}}
|
|
1744
1830
|
></img>
|
|
1745
1831
|
}
|
|
1746
1832
|
<div className="video1Div" style={{ display: (!this.state.customAudioed) ? '' : 'none', }}>
|
|
@@ -1752,7 +1838,7 @@ class Video extends Component {
|
|
|
1752
1838
|
/>
|
|
1753
1839
|
<audio id="audio1" autoPlay />
|
|
1754
1840
|
<label style={{ display: 'none' }} id="feedId1" type="text" />
|
|
1755
|
-
<div style={{ display: (this.state.isCustomer) ? '' : 'none', }} className='customerTitle'>客户</div>
|
|
1841
|
+
<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='customerTitle'>客户</div>
|
|
1756
1842
|
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView1" width="40" height="70"></canvas>
|
|
1757
1843
|
</div>
|
|
1758
1844
|
</div>
|
|
@@ -1792,12 +1878,12 @@ class Video extends Component {
|
|
|
1792
1878
|
/>
|
|
1793
1879
|
<audio id="audio1" autoPlay />
|
|
1794
1880
|
<label style={{ display: 'none' }} id="publish_streamId1" type="text" />
|
|
1795
|
-
<div style={{ display: (this.state.isCustomer) ? '' : 'none', }} className='tellerTitle'>坐席</div>
|
|
1881
|
+
<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'>坐席</div>
|
|
1796
1882
|
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="publish_volumeView" width="40" height="70"></canvas>
|
|
1797
1883
|
</div>
|
|
1798
1884
|
|
|
1799
1885
|
</div>
|
|
1800
|
-
<div className={`itemed ${this.state.isBigVideo == 'video2' ? 'item1' : ""}`} onClick={this.enlargeClick.bind(this, 'isLangVideo2')}>
|
|
1886
|
+
<div className={`itemed ${this.state.isBigVideo == 'video2' ? 'item1' : ""}`} style={{'margin-top': '5px', }} onClick={this.enlargeClick.bind(this, 'isLangVideo2')}>
|
|
1801
1887
|
<video
|
|
1802
1888
|
id="video2"
|
|
1803
1889
|
autoPlay
|
|
@@ -1810,6 +1896,7 @@ class Video extends Component {
|
|
|
1810
1896
|
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView2" width="40" height="70"></canvas>
|
|
1811
1897
|
</div>
|
|
1812
1898
|
<div className={`itemed ${this.state.isBigVideo == 'video3' ? 'item1' : ""}`}
|
|
1899
|
+
style={{'margin-top': '5px', }}
|
|
1813
1900
|
onClick={this.enlargeClick.bind(this, 'isLangVideo3')}>
|
|
1814
1901
|
<video
|
|
1815
1902
|
id="video3"
|
|
@@ -1823,6 +1910,7 @@ class Video extends Component {
|
|
|
1823
1910
|
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView3" width="40" height="70"></canvas>
|
|
1824
1911
|
</div>
|
|
1825
1912
|
<div className={`itemed ${this.state.isBigVideo == 'video4' ? 'item1' : ""}`}
|
|
1913
|
+
style={{'margin-right': '5px', }}
|
|
1826
1914
|
onClick={this.enlargeClick.bind(this, 'isLangVideo4')}>
|
|
1827
1915
|
<video
|
|
1828
1916
|
id="video4"
|
|
@@ -1836,6 +1924,7 @@ class Video extends Component {
|
|
|
1836
1924
|
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView4" width="40" height="70"></canvas>
|
|
1837
1925
|
</div>
|
|
1838
1926
|
<div className={`itemed ${this.state.isBigVideo == 'video5' ? 'item1' : ""}`}
|
|
1927
|
+
style={{'margin-top': '5px', }}
|
|
1839
1928
|
onClick={this.enlargeClick.bind(this, 'isLangVideo5')}>
|
|
1840
1929
|
<video
|
|
1841
1930
|
id="video5"
|
|
@@ -1848,11 +1937,11 @@ class Video extends Component {
|
|
|
1848
1937
|
{/* <div style={{ display: (this.state.isCustomer) ? '' : 'none', }} className='customerTitle'>客户</div> */}
|
|
1849
1938
|
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClassOne" id="subscribe_volumeView5" width="40" height="70"></canvas>
|
|
1850
1939
|
</div>
|
|
1851
|
-
<div onClick={this.enlargeClick.bind(this, 'isLangVideo6')} className={`${this.state.isBigVideo == 'video6' ? 'item1' : "itemed"}`}>
|
|
1940
|
+
<div onClick={this.enlargeClick.bind(this, 'isLangVideo6')} style={{'margin-top': '5px', }} className={`${this.state.isBigVideo == 'video6' ? 'item1' : "itemed"}`}>
|
|
1852
1941
|
<video
|
|
1853
1942
|
id="video6"
|
|
1854
1943
|
autoPlay
|
|
1855
|
-
muted={true}
|
|
1944
|
+
muted={true}
|
|
1856
1945
|
className="video"
|
|
1857
1946
|
/>
|
|
1858
1947
|
<audio id="audio6" autoPlay />
|
|
@@ -1862,7 +1951,7 @@ class Video extends Component {
|
|
|
1862
1951
|
|
|
1863
1952
|
</div>
|
|
1864
1953
|
</div>
|
|
1865
|
-
|
|
1954
|
+
<img id="icon_huatong" style={{display:'none'}} src={require("../../assets/img/icon_huatong.png").default}></img>
|
|
1866
1955
|
</div>
|
|
1867
1956
|
<Foot
|
|
1868
1957
|
img={this.state.voiceImg}
|
|
@@ -1870,7 +1959,11 @@ class Video extends Component {
|
|
|
1870
1959
|
suspendName={this.state.suspendName}
|
|
1871
1960
|
cameraImg={this.state.cameraImg}
|
|
1872
1961
|
customerList={this.state.customerList}
|
|
1962
|
+
clickedOcr={this.state.clickedOcr}
|
|
1963
|
+
clickedFacial={this.state.clickedFacial}
|
|
1873
1964
|
suspend={this.suspend}
|
|
1965
|
+
facialHandleVisibleChange={this.facialHandleVisibleChange}
|
|
1966
|
+
ocrHandleVisibleChange={this.ocrHandleVisibleChange}
|
|
1874
1967
|
voice={this.voice}
|
|
1875
1968
|
cameraClick={this.cameraClick}
|
|
1876
1969
|
sharedScreen={this.sharedScreen}
|
|
@@ -1948,5 +2041,12 @@ Video.defaultProps = {
|
|
|
1948
2041
|
callbackUrl: 'http://47.102.126.132:8720/hsbc/callback',
|
|
1949
2042
|
roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
|
|
1950
2043
|
resourcePath: 'https://counter-web.leimondata.cn:7199',
|
|
2044
|
+
prohibitPrompt: '当前无客户',
|
|
2045
|
+
voiceColor: '#0AE544',
|
|
2046
|
+
titleBackground: 'rgba(219, 0, 17, 0.1)',
|
|
2047
|
+
titleColor: '#DB0011',
|
|
2048
|
+
microphoneSize: '50',
|
|
2049
|
+
fontSize: '14',
|
|
2050
|
+
fontFamily: 'auto'
|
|
1951
2051
|
}
|
|
1952
2052
|
export default Video
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
z-index: 2000;
|
|
53
53
|
}
|
|
54
54
|
.videoFit{
|
|
55
|
-
object-fit:
|
|
55
|
+
object-fit: contain !important;
|
|
56
56
|
}
|
|
57
57
|
.itemPublic {
|
|
58
58
|
grid-column-start: 1;
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
// background: #fff;
|
|
151
151
|
.button{
|
|
152
152
|
display: inline-flex;
|
|
153
|
-
width: 100%;
|
|
153
|
+
// width: 100%;
|
|
154
154
|
position: absolute;
|
|
155
155
|
z-index: 1;
|
|
156
156
|
top: 0;
|
|
@@ -188,10 +188,10 @@ border-radius: 0px 0px 2px 2px;
|
|
|
188
188
|
width: 80px;
|
|
189
189
|
line-height: 30px;
|
|
190
190
|
height: 30px;
|
|
191
|
-
background: rgba(219, 0, 17, 0.1);
|
|
191
|
+
// background: rgba(219, 0, 17, 0.1);
|
|
192
192
|
border-radius: 4px 0px 2px 0px;
|
|
193
|
-
color: #DB0011;
|
|
194
|
-
font-size: 14px;
|
|
193
|
+
// color: #DB0011;
|
|
194
|
+
// font-size: 14px;
|
|
195
195
|
}
|
|
196
196
|
.tellerTitle{
|
|
197
197
|
position: absolute;
|
|
@@ -200,10 +200,9 @@ border-radius: 0px 0px 2px 2px;
|
|
|
200
200
|
width: 80px;
|
|
201
201
|
line-height: 30px;
|
|
202
202
|
height: 30px;
|
|
203
|
-
background: rgba(219, 0, 17, 0.1);
|
|
203
|
+
// background: rgba(219, 0, 17, 0.1);
|
|
204
204
|
border-radius: 4px 0px 2px 0px;
|
|
205
|
-
transform: rotateY(
|
|
206
|
-
|
|
207
|
-
color: #DB0011;
|
|
205
|
+
transform: rotateY(180deg);
|
|
206
|
+
// color: #DB0011;
|
|
208
207
|
font-size: 14px;
|
|
209
208
|
}
|