File size: 2,040 Bytes
4d2184b
 
 
 
 
 
 
916bd13
 
0a4c1f8
 
916bd13
 
 
 
e501a34
916bd13
0a4c1f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13da775
 
 
916bd13
 
0a4c1f8
 
8be24e5
 
6bcead9
13da775
4d2184b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width" />
		<title>My static Space</title>
		<link rel="stylesheet" href="style.css" />
        <meta name="twitter:card" content="player"/>
        <meta name="twitter:site" content=""/>
        <meta name="twitter:player" content="https://omnibus-video-card.static.hf.space/index.html"/>
        <meta name="twitter:player:stream" content="https://omnibus-video-card.static.hf.space/index.html"/>
        <meta name="twitter:player:width" content="100%"/>
        <meta name="twitter:player:height" content="100%"/>    
        <meta property="og:title" content="Video Player"/>
        <meta property="og:description" content="Video Player"/>
        <meta property="og:image" content="https://huggingface.co/datasets/jbilcke-hf/ai-tube-index/resolve/main/videos/165a6c81-3747-44a4-93a5-46b87353cd02.webp"/>
        <!--meta http-equiv="refresh" content="0; url=https://jbilcke-hf-ai-tube.hf.space/"-->
 <style>
  .container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 100%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}
  .responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
    </style>
  </head>
  <body>
<div class="container">
<iframe
  id="myFrame"
  class="responsive-iframe"
	src=""
	frameborder="0"
></iframe>
</div>

      <script>
        const queryString = window.location.search;
        const urlParams = new URLSearchParams(queryString);
        const vid = urlParams.get("video");
        console.log(vid)
        document.getElementById("myFrame").src = vid;

        document.querySelector('meta[name="twitter:player"]').setAttribute("content", "https://omnibus-video-card.static.hf.space/index.html?video="+vid);
        document.querySelector('meta[name="twitter:stream"]').setAttribute("content", "https://omnibus-video-card.static.hf.space/index.html?video="+vid);

      </script>      
	</body>
</html>