react_hsbc_teller 1.3.1 → 1.3.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/package.json
CHANGED
|
@@ -2313,7 +2313,7 @@ class Video extends Component {
|
|
|
2313
2313
|
// 推送“有新发布”给与会者
|
|
2314
2314
|
this.test_controller.OnNewPublish = (feed) => {
|
|
2315
2315
|
console.log('有新发布者', feed);
|
|
2316
|
-
|
|
2316
|
+
console.log(new Date())
|
|
2317
2317
|
callNimIM('sendCustomCmdMsg', {
|
|
2318
2318
|
customId: this.state.imRoomId,
|
|
2319
2319
|
content: JSON.stringify({
|
|
@@ -4016,17 +4016,21 @@ class Video extends Component {
|
|
|
4016
4016
|
const right = document.getElementById("whiteboardDIV").getBoundingClientRect().right
|
|
4017
4017
|
const top = document.getElementById("whiteboardDIV").getBoundingClientRect().top
|
|
4018
4018
|
const bottom = document.getElementById("whiteboardDIV").getBoundingClientRect().bottom
|
|
4019
|
-
const width = right - left
|
|
4020
|
-
const height = bottom - top
|
|
4019
|
+
const width = (right - left)* window.screen.width / document.body.clientWidth
|
|
4020
|
+
const height = (bottom - top)* window.screen.width / document.body.clientWidth
|
|
4021
|
+
const x = left * window.screen.width / document.body.clientWidth
|
|
4022
|
+
const y = top
|
|
4021
4023
|
canvas.width = width;
|
|
4022
4024
|
canvas.height = height;
|
|
4025
|
+
console.log('addEventListener',x,y,width,height)
|
|
4023
4026
|
videoMedia.addEventListener('play', (event) =>{
|
|
4024
4027
|
var $this = this; //cache
|
|
4025
4028
|
console.log('addEventListener',!$this.paused,!$this.ended)
|
|
4026
4029
|
loop()
|
|
4027
4030
|
function loop() {
|
|
4028
4031
|
if (!$this.paused && !$this.ended) {
|
|
4029
|
-
cobj.drawImage(videoMedia,
|
|
4032
|
+
cobj.drawImage(videoMedia, x, y, width, height, 0, 0,width, height,);
|
|
4033
|
+
// cobj.drawImage(videoMedia, 338.4848327636719, 145.45452880859375, 674.6685180664062, 553.39013671875, 0, 0,674.6685180664062, 553.39013671875,);
|
|
4030
4034
|
setTimeout(loop, 1000 / 10); // drawing at 30fps
|
|
4031
4035
|
}
|
|
4032
4036
|
}
|
|
@@ -4067,8 +4071,10 @@ class Video extends Component {
|
|
|
4067
4071
|
}
|
|
4068
4072
|
videoMedia.srcObject = stream;
|
|
4069
4073
|
stream.getVideoTracks()[0].applyConstraints({
|
|
4070
|
-
width: document.body.
|
|
4071
|
-
height: document.body.
|
|
4074
|
+
// width: document.body.clientWidth,
|
|
4075
|
+
// height: document.body.clientHeight
|
|
4076
|
+
width: window.screen.width,
|
|
4077
|
+
height: window.screen.height
|
|
4072
4078
|
})
|
|
4073
4079
|
streamShare = stream
|
|
4074
4080
|
stream.getVideoTracks()[0].onended = async ()=>{
|