react_hsbc_teller 0.2.4 → 0.2.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/package.json +1 -1
- package/packages/common/websocket.js +1 -1
- package/packages/pages/foot/foot.jsx +12 -12
- package/packages/pages/foot/foot.less +1 -1
- package/packages/pages/header/header.less +5 -5
- package/packages/pages/video/video.jsx +128 -51
- package/packages/pages/video/video.less +4 -1
package/package.json
CHANGED
|
@@ -183,7 +183,7 @@ function bind() {
|
|
|
183
183
|
function auth(val) {
|
|
184
184
|
// Base64编码
|
|
185
185
|
console.log('www');
|
|
186
|
-
const token = window.btoa(`${JSON.parse(window.sessionStorage.getItem('sigData')).account}@${JSON.parse(window.sessionStorage.getItem('sigData')).hostname}\0` + '
|
|
186
|
+
const token = window.btoa(`${JSON.parse(window.sessionStorage.getItem('sigData')).account}@${JSON.parse(window.sessionStorage.getItem('sigData')).hostname}\0` + `${JSON.parse(window.sessionStorage.getItem('sigData')).openfireToken}`);
|
|
187
187
|
const message = {
|
|
188
188
|
auth: {
|
|
189
189
|
'-xmlns': 'urn:ietf:params:xml:ns:xmpp-sasl',
|
|
@@ -59,7 +59,7 @@ export default class foot extends Component {
|
|
|
59
59
|
<div>
|
|
60
60
|
{customerList.map((item)=>{
|
|
61
61
|
return <div className="customer" onClick={this.customerFaceClick.bind(this,item)}>
|
|
62
|
-
<img alt="" src={require("../../assets/img/youke.png").default} />
|
|
62
|
+
<img className="imgClass" alt="" src={require("../../assets/img/youke.png").default} />
|
|
63
63
|
<li className="listLi" key={item.customerId}>{item.name}</li>
|
|
64
64
|
</div>
|
|
65
65
|
}
|
|
@@ -71,49 +71,49 @@ export default class foot extends Component {
|
|
|
71
71
|
<div className="foot">
|
|
72
72
|
<div className="total">
|
|
73
73
|
<div className="one" onClick={this.voice.bind(this)}>
|
|
74
|
-
<img src={img} alt="" />
|
|
74
|
+
<img className="imgClass" src={img} alt="" />
|
|
75
75
|
<div className="text">
|
|
76
76
|
静音
|
|
77
77
|
</div>
|
|
78
78
|
</div>
|
|
79
79
|
<div className="one" onClick={this.cameraClick.bind(this)}>
|
|
80
|
-
<img src={cameraImg} alt="" />
|
|
80
|
+
<img className="imgClass" src={cameraImg} alt="" />
|
|
81
81
|
<div className="text">
|
|
82
82
|
摄像头
|
|
83
83
|
</div>
|
|
84
84
|
</div>
|
|
85
85
|
</div>
|
|
86
86
|
<div className="total totalTwo">
|
|
87
|
-
<div className="one" onClick={this.switchExternal.bind(this)}>
|
|
87
|
+
{/* <div className="one" onClick={this.switchExternal.bind(this)}>
|
|
88
88
|
<img src={require("../../assets/img/huazhonghua.png").default} alt="" />
|
|
89
89
|
<div className="text">
|
|
90
90
|
切换到RM白板
|
|
91
91
|
</div>
|
|
92
|
-
</div>
|
|
92
|
+
</div> */}
|
|
93
93
|
{
|
|
94
94
|
isTranscribing &&
|
|
95
95
|
<div className="one" onClick={this.transcribingClick.bind(this)}>
|
|
96
|
-
<img src={require("../../assets/img/icon_copy.png").default} alt="" />
|
|
96
|
+
<img className="imgClass"src={require("../../assets/img/icon_copy.png").default} alt="" />
|
|
97
97
|
<div className="text">
|
|
98
98
|
签字
|
|
99
99
|
</div>
|
|
100
100
|
</div>
|
|
101
101
|
}
|
|
102
102
|
<div className="one" onClick={this.sharedScreen.bind(this)}>
|
|
103
|
-
<img src={require("../../assets/img/Projection_screen.png").default} alt="" />
|
|
103
|
+
<img className="imgClass" src={require("../../assets/img/Projection_screen.png").default} alt="" />
|
|
104
104
|
<div className="text">
|
|
105
105
|
{screenName}
|
|
106
106
|
</div>
|
|
107
107
|
</div>
|
|
108
108
|
<div className="one" onClick={this.suspend.bind(this)}>
|
|
109
|
-
<img src={require("../../assets/img/icon_suspend.png").default} alt="" />
|
|
109
|
+
<img className="imgClass" src={require("../../assets/img/icon_suspend.png").default} alt="" />
|
|
110
110
|
<div className="text">
|
|
111
111
|
{suspendName}
|
|
112
112
|
</div>
|
|
113
113
|
</div>
|
|
114
114
|
<Popover content={content} trigger="click" visible={this.state.clicked}>
|
|
115
115
|
<div className="one" onClick={this.facialRecognition.bind(this)}>
|
|
116
|
-
<img src={require("../../assets/img/Face_recognition.png").default} alt="" />
|
|
116
|
+
<img className="imgClass" src={require("../../assets/img/Face_recognition.png").default} alt="" />
|
|
117
117
|
<div className="text">
|
|
118
118
|
人脸识别
|
|
119
119
|
</div>
|
|
@@ -121,14 +121,14 @@ export default class foot extends Component {
|
|
|
121
121
|
</Popover>
|
|
122
122
|
|
|
123
123
|
<div className="one" onClick={this.invitationClick.bind(this)}>
|
|
124
|
-
<img src={require("../../assets/img/icon_invitation.png").default} alt="" />
|
|
124
|
+
<img className="imgClass" src={require("../../assets/img/icon_invitation.png").default} alt="" />
|
|
125
125
|
<div className="text">
|
|
126
126
|
邀请
|
|
127
127
|
</div>
|
|
128
128
|
</div>
|
|
129
129
|
<Popover content={content} trigger="click" visible={this.state.clickedOcr}>
|
|
130
130
|
<div className="one" onClick={this.ocrClick.bind(this)}>
|
|
131
|
-
<img src={require("../../assets/img/icon_ocr.png").default} alt="" />
|
|
131
|
+
<img className="imgClass" src={require("../../assets/img/icon_ocr.png").default} alt="" />
|
|
132
132
|
<div className="text">
|
|
133
133
|
OCR识别
|
|
134
134
|
</div>
|
|
@@ -136,7 +136,7 @@ export default class foot extends Component {
|
|
|
136
136
|
</Popover>
|
|
137
137
|
|
|
138
138
|
<div className="one" onClick={this.pictureInPicture.bind(this)}>
|
|
139
|
-
<img src={require("../../assets/img/huazhonghua.png").default} alt="" />
|
|
139
|
+
<img className="imgClass" src={require("../../assets/img/huazhonghua.png").default} alt="" />
|
|
140
140
|
<div className="text">
|
|
141
141
|
画中画
|
|
142
142
|
</div>
|
|
@@ -52,7 +52,7 @@ class Video extends Component {
|
|
|
52
52
|
voiceStatue: false,
|
|
53
53
|
voiceImg: voiceImgOpen,
|
|
54
54
|
isBigVideo: 'video1',
|
|
55
|
-
isCustomer:
|
|
55
|
+
isCustomer: false,
|
|
56
56
|
publishDevic: 1,
|
|
57
57
|
isSharedScreen: false,
|
|
58
58
|
isSuspend: false,
|
|
@@ -77,8 +77,8 @@ class Video extends Component {
|
|
|
77
77
|
createRoom = async () => {
|
|
78
78
|
try {
|
|
79
79
|
let result = await API.createRoom({
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
staffId: this.props.tellerAccount,
|
|
81
|
+
activityId: this.props.businessNumber,
|
|
82
82
|
callbackUrl: this.props.callbackUrl,
|
|
83
83
|
roomId: this.state.channelId,
|
|
84
84
|
mtoken: this.state.rtoken
|
|
@@ -90,8 +90,16 @@ class Video extends Component {
|
|
|
90
90
|
});
|
|
91
91
|
// eslint-disable-next-line no-undef
|
|
92
92
|
joinRoom((this.props.tellerAccount + '@' + JSON.parse(window.sessionStorage.getItem('sigData')).hostname), this.state.imRoomId)
|
|
93
|
+
this.props.createRoomCallback({
|
|
94
|
+
type: 1,
|
|
95
|
+
errorManage: ''
|
|
96
|
+
})
|
|
93
97
|
} catch (err) {
|
|
94
98
|
console.error(err);
|
|
99
|
+
this.props.createRoomCallback({
|
|
100
|
+
type: 2,
|
|
101
|
+
errorManage: '保存房间信息失败'
|
|
102
|
+
})
|
|
95
103
|
}
|
|
96
104
|
};
|
|
97
105
|
/**
|
|
@@ -115,6 +123,7 @@ class Video extends Component {
|
|
|
115
123
|
}
|
|
116
124
|
} catch (err) {
|
|
117
125
|
console.error(err);
|
|
126
|
+
this.roomCallBack(2,'签名失败')
|
|
118
127
|
}
|
|
119
128
|
};
|
|
120
129
|
handleEdit = () => {
|
|
@@ -438,7 +447,33 @@ class Video extends Component {
|
|
|
438
447
|
// })
|
|
439
448
|
// });
|
|
440
449
|
if (this.isFileSuccuse()) {
|
|
441
|
-
const
|
|
450
|
+
const list = []
|
|
451
|
+
if(document.getElementById('video1').name) {
|
|
452
|
+
list.push('video1')
|
|
453
|
+
}
|
|
454
|
+
if(document.getElementById('publish_video1').name) {
|
|
455
|
+
list.push('publish_video1')
|
|
456
|
+
}
|
|
457
|
+
if(document.getElementById('video2').name) {
|
|
458
|
+
list.push('video2')
|
|
459
|
+
}
|
|
460
|
+
if(document.getElementById('video3').name) {
|
|
461
|
+
list.push('video3')
|
|
462
|
+
}
|
|
463
|
+
if(document.getElementById('video4').name) {
|
|
464
|
+
list.push('video4')
|
|
465
|
+
}
|
|
466
|
+
if(document.getElementById('video5').name) {
|
|
467
|
+
list.push('video5')
|
|
468
|
+
}
|
|
469
|
+
if(document.getElementById('video6').name) {
|
|
470
|
+
list.push('video6')
|
|
471
|
+
}
|
|
472
|
+
if(document.getElementById('video10').name) {
|
|
473
|
+
list.push('video10')
|
|
474
|
+
}
|
|
475
|
+
console.log(list)
|
|
476
|
+
const width = 320 * list.length;
|
|
442
477
|
const height = 480;
|
|
443
478
|
const canvas = document.createElement('canvas');
|
|
444
479
|
const cobj = canvas.getContext('2d'); // 获取绘图环境
|
|
@@ -446,7 +481,9 @@ class Video extends Component {
|
|
|
446
481
|
canvas.height = height;
|
|
447
482
|
let interval = setInterval(() => {
|
|
448
483
|
cobj.clearRect(0, 0, width, height);
|
|
449
|
-
let
|
|
484
|
+
for(let i=0;i<list.length;i++){
|
|
485
|
+
|
|
486
|
+
let videoId = list[i];
|
|
450
487
|
let videoDiv = document.getElementById(videoId);
|
|
451
488
|
let videoWidth = videoDiv.videoWidth;
|
|
452
489
|
let videoHeight = videoDiv.videoHeight;
|
|
@@ -457,20 +494,34 @@ class Video extends Component {
|
|
|
457
494
|
} else {
|
|
458
495
|
newVideoHeight = videoHeight * 320 / videoWidth;
|
|
459
496
|
}
|
|
460
|
-
cobj.drawImage(videoDiv,
|
|
461
|
-
|
|
462
|
-
let subscribeVideo = 'video1';
|
|
463
|
-
let subscribeVideoDiv = document.getElementById(subscribeVideo);
|
|
464
|
-
let subscribeVideoDivWidth = subscribeVideoDiv.videoWidth;
|
|
465
|
-
let subscribeVideoDivHeight = subscribeVideoDiv.videoHeight;
|
|
466
|
-
let newVideoWidth1 = 320;
|
|
467
|
-
let newVideoHeight1 = 480;
|
|
468
|
-
if (subscribeVideoDivHeight * 320 / subscribeVideoDivWidth > 480) {
|
|
469
|
-
newVideoWidth1 = subscribeVideoDivWidth * 480 / subscribeVideoDivHeight;
|
|
470
|
-
} else {
|
|
471
|
-
newVideoHeight1 = subscribeVideoDivHeight * 320 / subscribeVideoDivWidth;
|
|
497
|
+
cobj.drawImage(videoDiv, 320 * i, 480 - newVideoHeight, 320, newVideoHeight);
|
|
472
498
|
}
|
|
473
|
-
cobj.
|
|
499
|
+
// cobj.clearRect(0, 0, width, height);
|
|
500
|
+
// let videoId = 'publish_video1';
|
|
501
|
+
// let videoDiv = document.getElementById(videoId);
|
|
502
|
+
// let videoWidth = videoDiv.videoWidth;
|
|
503
|
+
// let videoHeight = videoDiv.videoHeight;
|
|
504
|
+
// let newVideoWidth = 320;
|
|
505
|
+
// let newVideoHeight = 480;
|
|
506
|
+
// if (videoHeight * 320 / videoWidth > 480) {
|
|
507
|
+
// newVideoWidth = videoWidth * 480 / videoHeight;
|
|
508
|
+
// } else {
|
|
509
|
+
// newVideoHeight = videoHeight * 320 / videoWidth;
|
|
510
|
+
// }
|
|
511
|
+
// cobj.drawImage(videoDiv, 0, 480 - newVideoHeight, newVideoWidth, newVideoHeight);
|
|
512
|
+
|
|
513
|
+
// let subscribeVideo = 'video1';
|
|
514
|
+
// let subscribeVideoDiv = document.getElementById(subscribeVideo);
|
|
515
|
+
// let subscribeVideoDivWidth = subscribeVideoDiv.videoWidth;
|
|
516
|
+
// let subscribeVideoDivHeight = subscribeVideoDiv.videoHeight;
|
|
517
|
+
// let newVideoWidth1 = 320;
|
|
518
|
+
// let newVideoHeight1 = 480;
|
|
519
|
+
// if (subscribeVideoDivHeight * 320 / subscribeVideoDivWidth > 480) {
|
|
520
|
+
// newVideoWidth1 = subscribeVideoDivWidth * 480 / subscribeVideoDivHeight;
|
|
521
|
+
// } else {
|
|
522
|
+
// newVideoHeight1 = subscribeVideoDivHeight * 320 / subscribeVideoDivWidth;
|
|
523
|
+
// }
|
|
524
|
+
// cobj.drawImage(subscribeVideoDiv, 320, 480 - newVideoHeight1, newVideoWidth1, newVideoHeight1);
|
|
474
525
|
|
|
475
526
|
}, 100);
|
|
476
527
|
const captureStream = canvas.captureStream();
|
|
@@ -494,6 +545,19 @@ class Video extends Component {
|
|
|
494
545
|
});
|
|
495
546
|
}
|
|
496
547
|
};
|
|
548
|
+
roomCallBack=(type,manege) =>{
|
|
549
|
+
if (this.state.sessionId) {
|
|
550
|
+
this.props.joinRoomCallback({
|
|
551
|
+
type: type,
|
|
552
|
+
errorManage: manege
|
|
553
|
+
})
|
|
554
|
+
}else {
|
|
555
|
+
this.props.createRoomCallback({
|
|
556
|
+
type: type,
|
|
557
|
+
errorManage: manege
|
|
558
|
+
})
|
|
559
|
+
}
|
|
560
|
+
}
|
|
497
561
|
mountClick = () => {
|
|
498
562
|
window.IMEvt = msg => {
|
|
499
563
|
console.log(JSON.parse(msg));
|
|
@@ -523,6 +587,28 @@ class Video extends Component {
|
|
|
523
587
|
if (Mival.sessionId == this.state.sessionId) {
|
|
524
588
|
this.props.signatureCallback()
|
|
525
589
|
}
|
|
590
|
+
} else if (Mival.typeId == 1218) {
|
|
591
|
+
if (Mival.sessionId == this.state.sessionId) {
|
|
592
|
+
// 1-开启,2-关闭
|
|
593
|
+
if(Mival.type == 1) {
|
|
594
|
+
this.switchExternal()
|
|
595
|
+
} else if(Mival.type == 2) {
|
|
596
|
+
if(this.state.isSharedScreen) {
|
|
597
|
+
this.setState({
|
|
598
|
+
isWhiteboard: false,
|
|
599
|
+
})
|
|
600
|
+
}else {
|
|
601
|
+
this.test_controller.UnPublish(document.getElementById('video10').name)
|
|
602
|
+
this.setState({
|
|
603
|
+
isPDF: false,
|
|
604
|
+
isSelect: 'video',
|
|
605
|
+
isWhiteboard: false,
|
|
606
|
+
})
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
}
|
|
611
|
+
|
|
526
612
|
}
|
|
527
613
|
};
|
|
528
614
|
|
|
@@ -597,6 +683,7 @@ class Video extends Component {
|
|
|
597
683
|
};
|
|
598
684
|
this.test_controller.OnConnectFailed = (code, msg) => {
|
|
599
685
|
console.log('建立连接失败', code, msg)
|
|
686
|
+
this.roomCallBack(2,'连接失败')
|
|
600
687
|
};
|
|
601
688
|
// 断开连接回调
|
|
602
689
|
this.test_controller.OnConnectClose = (code, msg) => {
|
|
@@ -610,6 +697,7 @@ class Video extends Component {
|
|
|
610
697
|
// 初始化房间失败
|
|
611
698
|
this.test_controller.OnInitRoomConfigFail = (err_code, err_msg) => {
|
|
612
699
|
console.log('初始化房间失败', err_code, err_msg)
|
|
700
|
+
this.roomCallBack(2,'初始化失败')
|
|
613
701
|
};
|
|
614
702
|
// 初始化成功回调
|
|
615
703
|
this.test_controller.OnInitRoomConfigOK = () => {
|
|
@@ -635,6 +723,7 @@ class Video extends Component {
|
|
|
635
723
|
// 创建房间失败
|
|
636
724
|
this.test_controller.OnCreateRoomFailed = (err_code, err_msg) => {
|
|
637
725
|
console.log('创建房间失败', err_code, err_msg)
|
|
726
|
+
this.roomCallBack(2,'创建失败')
|
|
638
727
|
};
|
|
639
728
|
// 初始化⾳视频成功
|
|
640
729
|
this.test_controller.OnMediaCallSucc = (sid) => {
|
|
@@ -651,10 +740,12 @@ class Video extends Component {
|
|
|
651
740
|
// 加入房间成功
|
|
652
741
|
this.test_controller.OnJoinRoomSucc = () => {
|
|
653
742
|
console.log('加入房间成功')
|
|
743
|
+
this.roomCallBack(1,'')
|
|
654
744
|
};
|
|
655
745
|
// 加入房间失败
|
|
656
746
|
this.test_controller.OnJoinRoomFailed = (err_code, err_msg) => {
|
|
657
747
|
console.log('加入房间失败', err_code, err_msg)
|
|
748
|
+
this.roomCallBack(2,'加入失败')
|
|
658
749
|
};
|
|
659
750
|
// 发布媒体流成功
|
|
660
751
|
this.test_controller.OnPublishSucc = (sid) => {
|
|
@@ -1097,37 +1188,23 @@ class Video extends Component {
|
|
|
1097
1188
|
this.setState({
|
|
1098
1189
|
loading: true,
|
|
1099
1190
|
})
|
|
1100
|
-
console.log(this.props.resourcePath + "/log4b.js")
|
|
1101
1191
|
const _dependScripts = [
|
|
1102
1192
|
// https://counter-web.leimondata.cn:7199
|
|
1103
|
-
this.props.resourcePath + "/
|
|
1104
|
-
this.props.resourcePath + "/
|
|
1193
|
+
this.props.resourcePath + "/adapter.js",
|
|
1194
|
+
this.props.resourcePath + "/getMediaInfo.js",
|
|
1195
|
+
this.props.resourcePath + "/pdf.js",
|
|
1196
|
+
this.props.resourcePath + "/EBML.js",
|
|
1105
1197
|
this.props.resourcePath + "/mcu.js",
|
|
1106
|
-
this.props.resourcePath + "/
|
|
1198
|
+
this.props.resourcePath + "/meeting_desk_stream.js",
|
|
1199
|
+
this.props.resourcePath + "/meeting_html_stream.js",
|
|
1200
|
+
this.props.resourcePath + "/meeting_file_stream.js",
|
|
1201
|
+
this.props.resourcePath + "/meeting_im.js",
|
|
1107
1202
|
this.props.resourcePath + "/meeting_vod.js",
|
|
1108
|
-
this.props.resourcePath + "/remote_record.js",
|
|
1109
1203
|
this.props.resourcePath + "/meeting_invite.js",
|
|
1110
|
-
this.props.resourcePath + "/
|
|
1204
|
+
this.props.resourcePath + "/client_record.js",
|
|
1205
|
+
this.props.resourcePath + "/remote_record.js",
|
|
1111
1206
|
this.props.resourcePath + "/meeting_camera_stream.js",
|
|
1112
|
-
this.props.resourcePath + "/meeting_file_stream.js",
|
|
1113
|
-
this.props.resourcePath + "/meeting_desk_stream.js",
|
|
1114
|
-
this.props.resourcePath + "/meeting_html_stream.js",
|
|
1115
|
-
this.props.resourcePath + "/meeting_beautify_stream.js",
|
|
1116
|
-
this.props.resourcePath + "/stream.js",
|
|
1117
|
-
this.props.resourcePath + "/room.js",
|
|
1118
|
-
this.props.resourcePath + "/backgroundBlur.js",
|
|
1119
1207
|
this.props.resourcePath + "/meeting_api.js",
|
|
1120
|
-
this.props.resourcePath + "/html2image.js",
|
|
1121
|
-
this.props.resourcePath + "/reconnecting-websocket.min.js",
|
|
1122
|
-
this.props.resourcePath + "/mtc_api.js",
|
|
1123
|
-
this.props.resourcePath + "/BandwidthHandler.js",
|
|
1124
|
-
this.props.resourcePath + "/RecordRTC.min.js",
|
|
1125
|
-
// "https://gw.alipayobjects.com/os/lib/recordrtc/5.5.9/RecordRTC.min.js",
|
|
1126
|
-
this.props.resourcePath + "/pdf.js",
|
|
1127
|
-
this.props.resourcePath + "/EBML.js",
|
|
1128
|
-
this.props.resourcePath + "/adapter.js",
|
|
1129
|
-
this.props.resourcePath + "/beauty.js",
|
|
1130
|
-
this.props.resourcePath + "/getMediaInfo.js",
|
|
1131
1208
|
]
|
|
1132
1209
|
const that = this
|
|
1133
1210
|
let i = 0
|
|
@@ -1659,7 +1736,7 @@ class Video extends Component {
|
|
|
1659
1736
|
<div style={{ display: (this.state.isPDF) ? '' : 'none', }} id="touBoxItem">
|
|
1660
1737
|
{pdfChildren}
|
|
1661
1738
|
</div>
|
|
1662
|
-
<div style={this.state.isPDF ? { display: 'none' } : {}}>
|
|
1739
|
+
<div className="videoDiv" style={this.state.isPDF ? { display: 'none' } : {}}>
|
|
1663
1740
|
<video
|
|
1664
1741
|
id="video10"
|
|
1665
1742
|
autoPlay
|
|
@@ -1697,7 +1774,7 @@ class Video extends Component {
|
|
|
1697
1774
|
/>
|
|
1698
1775
|
<audio id="audio1" autoPlay />
|
|
1699
1776
|
<label style={{ display: 'none' }} id="feedId1" type="text" />
|
|
1700
|
-
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView1" width="
|
|
1777
|
+
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView1" width="20" height="50"></canvas>
|
|
1701
1778
|
</div>
|
|
1702
1779
|
</div>
|
|
1703
1780
|
<div
|
|
@@ -1736,7 +1813,7 @@ class Video extends Component {
|
|
|
1736
1813
|
/>
|
|
1737
1814
|
<audio id="audio1" autoPlay />
|
|
1738
1815
|
<label style={{ display: 'none' }} id="publish_streamId1" type="text" />
|
|
1739
|
-
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="publish_volumeView" width="
|
|
1816
|
+
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="publish_volumeView" width="20" height="50"></canvas>
|
|
1740
1817
|
</div>
|
|
1741
1818
|
|
|
1742
1819
|
</div>
|
|
@@ -1751,7 +1828,7 @@ class Video extends Component {
|
|
|
1751
1828
|
/>
|
|
1752
1829
|
<audio id="audio2" autoPlay />
|
|
1753
1830
|
<label style={{ display: 'none' }} id="feedId2" type="text" />
|
|
1754
|
-
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView2" width="
|
|
1831
|
+
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView2" width="20" height="50"></canvas>
|
|
1755
1832
|
</div>
|
|
1756
1833
|
</div>
|
|
1757
1834
|
<div className={`itemed ${this.state.isBigVideo == 'video3' ? 'item1' : ""}`}
|
|
@@ -1764,7 +1841,7 @@ class Video extends Component {
|
|
|
1764
1841
|
/>
|
|
1765
1842
|
<audio id="audio3" autoPlay />
|
|
1766
1843
|
<label style={{ display: 'none' }} id="feedId3" type="text" />
|
|
1767
|
-
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView3" width="
|
|
1844
|
+
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView3" width="20" height="50"></canvas>
|
|
1768
1845
|
</div>
|
|
1769
1846
|
<div className={`itemed ${this.state.isBigVideo == 'video4' ? 'item1' : ""}`}
|
|
1770
1847
|
onClick={this.enlargeClick.bind(this, 'isLangVideo4')}>
|
|
@@ -1776,7 +1853,7 @@ class Video extends Component {
|
|
|
1776
1853
|
/>
|
|
1777
1854
|
<audio id="audio4" autoPlay />
|
|
1778
1855
|
<label style={{ display: 'none' }} id="feedId4" type="text" />
|
|
1779
|
-
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView4" width="
|
|
1856
|
+
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView4" width="20" height="50"></canvas>
|
|
1780
1857
|
</div>
|
|
1781
1858
|
<div className={`itemed ${this.state.isBigVideo == 'video5' ? 'item1' : ""}`}
|
|
1782
1859
|
onClick={this.enlargeClick.bind(this, 'isLangVideo5')}>
|
|
@@ -1788,7 +1865,7 @@ class Video extends Component {
|
|
|
1788
1865
|
/>
|
|
1789
1866
|
<audio id="audio5" autoPlay />
|
|
1790
1867
|
<label style={{ display: 'none' }} id="feedId5" type="text" />
|
|
1791
|
-
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView5" width="
|
|
1868
|
+
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView5" width="20" height="50"></canvas>
|
|
1792
1869
|
</div>
|
|
1793
1870
|
<div onClick={this.enlargeClick.bind(this, 'isLangVideo6')} className={`${this.state.isBigVideo == 'video6' ? 'item1' : "itemed"}`}>
|
|
1794
1871
|
{/* <div style={{ display: (this.state.isPDF) ? '' : 'none', }} id="touBoxItem">
|
|
@@ -1803,7 +1880,7 @@ class Video extends Component {
|
|
|
1803
1880
|
/>
|
|
1804
1881
|
<audio id="audio6" autoPlay />
|
|
1805
1882
|
<label style={{ display: 'none' }} id="feedId6" type="text" />
|
|
1806
|
-
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView6" width="
|
|
1883
|
+
<canvas style={{ display: (this.state.isCustomer) ? '' : 'none', }} className="canvasClass" id="subscribe_volumeView6" width="20" height="50"></canvas>
|
|
1807
1884
|
{/* </div> */}
|
|
1808
1885
|
|
|
1809
1886
|
</div>
|
|
@@ -1881,7 +1958,7 @@ class Video extends Component {
|
|
|
1881
1958
|
></CanvasDraw>
|
|
1882
1959
|
</div>
|
|
1883
1960
|
</Modal>
|
|
1884
|
-
<video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="
|
|
1961
|
+
<video className="mixedvideo" id="mixedvideo" autoPlay muted={true} width="400" height="400"
|
|
1885
1962
|
webkit-playsinline="true" playsInline={true} x5-playsinline="x5-playsinline"
|
|
1886
1963
|
x-webkit-airplay="true"></video>
|
|
1887
1964
|
</Spin>
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
height: 100px
|
|
4
4
|
}
|
|
5
5
|
.mixedvideo{
|
|
6
|
-
display: none;
|
|
6
|
+
// display: none;
|
|
7
7
|
position:absolute;
|
|
8
|
+
object-fit: cover
|
|
8
9
|
}
|
|
9
10
|
.imgClass{
|
|
10
11
|
width: 100%;
|
|
@@ -70,6 +71,7 @@
|
|
|
70
71
|
.video{
|
|
71
72
|
width: 100%;
|
|
72
73
|
height: 100%;
|
|
74
|
+
object-fit: cover;
|
|
73
75
|
}
|
|
74
76
|
.video1Div{
|
|
75
77
|
width: 100%;
|
|
@@ -90,6 +92,7 @@
|
|
|
90
92
|
.publishVideoClass{
|
|
91
93
|
height: 100%;
|
|
92
94
|
width: 100%;
|
|
95
|
+
object-fit: cover;
|
|
93
96
|
}
|
|
94
97
|
.publishVideoDiv{
|
|
95
98
|
height: 100%;
|