| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="UTF-8"> |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| <title>{{ name }}</title> |
|
|
| |
| <link href="https://vjs.zencdn.net/7.2.3/video-js.css" rel="stylesheet"> |
|
|
| |
| <style> |
| body { |
| display: flex; |
| justify-content: center; |
| align-items: flex-start; |
| flex-direction: column; |
| padding-top: 20px; |
| margin: 0; |
| font-family: Arial, sans-serif; |
| } |
| h1, p { |
| text-align: center; |
| width: 100%; |
| } |
| .video-container { |
| display: flex; |
| justify-content: center; |
| width: 100%; |
| } |
| video { |
| width: 100%; |
| max-width: 1280px; |
| height: 720px; |
| } |
| </style> |
| </head> |
| <body> |
| <h1>{{ name }}</h1> |
| <p>Categoria: {{ category }}</p> |
| <p>Grado: {{ grade }}</p> |
|
|
| |
| <div class="video-container"> |
| |
| <video |
| id="hls-example" |
| class="video-js vjs-default-skin" |
| controls |
| preload="auto"> |
| |
| <source src="{{ m3u8_link }}" type="application/x-mpegURL"> |
| </video> |
| </div> |
|
|
| |
| <p> |
| <a href="{{ m3u8_link }}" target="_blank">Link to m3u8</a> |
| </p> |
|
|
| |
| <script src="https://vjs.zencdn.net/7.2.3/video.js"></script> |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/videojs-contrib-hls/5.14.1/videojs-contrib-hls.js"></script> |
|
|
| <script> |
| |
| var player = videojs('hls-example', { |
| width: 1280, |
| height: 720 |
| }); |
| |
| |
| player.play(); |
| </script> |
| </body> |
| </html> |
|
|