freealise commited on
Commit
a012303
·
verified ·
1 Parent(s): fef9e6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -782,7 +782,7 @@ async(c, o, p, d, n, m, s)=>{
782
  videoDome.videoTexture.video.oncanplaythrough = function () {
783
  document.getElementById('seek').innerHTML = '';
784
  for (var i=0; i<videoDome.videoTexture.video.duration; i++) {
785
- document.getElementById('seek').innerHTML += '<a href="#" onclick="seek('+i+');">'+i+'</a> ';
786
  }
787
  play();
788
  videoDome.videoTexture.video.oncanplaythrough = null;
@@ -1314,7 +1314,7 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
1314
  <a href='#' onclick='snapshot();'>Screenshot</a>
1315
  <a href='#' onclick='record_video();'>Record</a>
1316
  <a href='#' onclick='stop_recording();'>Stop rec.</a>
1317
- <span id='seek'></span> <a href='#' onclick='play();'>Play</a><br/>
1318
  <img src='' id='img_out' onload='var ctxt = document.getElementById(\"cnv_out\").getContext(\"2d\");ctxt.drawImage(this, 0, 0);'/><br/>
1319
  <canvas id='cnv_out'></canvas>
1320
  <div id='compass_box'><div id='compass'><a id='fullscreen' onclick='
 
782
  videoDome.videoTexture.video.oncanplaythrough = function () {
783
  document.getElementById('seek').innerHTML = '';
784
  for (var i=0; i<videoDome.videoTexture.video.duration; i++) {
785
+ document.getElementById('seek').innerHTML += '<a href="#" style="position:absolute;left:'+(32+coords[i].lng)+'px;top:'+(32+coords[i].lat)+'px;" onclick="seek('+i+');"> '+i+' </a> ';
786
  }
787
  play();
788
  videoDome.videoTexture.video.oncanplaythrough = null;
 
1314
  <a href='#' onclick='snapshot();'>Screenshot</a>
1315
  <a href='#' onclick='record_video();'>Record</a>
1316
  <a href='#' onclick='stop_recording();'>Stop rec.</a>
1317
+ <div style='width:64px;height:64px;border:1px dotted gray;padding:0;margin:0;float:right;' id='seek'></div> <a href='#' onclick='play();'>Play</a><br/>
1318
  <img src='' id='img_out' onload='var ctxt = document.getElementById(\"cnv_out\").getContext(\"2d\");ctxt.drawImage(this, 0, 0);'/><br/>
1319
  <canvas id='cnv_out'></canvas>
1320
  <div id='compass_box'><div id='compass'><a id='fullscreen' onclick='