mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
24 lines
587 B
QML
24 lines
587 B
QML
import QtQuick
|
|
import QtMultimedia
|
|
import ScreenPlayWallpaper 1.0
|
|
|
|
Video {
|
|
id: root
|
|
volume: Wallpaper.volume
|
|
source: Wallpaper.projectSourceFileAbsolute
|
|
Component.onCompleted: {
|
|
root.play()
|
|
}
|
|
onStopped: {
|
|
if (Wallpaper.loops)
|
|
root.play()
|
|
}
|
|
|
|
//loops: MediaPlayer.Infinite
|
|
// onErrorOccurred: function (error, errorString) {
|
|
// console.log("[qmlvideo] VideoItem.onError error " + error
|
|
// + " errorString " + errorString)
|
|
// root.fatalError()
|
|
// }
|
|
}
|