apply bootstrap
This commit is contained in:
parent
a3757e374d
commit
f913eb9385
1 changed files with 21 additions and 16 deletions
|
@ -19,17 +19,12 @@
|
||||||
<meta name='twitter:image' content={{ url_for('thumb_route', file_name=thumb_file) }}>
|
<meta name='twitter:image' content={{ url_for('thumb_route', file_name=thumb_file) }}>
|
||||||
<meta name='twitter:image:alt' content="{{ video_file[:-4] }}">
|
<meta name='twitter:image:alt' content="{{ video_file[:-4] }}">
|
||||||
<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">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css" crossorigin="anonymous">
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
background-color: #212529;
|
background-color: #212529;
|
||||||
}
|
}
|
||||||
|
|
||||||
#player-container {
|
|
||||||
width: 100%;
|
|
||||||
height: 100vh; /* 100% of the viewport height */
|
|
||||||
object-fit: cover; /* This ensures the video covers the entire container, maintaining its aspect ratio */
|
|
||||||
}
|
|
||||||
|
|
||||||
.video-container {
|
.video-container {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -56,16 +51,29 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<title>DeflaxTV Video Player</title>
|
<title>DeflaxTV Video Player</title>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap/dist/js/bootstrap.min.js" crossorigin="anonymous"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/plyr/dist/plyr.min.js" crossorigin="anonymous"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<div class="video-container">
|
<div class="content-container bg-dark text-white">
|
||||||
<video playsinline controls>
|
<div id="stream" class="container-fluid p-3 bg-dark text-white">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12 col-md-1">
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-12 col-md-10">
|
||||||
|
<div class="video-container" poster="{{ url_for('thumb_route', file_name=thumb_file) }}">
|
||||||
|
<video id="player" controls crossorigin playsinline >
|
||||||
<source src="{{ url_for('video_route', file_name=video_file) }}" type="video/mp4">
|
<source src="{{ url_for('video_route', file_name=video_file) }}" type="video/mp4">
|
||||||
</video>
|
</video>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-xs-12 col-md-1">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<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 () {
|
||||||
const player = new Plyr('#player');
|
const player = new Plyr('#player');
|
||||||
|
@ -74,6 +82,3 @@
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
Loading…
Reference in a new issue