react_hsbc_teller 1.3.1 → 1.3.4
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,23 @@ 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* window.screen.width / (document.body.clientWidth)
|
|
4021
4023
|
canvas.width = width;
|
|
4022
4024
|
canvas.height = height;
|
|
4025
|
+
// const height1 = document.getElementById("whiteboardDIV").getBoundingClientRect().height* window.screen.height / (document.body.clientHeight + 280)
|
|
4026
|
+
|
|
4023
4027
|
videoMedia.addEventListener('play', (event) =>{
|
|
4024
4028
|
var $this = this; //cache
|
|
4025
4029
|
console.log('addEventListener',!$this.paused,!$this.ended)
|
|
4026
4030
|
loop()
|
|
4027
4031
|
function loop() {
|
|
4028
4032
|
if (!$this.paused && !$this.ended) {
|
|
4029
|
-
|
|
4033
|
+
|
|
4034
|
+
// console.log('addEventListener',x,y,width,height1,height)
|
|
4035
|
+
cobj.drawImage(videoMedia, x, y, width, height, 0, 0,width, height);
|
|
4030
4036
|
setTimeout(loop, 1000 / 10); // drawing at 30fps
|
|
4031
4037
|
}
|
|
4032
4038
|
}
|
|
@@ -4067,8 +4073,10 @@ class Video extends Component {
|
|
|
4067
4073
|
}
|
|
4068
4074
|
videoMedia.srcObject = stream;
|
|
4069
4075
|
stream.getVideoTracks()[0].applyConstraints({
|
|
4070
|
-
width: document.body.
|
|
4071
|
-
height: document.body.
|
|
4076
|
+
// width: document.body.clientWidth,
|
|
4077
|
+
// height: document.body.clientHeight
|
|
4078
|
+
width: window.screen.width,
|
|
4079
|
+
height: window.screen.height
|
|
4072
4080
|
})
|
|
4073
4081
|
streamShare = stream
|
|
4074
4082
|
stream.getVideoTracks()[0].onended = async ()=>{
|