Loop video shorter than 60 seconds
This commit is contained in:
parent
d05488fc31
commit
983de7c2c3
@ -1335,6 +1335,8 @@ export default class AppMediaViewerBase<
|
|||||||
video.muted = true;
|
video.muted = true;
|
||||||
video.autoplay = true;
|
video.autoplay = true;
|
||||||
video.loop = true;
|
video.loop = true;
|
||||||
|
} else if(media.duration < 60) {
|
||||||
|
video.loop = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if(!video.parentElement) {
|
// if(!video.parentElement) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user