freealise commited on
Commit
7b0ae76
·
verified ·
1 Parent(s): 257ebed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -774,6 +774,8 @@ async(c, o, p, d, n, m, s)=>{
774
  function requestMap() {
775
  try {
776
  ctx.drawImage(video, 0, 0, video.videoWidth, video.videoHeight);
 
 
777
  if (buffer) {
778
  counter = parseInt(video.currentTime);
779
  if (!coords[counter]) {counter = coords.length-1;}
@@ -964,9 +966,6 @@ function stop_recording() {
964
  window.stop_recording = stop_recording;
965
 
966
  function seek(t) {
967
- videoDome.videoTexture.video.pause();
968
- video.pause();
969
-
970
  videoDome.videoTexture.video.currentTime = t;
971
  if (videoDome.videoTexture.video.currentTime > videoDome.videoTexture.video.duration) {
972
  videoDome.videoTexture.video.currentTime = videoDome.videoTexture.video.duration;
@@ -1048,7 +1047,7 @@ window.videoPlay = videoPlay;
1048
 
1049
  position.toArray(positions, index);
1050
  }
1051
- videoDomeMesh.setVerticesData(BABYLON.VertexBuffer.PositionKind, positions);
1052
 
1053
  return mesh;
1054
  } catch(e) {alert(e)}
 
774
  function requestMap() {
775
  try {
776
  ctx.drawImage(video, 0, 0, video.videoWidth, video.videoHeight);
777
+ videoDome.videoTexture.video.pause();
778
+ video.pause();
779
  if (buffer) {
780
  counter = parseInt(video.currentTime);
781
  if (!coords[counter]) {counter = coords.length-1;}
 
966
  window.stop_recording = stop_recording;
967
 
968
  function seek(t) {
 
 
 
969
  videoDome.videoTexture.video.currentTime = t;
970
  if (videoDome.videoTexture.video.currentTime > videoDome.videoTexture.video.duration) {
971
  videoDome.videoTexture.video.currentTime = videoDome.videoTexture.video.duration;
 
1047
 
1048
  position.toArray(positions, index);
1049
  }
1050
+ mesh.setVerticesData(BABYLON.VertexBuffer.PositionKind, positions);
1051
 
1052
  return mesh;
1053
  } catch(e) {alert(e)}