fixing video background loading twice
This commit is contained in:
parent
b5543c0c46
commit
9bc6e17a8f
2 changed files with 9 additions and 11 deletions
|
@ -156,7 +156,10 @@ Item {
|
|||
Connections {
|
||||
target: SlideObject
|
||||
function onVideoBackgroundChanged() {
|
||||
loadVideo();
|
||||
if (SlideObject.videoBackground === "")
|
||||
stopVideo();
|
||||
else
|
||||
loadVideo();
|
||||
}
|
||||
function onIsPlayingChanged() {
|
||||
if(SlideObject.isPlaying)
|
||||
|
@ -174,10 +177,12 @@ Item {
|
|||
}
|
||||
|
||||
function loadVideo() {
|
||||
showPassiveNotification("Loading Video " + vidbackground)
|
||||
previewSlide.loadVideo();
|
||||
}
|
||||
|
||||
function stopVideo() {
|
||||
showPassiveNotification("Stopping Video")
|
||||
previewSlide.stopVideo()
|
||||
}
|
||||
|
||||
|
@ -193,7 +198,6 @@ Item {
|
|||
print(changed);
|
||||
if (changed) {
|
||||
currentServiceItem++;
|
||||
loadVideo();
|
||||
leftDock.changeItem();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue