2018-01-31 21:54:25 +01:00
|
|
|
import QtQuick 2.9
|
2018-02-12 15:35:08 +01:00
|
|
|
import net.aimber.screenplaysdk 1.0
|
2018-01-31 21:54:25 +01:00
|
|
|
|
|
|
|
Rectangle {
|
2018-02-12 15:35:08 +01:00
|
|
|
color: "gray"
|
2018-01-31 21:54:25 +01:00
|
|
|
anchors.fill: parent
|
2018-02-12 15:35:08 +01:00
|
|
|
|
|
|
|
|
|
|
|
ScreenPlaySDK {
|
|
|
|
contentType: "wallpaper"
|
|
|
|
|
|
|
|
onIncommingMessageError: {
|
|
|
|
name.text = msg
|
|
|
|
}
|
|
|
|
|
|
|
|
onSdkConnected: {
|
|
|
|
name.text = "connected"
|
|
|
|
}
|
|
|
|
|
|
|
|
onSdkDisconnected: {
|
|
|
|
name.text = "disconnected"
|
2018-02-14 10:21:15 +01:00
|
|
|
//mainwindow.destroyThis()
|
2018-02-12 15:35:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-14 10:21:15 +01:00
|
|
|
Connections {
|
|
|
|
target: mainwindow
|
|
|
|
onPlayVideo:{
|
|
|
|
loaderVideo.active = true
|
|
|
|
print(path)
|
|
|
|
//loaderVideo.item.videoPath = path
|
|
|
|
|
2018-02-12 15:35:08 +01:00
|
|
|
}
|
2018-02-14 10:21:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
Loader {
|
|
|
|
id:loaderVideo
|
|
|
|
anchors.fill: parent
|
|
|
|
asynchronous: true
|
|
|
|
active: false
|
|
|
|
source: "qrc:/ScreenVideo.qml"
|
|
|
|
onStateChanged: {
|
|
|
|
if(status == Loader.Ready){
|
|
|
|
loaderVideo.item.isPlaying = true
|
2018-02-12 15:35:08 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-01-31 21:54:25 +01:00
|
|
|
}
|