1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Autoplay when Play or Shuffle

This commit is contained in:
Dmitry Lyzo 2021-09-09 00:06:09 +03:00
parent 2ae0120146
commit 2bf4741d9c
3 changed files with 11 additions and 4 deletions

View file

@ -349,7 +349,7 @@ export default function (options) {
minRatio: 1,
toggle: true
},
autoplay: !options.interactive,
autoplay: !options.interactive || !!options.autoplay,
keyboard: {
enabled: true
},
@ -378,6 +378,8 @@ export default function (options) {
if (useFakeZoomImage) {
swiperInstance.on('zoomChange', onZoomChange);
}
if (swiperInstance.autoplay?.running) onAutoplayStart();
}
/**