video controls

This commit is contained in:
biglyderv 2024-11-25 14:12:43 -05:00
parent b9a4c8c18c
commit 3109c791f1
6 changed files with 149 additions and 20 deletions

View file

@ -1,11 +1,14 @@
<%- include('header.ejs') -%>
<div class='area'>
<h1>Video</h1>
<div id='video'>
<div class='video-wrapper'>
<video src='/videos/<%= videoData.id %>.webm'></video>
<div id="progressbar">
<div class="progressbar">
<div></div>
</div>
<div class='controls'>
<div class='play'><img src='/static/img/play.svg' class='dark'></div>
</div>
</div>
<div><b>
<%= videoData.title %>
@ -15,6 +18,5 @@
<%= videoData.username %>
</a></div>
<pre><%= videoData.desc %></pre>
<!-- todo: custom video player-->
</div>
<%- include('footer.ejs') -%>

View file

@ -2,13 +2,14 @@
<div class='video'>
<a href='/client/video?id=<%= videoData.id %>'>
<img src='/videos/<%= videoData.id %>.png'>
<div><b>
<%= videoData.title %>
</b>
</div>
<div>by <a href="/client/user?id=<%= videoData.username %>">
<%= videoData.username %>
</a></div>
</a>
<div><b>
<%= videoData.title %>
</b>
</div>
<div>by <a href="/client/user?id=<%= videoData.username %>">
<%= videoData.username %>
</a></div>
</a>
</div>
<% } %>