mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-06 19:12:30 +01:00
Add fadeIn workaround #2
This commit is contained in:
parent
ae845d2604
commit
d06f5b04c1
@ -24,7 +24,7 @@ Item {
|
||||
|
||||
onIsPlayingChanged: isPlaying ? mediaPlayer.play() : mediaPlayer.pause()
|
||||
property bool isWindows: Qt.platform.os === "windows"
|
||||
signal requestFadeIn
|
||||
property bool ready: false
|
||||
|
||||
property string source: Wallpaper.projectSourceFileAbsolute
|
||||
onSourceChanged: {
|
||||
@ -36,9 +36,10 @@ Item {
|
||||
|
||||
MediaPlayer {
|
||||
id: mediaPlayer
|
||||
Component.onCompleted: {
|
||||
mediaPlayer.play()
|
||||
root.requestFadeIn()
|
||||
onPlaybackStateChanged:{
|
||||
if( mediaPlayer.playbackState == MediaPlayer.PlayingState){
|
||||
root.ready = true
|
||||
}
|
||||
}
|
||||
loops: root.loops ? MediaPlayer.Infinite : 1
|
||||
videoOutput: vo
|
||||
|
Loading…
Reference in New Issue
Block a user