added basic video looping backend

This commit is contained in:
Chris Cochrun 2022-10-11 16:51:32 -05:00
parent b75eb449c0
commit 0d483979cc
3 changed files with 43 additions and 35 deletions

View file

@ -45,7 +45,8 @@ Item {
text: "Repeat"
padding: 10
onToggled: showPassiveNotification("BOOM!")
checked: video.loop
onToggled: updateLoop(!video.loop)
}
Controls.ToolSeparator {}
@ -247,6 +248,13 @@ Item {
showPassiveNotification(video.title);
}
function updateLoop(value) {
/* changeStartTime(value, false); */
videosqlmodel.updateLoop(video.id, value);
video.loop = value;
showPassiveNotification("Loop changed to: " + video.loop);
}
function changeTitle(text, updateBox) {
if (updateBox)
videoTitleField.text = text;