There was an error while loading. Please reload this page.
1 parent 9c80318 commit 74b1c0eCopy full SHA for 74b1c0e
1 file changed
package/contents/ui/main.qml
@@ -177,12 +177,16 @@ WallpaperItem {
177
if (isLoading)
178
return;
179
videosConfig = getVideos();
180
+ const wasPlaying = player.player.playing;
181
// console.error(videoUrls);
182
if (videosConfig.length == 0) {
183
main.stop();
184
main.currentSource.filename = "";
- } else {
185
- player.play();
+ } else if (videosConfig.length == 1) {
186
+ player.next(true, true);
187
+ if (!wasPlaying) {
188
+ main.pause();
189
+ }
190
}
191
192
0 commit comments