mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-10-07 09:47:07 +02:00
39 lines
692 B
QML
39 lines
692 B
QML
import QtQuick 2.9
|
|
import net.aimber.screenplaysdk 1.0
|
|
|
|
Rectangle {
|
|
color: "gray"
|
|
anchors.fill: parent
|
|
property string tmpVideoPath
|
|
|
|
ScreenPlaySDK {
|
|
contentType: "wallpaper"
|
|
|
|
onIncommingMessageError: {
|
|
//name.text = msg
|
|
}
|
|
|
|
onSdkConnected: {
|
|
//name.text = "connected"
|
|
}
|
|
|
|
onSdkDisconnected: {
|
|
//name.text = "disconnected"
|
|
screenVideo.state = "destroy"
|
|
mainwindow.destroyThis()
|
|
}
|
|
}
|
|
|
|
|
|
Connections {
|
|
target: mainwindow
|
|
onPlayVideo: {
|
|
screenVideo.videoPath = path
|
|
}
|
|
}
|
|
|
|
ScreenVideo {
|
|
id:screenVideo
|
|
}
|
|
}
|