react_hsbc_teller 1.3.9 → 1.4.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 +24 -31
- package/packages/pages/video/video.less +1 -1
package/package.json
CHANGED
|
@@ -279,7 +279,7 @@ class Video extends Component {
|
|
|
279
279
|
let result = await API.getBase64Image({ fileName: data});
|
|
280
280
|
console.log('getBase64Image',result)
|
|
281
281
|
this.props.imgCallback({
|
|
282
|
-
type: result.data.type,
|
|
282
|
+
type: result.data.type + '',
|
|
283
283
|
file: result.data.base64Image}
|
|
284
284
|
)
|
|
285
285
|
} catch (err) {
|
|
@@ -1454,7 +1454,7 @@ class Video extends Component {
|
|
|
1454
1454
|
// 一炒多的图片
|
|
1455
1455
|
if (Mival.sessionId == this.state.sessionId) {
|
|
1456
1456
|
this.props.imgCallback({
|
|
1457
|
-
type: Mival.data.type,
|
|
1457
|
+
type: Mival.data.type + '',
|
|
1458
1458
|
file: Mival.data.file}
|
|
1459
1459
|
) // 文字抄录和风险抄录,3--风险,,2--文字
|
|
1460
1460
|
}
|
|
@@ -4046,22 +4046,22 @@ class Video extends Component {
|
|
|
4046
4046
|
let height = 0
|
|
4047
4047
|
let x = 0
|
|
4048
4048
|
let y = 0
|
|
4049
|
-
if(os.isTablet){
|
|
4049
|
+
// if(os.isTablet){
|
|
4050
4050
|
width = (right - left)* window.screen.width / document.body.clientWidth
|
|
4051
4051
|
height = ((bottom - top)* window.screen.width / document.body.clientWidth) - 50
|
|
4052
|
-
x = left * window.screen.width / document.body.clientWidth
|
|
4052
|
+
x = left * window.screen.width / document.body.clientWidth + 2
|
|
4053
4053
|
y = top* window.screen.width / document.body.clientWidth
|
|
4054
|
-
}
|
|
4055
|
-
if(os.isPc) {
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
}
|
|
4061
|
-
canvas.width =
|
|
4062
|
-
canvas.height =
|
|
4063
|
-
cobj.fillStyle = 'rgb(255 255 255)'
|
|
4064
|
-
cobj.fillRect(0,0,1280,720)
|
|
4054
|
+
// }
|
|
4055
|
+
// if(os.isPc) {
|
|
4056
|
+
// width = right - left
|
|
4057
|
+
// height = bottom - top
|
|
4058
|
+
// x = left
|
|
4059
|
+
// y = top
|
|
4060
|
+
// }
|
|
4061
|
+
canvas.width = 960;
|
|
4062
|
+
canvas.height = 540;
|
|
4063
|
+
// cobj.fillStyle = 'rgb(255 255 255)'
|
|
4064
|
+
// cobj.fillRect(0,0,1280,720)
|
|
4065
4065
|
// const height1 = document.getElementById("whiteboardDIV").getBoundingClientRect().height* window.screen.height / (document.body.clientHeight + 280)
|
|
4066
4066
|
|
|
4067
4067
|
videoMedia.addEventListener('play', (event) =>{
|
|
@@ -4070,10 +4070,7 @@ class Video extends Component {
|
|
|
4070
4070
|
loop()
|
|
4071
4071
|
function loop() {
|
|
4072
4072
|
if (!$this.paused && !$this.ended) {
|
|
4073
|
-
|
|
4074
|
-
// console.log('addEventListener',x,y,width,height1,height)
|
|
4075
|
-
|
|
4076
|
-
cobj.drawImage(videoMedia, x, y, width, height, 0, 0,1280, 720);
|
|
4073
|
+
cobj.drawImage(videoMedia, x, y, width, height, 0, 0,960, 540);
|
|
4077
4074
|
setTimeout(loop, 1000 / 10); // drawing at 30fps
|
|
4078
4075
|
}
|
|
4079
4076
|
}
|
|
@@ -4113,22 +4110,18 @@ class Video extends Component {
|
|
|
4113
4110
|
streamShare = ''
|
|
4114
4111
|
}
|
|
4115
4112
|
videoMedia.srcObject = stream;
|
|
4116
|
-
if(os.isTablet){
|
|
4113
|
+
// if(os.isTablet){
|
|
4117
4114
|
stream.getVideoTracks()[0].applyConstraints({
|
|
4118
|
-
// width: document.body.clientWidth,
|
|
4119
|
-
// height: document.body.clientHeight
|
|
4120
4115
|
width: window.screen.width,
|
|
4121
4116
|
height: window.screen.height
|
|
4122
4117
|
})
|
|
4123
|
-
}
|
|
4124
|
-
if(os.isPc) {
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
})
|
|
4131
|
-
}
|
|
4118
|
+
// }
|
|
4119
|
+
// if(os.isPc) {
|
|
4120
|
+
// stream.getVideoTracks()[0].applyConstraints({
|
|
4121
|
+
// width: document.body.clientWidth,
|
|
4122
|
+
// height: document.body.clientHeight - 50
|
|
4123
|
+
// })
|
|
4124
|
+
// }
|
|
4132
4125
|
|
|
4133
4126
|
streamShare = stream
|
|
4134
4127
|
stream.getVideoTracks()[0].onended = async ()=>{
|