define styling in the watch template

This commit is contained in:
deflax 2024-01-18 06:11:33 +02:00
parent b75e7e658b
commit eec9d19dfa

View file

@ -5,13 +5,30 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/plyr/dist/plyr.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/plyr/dist/plyr.min.css">
<style>
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f0f0;
}
#player-container {
width: 100%;
max-width: 800px;
}
</style>
<title>DeflaxTV VoD Player</title> <title>DeflaxTV VoD Player</title>
</head> </head>
<body> <body>
<div id="player-container">
<video id="player" playsinline controls> <video id="player" playsinline controls>
<source src="{{ video_url }}" type="video/mp4"> <source src="{{ video_url }}" type="video/mp4">
</video> </video>
</div>
<script src="https://cdn.jsdelivr.net/npm/plyr/dist/plyr.min.js" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/plyr/dist/plyr.min.js" crossorigin="anonymous"></script>
<script> <script>
document.addEventListener('DOMContentLoaded', function () { document.addEventListener('DOMContentLoaded', function () {
@ -21,3 +38,6 @@
</body> </body>
</html> </html>
</body>
</html>