2018-01-31 21:54:25 +01:00
|
|
|
import QtQuick 2.9
|
2018-02-18 16:46:47 +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-18 16:46:47 +01:00
|
|
|
property string tmpVideoPath
|
2018-02-12 15:35:08 +01:00
|
|
|
|
2018-02-18 16:46:47 +01:00
|
|
|
// ScreenPlaySDK {
|
|
|
|
// contentType: "wallpaper"
|
2018-02-12 15:35:08 +01:00
|
|
|
|
2018-02-18 16:46:47 +01:00
|
|
|
// onIncommingMessageError: {
|
|
|
|
// name.text = msg
|
|
|
|
// }
|
2018-02-12 15:35:08 +01:00
|
|
|
|
2018-02-18 16:46:47 +01:00
|
|
|
// onSdkConnected: {
|
|
|
|
// name.text = "connected"
|
|
|
|
// }
|
2018-02-12 15:35:08 +01:00
|
|
|
|
2018-02-18 16:46:47 +01:00
|
|
|
// onSdkDisconnected: {
|
|
|
|
// name.text = "disconnected"
|
|
|
|
// mainwindow.destroyThis()
|
|
|
|
// }
|
|
|
|
// }
|
2018-02-12 15:35:08 +01:00
|
|
|
|
2018-02-18 16:46:47 +01:00
|
|
|
// Text {
|
|
|
|
// id: name
|
|
|
|
// text: qsTr("text")
|
|
|
|
// anchors.centerIn: parent
|
|
|
|
// font.pixelSize: 64
|
|
|
|
// color: "orange"
|
|
|
|
// }
|
2018-02-12 15:35:08 +01:00
|
|
|
|
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-12 15:35:08 +01:00
|
|
|
}
|
2018-02-14 10:21:15 +01:00
|
|
|
}
|
|
|
|
|
2018-02-18 16:46:47 +01:00
|
|
|
|
|
|
|
|
|
|
|
ScreenVideo {
|
|
|
|
id:screenVideo
|
2018-02-12 15:35:08 +01:00
|
|
|
}
|
2018-01-31 21:54:25 +01:00
|
|
|
}
|