some basics of video times - unfinished

This commit is contained in:
Chris Cochrun 2024-04-10 09:49:50 -05:00
parent 0a895e1f04
commit 70040c5149
3 changed files with 23 additions and 17 deletions

View file

@ -62,12 +62,13 @@ Item {
Component.onCompleted: mpvLoadingTimer.start()
onFileLoaded: {
/* showPassiveNotification(videoSource + " has been loaded"); */
if (itemType == "song")
if (itemType == "song") {
mpv.setProperty("loop", "inf");
else if (vidLoop)
} else if (vidLoop) {
mpv.setProperty("loop", "inf");
else
} else {
mpv.setProperty("loop", "no");
}
/* showPassiveNotification(mpv.getProperty("loop")); */
mpv.setProperty("sid", "no");
@ -88,6 +89,7 @@ Item {
interval: 100
onTriggered: {
/* showPassiveNotification("YIPPEEE!") */
mpv.stop();
if (vidStartTime > 0 && vidStartTime < vidEndTime) {
/* mpv.seek(vidStartTime); */
let start = "+" + vidStartTime;