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
|
@ -72,8 +72,26 @@ Item {
|
|||
|
||||
Timer {
|
||||
id: mpvLoadingTimer
|
||||
interval: 100
|
||||
onTriggered: mpv.loadFile(videoSource.toString())
|
||||
interval: 2
|
||||
onTriggered: {
|
||||
mpv.loadFile(videoSource.toString());
|
||||
blackTimer.restart();
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: blackTimer
|
||||
interval: 400
|
||||
onTriggered: {
|
||||
black.visible = false;
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: black
|
||||
color: "Black"
|
||||
anchors.fill: parent
|
||||
visible: false
|
||||
}
|
||||
|
||||
Image {
|
||||
|
@ -89,7 +107,7 @@ Item {
|
|||
FastBlur {
|
||||
id: imageBlue
|
||||
anchors.fill: parent
|
||||
source: imageSource == "" ? mpv : backgroundImage
|
||||
source: imageSource === "" ? mpv : backgroundImage
|
||||
radius: blurRadius
|
||||
|
||||
Controls.Label {
|
||||
|
@ -126,6 +144,8 @@ Item {
|
|||
}
|
||||
|
||||
function stopVideo() {
|
||||
mpv.stop()
|
||||
mpv.stop();
|
||||
black.visible = true;
|
||||
showPassiveNotification("Black is: " + black.visible);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue