mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-06 14:54:27 +00:00
Tweak video mode
This commit is contained in:
parent
7525744f82
commit
e8fcf5a9a2
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ function hasAudio (video) {
|
|||
|
||||
function setVideoInGIFMode(video) {
|
||||
if (!hasAudio(video)) {
|
||||
if (typeof video.loop == 'boolean' && video.duration < 3.0) {
|
||||
if (typeof video.loop == 'boolean' && video.duration <= 10.0) {
|
||||
video.classList.add("video-gif-mode");
|
||||
video.loop = true;
|
||||
video.controls = false;
|
||||
|
|
Loading…
Reference in a new issue