1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-10-07 09:47:07 +02:00
ScreenPlay/ScreenPlayWindow/main.qml
kelteseth c5a9e06922 Add steam deployable version
No now use the same folder for ScreenPlay and ScreenPlayWindow because I gave up on setting the dll dir for ScreenPlayWindow. This means we cannot have two C++ classes with the same name :(
2018-02-22 15:22:10 +01:00

40 lines
673 B
QML

import QtQuick 2.9
import net.aimber.screenplaysdk 1.0
Rectangle {
color: "gray"
anchors.fill: parent
property string tmpVideoPath
//Component.onCompleted: mainwindow.init()
ScreenPlaySDK {
contentType: "wallpaper"
onIncommingMessageError: {
}
onSdkConnected: {
}
onSdkDisconnected: {
//name.text = "disconnected"
screenVideo.state = "destroy"
mainwindow.destroyThis()
}
}
Connections {
target: mainwindow
onPlayVideo: {
screenVideo.videoPath = path
}
}
ScreenVideo {
id:screenVideo
}
}