Add video controls to generated cards

Enabled video playback control elements for video cards to enhance the user experience, allowing viewers to play, pause, and seek within the video directly from the card interface.
This commit is contained in:
Kumi 2024-01-13 09:59:36 +01:00
parent addd45b356
commit 58fe029a7d
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -123,7 +123,7 @@ function finishcard(jobid, title, video) {
});
var text =
'<div class="card"> <' +
(video ? "video" : "img") +
(video ? "video controls" : "img") +
' class="card-img-top img-fluid" download src="/download/' +
jobid +
'" alt="Final ' +