|
5 | 5 | <link rel="stylesheet" href="../../main.css" />
|
6 | 6 | <script type="module" src="../../main.js"></script>
|
7 | 7 | <link rel="stylesheet" href="page.css" />
|
| 8 | + <script src="https://embed.cloudflarestream.com/embed/sdk.latest.js"></script> |
8 | 9 | <script type="module" src="page.js"></script>
|
9 | 10 | </head>
|
10 | 11 | <body>
|
11 | 12 | <div id="page">
|
12 | 13 |
|
13 |
| - <div class="video-container"> |
| 14 | + <div class="video-container vpps-video-play-pause-stream vpps-fit"> |
14 | 15 | <picture>
|
15 |
| - <source |
| 16 | + <!-- <source |
16 | 17 | media="(orientation: landscape)"
|
17 |
| - srcset="https://res.cloudinary.com/demo/video/upload/w_1920,h_1080,c_fill/so_0/sea_turtle.jpg"> |
| 18 | + srcset="https://res.cloudinary.com/demo/video/upload/w_1920,h_1080,c_fill/so_0/sea_turtle.jpg"> --> |
18 | 19 | <source
|
19 | 20 | media="(orientation: portrait)"
|
20 | 21 | srcset="https://res.cloudinary.com/demo/video/upload/w_640,h_1080,c_fill/so_0/sea_turtle.jpg">
|
21 |
| - <img src="https://picsum.photos/800/800" alt="Image poster" class="poster"> |
| 22 | + <img src="https://picsum.photos/640/1080" alt="Image poster" class="poster"> |
22 | 23 | </picture>
|
23 | 24 |
|
24 |
| - <video id="myvideo" preload="none" muted playsinline loop class="video" |
25 |
| - onclick="this.paused ? this.play() : this.pause();"> |
26 |
| - <source class="" src="" |
27 |
| - data-src-portrait="https://res.cloudinary.com/demo/video/upload/w_640,h_1080,c_fill/sea_turtle.mp4" |
28 |
| - data-src-landscape="https://res.cloudinary.com/demo/video/upload/w_1920,h_1080,c_fill/sea_turtle.mp4" |
29 |
| - type="video/mp4"> |
30 |
| - </video> |
31 |
| - <button class="open-fullscreen" onclick="window.openFullscreen(this)">Fullscreen</button> |
| 25 | + <iframe |
| 26 | + class="vpps-player" |
| 27 | + xdata-landscape="https://customer-eqhp6zvrdju5e3bt.cloudflarestream.com/4f99bb5538f1597e9ad82f25b4476a31/iframe?controls=false&loop=true&muted=true" |
| 28 | + data-portrait="https://customer-eqhp6zvrdju5e3bt.cloudflarestream.com/b9b49273575faede2e4b09f5f41da487/iframe?controls=false&loop=true&muted=true" |
| 29 | + src="" |
| 30 | + style="border: none" |
| 31 | + height="720" |
| 32 | + width="1280" |
| 33 | + allow="accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;" |
| 34 | + allowfullscreen="true" |
| 35 | + ></iframe> |
| 36 | + <a class="on-hover" href="#"></a> |
32 | 37 | </div>
|
33 | 38 |
|
34 |
| - <div class="video-container"> |
| 39 | + <!-- <div class="video-container vpps-video-play-pause-stream vpps-fit"> |
35 | 40 | <picture>
|
36 | 41 | <source
|
37 | 42 | media="(orientation: landscape)"
|
|
42 | 47 | <img src="https://picsum.photos/800/800" alt="Image poster" class="poster" width="200px" height="500px">
|
43 | 48 | </picture>
|
44 | 49 |
|
45 |
| - <video preload="none" muted playsinline loop class="video" |
46 |
| - onclick="this.paused ? this.play() : this.pause();"> |
47 |
| - <source class="" src="" width="200px" height="500px" |
48 |
| - data-src-portrait="https://assets.mixkit.co/videos/preview/mixkit-waves-in-the-water-1164-large.mp4" |
49 |
| - data-src-landscape="https://res.cloudinary.com/jgl-ltd/video/upload/v1642245033/culture_v12_gyekhcibbb.mp4" |
50 |
| - type="video/mp4"> |
51 |
| - </video> |
| 50 | + <iframe |
| 51 | + class="vpps-player" |
| 52 | + data-landscape="https://customer-eqhp6zvrdju5e3bt.cloudflarestream.com/4f99bb5538f1597e9ad82f25b4476a31/iframe?controls=false&loop=true&muted=true" |
| 53 | + data-portrait="https://customer-eqhp6zvrdju5e3bt.cloudflarestream.com/b9b49273575faede2e4b09f5f41da487/iframe?controls=false&loop=true&muted=true" |
| 54 | + src="" |
| 55 | + style="border: none" |
| 56 | + height="720" |
| 57 | + width="1280" |
| 58 | + allow="accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;" |
| 59 | + allowfullscreen="true" |
| 60 | + ></iframe> |
| 61 | + <a class="on-hover" href="#"></a> |
52 | 62 | </div>
|
53 | 63 |
|
54 |
| - <div class="video-container"> |
| 64 | + <div class="video-container vpps-video-play-pause-stream vpps-fit"> |
55 | 65 | <picture>
|
56 | 66 | <source
|
57 | 67 | media="(orientation: landscape)"
|
|
61 | 71 | srcset="https://i.postimg.cc/jszvNhjJ/image-2.png">
|
62 | 72 | <img src="https://picsum.photos/800/800" alt="Image poster" class="poster" width="200px" height="500px">
|
63 | 73 | </picture>
|
64 |
| - <video preload="none" muted playsinline loop class="video" |
65 |
| - onclick="this.paused ? this.play() : this.pause();"> |
66 |
| - <source class="" src="" width="200px" height="500px" |
67 |
| - data-src-portrait="https://assets.mixkit.co/videos/preview/mixkit-portrait-of-a-woman-in-a-pool-1259-large.mp4" |
68 |
| - data-src-landscape="https://res.cloudinary.com/jgl-ltd/video/upload/v1642245033/culture_v12_gyekhcibbb.mp4" |
69 |
| - type="video/mp4"> |
70 |
| - </video> |
| 74 | +
|
| 75 | + <iframe |
| 76 | + class="vpps-player" |
| 77 | + data-landscape="https://customer-eqhp6zvrdju5e3bt.cloudflarestream.com/4f99bb5538f1597e9ad82f25b4476a31/iframe?controls=false&loop=true&muted=true" |
| 78 | + data-portrait="https://customer-eqhp6zvrdju5e3bt.cloudflarestream.com/b9b49273575faede2e4b09f5f41da487/iframe?controls=false&loop=true&muted=true" |
| 79 | + src="" |
| 80 | + style="border: none" |
| 81 | + height="720" |
| 82 | + width="1280" |
| 83 | + allow="accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;" |
| 84 | + allowfullscreen="true" |
| 85 | + ></iframe> |
| 86 | + <a class="on-hover" href="#"></a> |
71 | 87 | </div>
|
72 | 88 |
|
73 |
| - <div class="video-container"> |
| 89 | + <div class="video-container vpps-video-play-pause-stream vpps-fit"> |
74 | 90 | <picture>
|
75 | 91 | <source
|
76 | 92 | media="(orientation: landscape)"
|
|
80 | 96 | srcset="https://i.postimg.cc/sjsmJZBH/image-3.png">
|
81 | 97 | <img src="https://picsum.photos/800/800" alt="Image poster" class="poster" width="200px" height="500px">
|
82 | 98 | </picture>
|
83 |
| - <video preload="none" muted playsinline loop class="video" |
84 |
| - onclick="this.paused ? this.play() : this.pause();"> |
85 |
| - <source class="" src="" width="200px" height="500px" |
86 |
| - data-src-portrait="https://assets.mixkit.co/videos/preview/mixkit-womans-feet-splashing-in-the-pool-1261-large.mp4" |
87 |
| - data-src-landscape="https://res.cloudinary.com/jgl-ltd/video/upload/v1642245033/culture_v12_gyekhcibbb.mp4" |
88 |
| - type="video/mp4"> |
89 |
| - </video> |
90 |
| - </div> |
| 99 | +
|
| 100 | + <iframe |
| 101 | + class="vpps-player" |
| 102 | + data-landscape="https://customer-eqhp6zvrdju5e3bt.cloudflarestream.com/4f99bb5538f1597e9ad82f25b4476a31/iframe?controls=false&loop=true&muted=true" |
| 103 | + data-portrait="https://customer-eqhp6zvrdju5e3bt.cloudflarestream.com/b9b49273575faede2e4b09f5f41da487/iframe?controls=false&loop=true&muted=true" |
| 104 | + src="" |
| 105 | + style="border: none" |
| 106 | + height="720" |
| 107 | + width="1280" |
| 108 | + allow="accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture;" |
| 109 | + allowfullscreen="true" |
| 110 | + ></iframe> |
| 111 | + <a class="on-hover" href="#"></a> |
| 112 | + </div> --> |
91 | 113 |
|
92 | 114 | </div>
|
93 | 115 | </body>
|
|
0 commit comments