Skip to content

Commit

Permalink
Override style tags in video tag to center the element
Browse files Browse the repository at this point in the history
Increase width and height
  • Loading branch information
dormant-user committed Dec 6, 2023
1 parent 02ca800 commit 0cd5394
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions pystream/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,7 @@
}
</style>
<!-- Video, title and body CSS -->
<!-- fixme: video is not centered despite setting as !important -->
<style>
video {
margin-left: auto;
margin-right: auto;
display: block
}
body {
font-family: 'PT Serif', serif;
}
Expand All @@ -85,12 +79,13 @@
<button class="logout" onclick="logOut()"><i class="fa fa-sign-out"></i> Logout</button>
<br><br>
<h1>{{title}}</h1>
<!-- todo: check if video dimensions will match for vertically long videos -->
<video id="video-player"
width="640" height="264"
width="960" height="480"
class="video-js"
preload="auto"
controls muted="muted"
style="position: relative"
style="position: relative; margin-left: auto; margin-right: auto; display: block"
poster=""
data-setup="{}">
<source id="video-source" type="video/mp4" src=""/>
Expand Down

0 comments on commit 0cd5394

Please sign in to comment.