1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-10-07 09:47:07 +02:00
ScreenPlay/ScreenPlayWindow/main.qml

40 lines
673 B
QML
Raw Normal View History

import QtQuick 2.9
2018-02-18 17:02:03 +01:00
import net.aimber.screenplaysdk 1.0
Rectangle {
color: "gray"
anchors.fill: parent
2018-02-18 16:46:47 +01:00
property string tmpVideoPath
//Component.onCompleted: mainwindow.init()
2018-02-18 17:02:03 +01:00
ScreenPlaySDK {
contentType: "wallpaper"
2018-02-18 17:02:03 +01:00
onIncommingMessageError: {
2018-02-18 17:02:03 +01:00
}
2018-02-18 17:02:03 +01:00
onSdkConnected: {
2018-02-18 17:02:03 +01:00
}
2018-02-18 17:02:03 +01:00
onSdkDisconnected: {
//name.text = "disconnected"
screenVideo.state = "destroy"
mainwindow.destroyThis()
}
}
2018-02-14 10:21:15 +01:00
Connections {
target: mainwindow
2018-02-18 16:46:47 +01:00
onPlayVideo: {
screenVideo.videoPath = path
}
2018-02-14 10:21:15 +01:00
}
2018-02-18 16:46:47 +01:00
ScreenVideo {
id:screenVideo
}
}