Spaces:
Runtime error
Runtime error
Download template.html from VIPLab/Track-Anything: direct link, hf CLI and curl.
- Browser
- Download file 683 Bytes
-
https://huggingface.co/spaces/VIPLab/Track-Anything/resolve/main/template.html
- Command line
-
hf download hf://spaces/VIPLab/Track-Anything/template.html
-
curl -L -o template.html https://huggingface.co/spaces/VIPLab/Track-Anything/resolve/main/template.html
683 Bytes
| <!-- template.html --> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Gradio Video Pause Time</title> | |
| </head> | |
| <body> | |
| <video id="video" controls> | |
| <source src="{{VIDEO_URL}}" type="video/mp4"> | |
| Your browser does not support the video tag. | |
| </video> | |
| <script> | |
| const video = document.getElementById("video"); | |
| let pauseTime = null; | |
| video.addEventListener("pause", () => { | |
| pauseTime = video.currentTime; | |
| }); | |
| function getPauseTime() { | |
| return pauseTime; | |
| } | |
| </script> | |
| </body> | |
| </html> | |