freealise commited on
Commit
fce2f40
·
verified ·
1 Parent(s): 54f09aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -772,7 +772,7 @@ async(c, o, p, d, n, m, s)=>{
772
 
773
  function requestMap() {
774
  try {
775
- alert(document.getElementById("depth_video").getElementsByTagName("video")[0]);
776
  alert(ctx);
777
  ctx.drawImage(video, 0, 0, video.videoWidth, video.videoHeight);
778
  if (buffer) {
@@ -798,8 +798,6 @@ async(c, o, p, d, n, m, s)=>{
798
  ctx = canvas.getContext("2d", { willReadFrequently: true });
799
 
800
  videoPlay();
801
- videoDome.videoTexture.video.oncanplaythrough = null;
802
- video.oncanplaythrough = null;
803
  };
804
 
805
  //var debugLayer = BABYLON.Engine.LastCreatedScene.debugLayer.show();
@@ -989,6 +987,9 @@ function seek(t) {
989
  window.seek = seek;
990
 
991
  function videoPlay() {
 
 
 
992
  videoDome.videoTexture.video.loop = true;
993
  video.loop = true;
994
  videoDome.videoTexture.video.play();
 
772
 
773
  function requestMap() {
774
  try {
775
+ alert(video.videoWidth);
776
  alert(ctx);
777
  ctx.drawImage(video, 0, 0, video.videoWidth, video.videoHeight);
778
  if (buffer) {
 
798
  ctx = canvas.getContext("2d", { willReadFrequently: true });
799
 
800
  videoPlay();
 
 
801
  };
802
 
803
  //var debugLayer = BABYLON.Engine.LastCreatedScene.debugLayer.show();
 
987
  window.seek = seek;
988
 
989
  function videoPlay() {
990
+ videoDome.videoTexture.video.oncanplaythrough = null;
991
+ video.oncanplaythrough = null;
992
+
993
  videoDome.videoTexture.video.loop = true;
994
  video.loop = true;
995
  videoDome.videoTexture.video.play();