adding functionality to preview slider
This commit is contained in:
parent
016756df72
commit
a6d2eb28fd
4 changed files with 15 additions and 2 deletions
|
@ -188,7 +188,6 @@ Controls.Page {
|
|||
if (present)
|
||||
{
|
||||
presentation.loadVideo();
|
||||
pWindow.screen = presentationScreen;
|
||||
print("For window: Screen is: " + pWindow.screen + " And selected screen is: " + presentationScreen);
|
||||
pWindow.showFullScreen();
|
||||
pWindow.screen = presentationScreen;
|
||||
|
@ -197,4 +196,9 @@ Controls.Page {
|
|||
else
|
||||
pWindow.close();
|
||||
}
|
||||
|
||||
function changeVidPos(pos) {
|
||||
presentation.slide.seek(pos);
|
||||
pWindow.slide.seek(pos);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,8 @@ Item {
|
|||
property url imagebackground
|
||||
property url vidbackground
|
||||
|
||||
property Item slide: previewSlide
|
||||
|
||||
/* Component.onCompleted: nextSlideAction() */
|
||||
|
||||
GridLayout {
|
||||
|
@ -132,7 +134,7 @@ Item {
|
|||
to: previewSlide.mpvDuration
|
||||
value: previewSlide.mpvPosition
|
||||
live: true
|
||||
onMoved: print("moved slider");
|
||||
onMoved: changeVidPos(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,9 @@ import org.presenter 1.0
|
|||
|
||||
Window {
|
||||
id: presentationWindow
|
||||
|
||||
property Item slide: presentationSlide
|
||||
|
||||
title: "presentation-window"
|
||||
height: maximumHeight
|
||||
width: maximumWidth
|
||||
|
|
|
@ -173,6 +173,10 @@ Item {
|
|||
showPassiveNotification("Black is: " + black.visible);
|
||||
}
|
||||
|
||||
function seek(pos) {
|
||||
mpv.seek(pos);
|
||||
}
|
||||
|
||||
function quitMpv() {
|
||||
mpv.quit();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue