added basic video looping backend
This commit is contained in:
parent
b75eb449c0
commit
0d483979cc
3 changed files with 43 additions and 35 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue