Tweak video mode
parent
7525744f82
commit
e8fcf5a9a2
|
@ -6,7 +6,7 @@ function hasAudio (video) {
|
||||||
|
|
||||||
function setVideoInGIFMode(video) {
|
function setVideoInGIFMode(video) {
|
||||||
if (!hasAudio(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.classList.add("video-gif-mode");
|
||||||
video.loop = true;
|
video.loop = true;
|
||||||
video.controls = false;
|
video.controls = false;
|
||||||
|
|
Loading…
Reference in New Issue