mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-10-07 09:47:07 +02:00
c5a9e06922
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 :(
40 lines
673 B
QML
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
|
|
}
|
|
}
|