gave the slide a black to put in front of loading videos
This commit is contained in:
parent
62e1b07ec1
commit
e52d44f937
10 changed files with 136 additions and 12 deletions
|
@ -16,7 +16,7 @@ Item {
|
|||
property url imagebackground
|
||||
property url vidbackground
|
||||
|
||||
Component.onCompleted: nextSlideText()
|
||||
Component.onCompleted: nextSlideAction()
|
||||
|
||||
GridLayout {
|
||||
anchors.fill: parent
|
||||
|
@ -122,6 +122,10 @@ Item {
|
|||
previewSlide.loadVideo();
|
||||
}
|
||||
|
||||
function stopVideo() {
|
||||
previewSlide.stopVideo()
|
||||
}
|
||||
|
||||
function nextSlideAction() {
|
||||
if (itemType === "song") {
|
||||
if (textIndex === 0) {
|
||||
|
@ -135,13 +139,17 @@ Item {
|
|||
} else {
|
||||
print("Next slide time");
|
||||
textIndex = 0;
|
||||
previewSlide.text = "";
|
||||
clearText();
|
||||
nextSlide();
|
||||
}
|
||||
} else if (itemType === "video")
|
||||
} else if (itemType === "video") {
|
||||
clearText();
|
||||
nextSlide();
|
||||
else if (itemType === "image")
|
||||
}
|
||||
else if (itemType === "image") {
|
||||
clearText();
|
||||
nextSlide();
|
||||
}
|
||||
}
|
||||
|
||||
function nextSlide() {
|
||||
|
@ -149,4 +157,8 @@ Item {
|
|||
changeServiceItem(currentServiceItem);
|
||||
print(slideItem);
|
||||
}
|
||||
|
||||
function clearText() {
|
||||
previewSlide.text = "";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue