Browse Source

Loop video shorter than 60 seconds

master
Eduard Kuzmenko 3 years ago
parent
commit
983de7c2c3
  1. 2
      src/components/appMediaViewerBase.ts

2
src/components/appMediaViewerBase.ts

@ -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…
Cancel
Save