Initial player integration using Qt Multimedia
This commit is contained in:
parent
a333def9c1
commit
844c133017
13 changed files with 306 additions and 14 deletions
18
qml/Main.qml
18
qml/Main.qml
|
@ -21,25 +21,13 @@
|
|||
import QtQuick 2.0
|
||||
import io.thp.pyotherside 1.0
|
||||
|
||||
Rectangle {
|
||||
Item {
|
||||
id: pgst
|
||||
property bool ready: false
|
||||
|
||||
property real scalef: width / 480
|
||||
|
||||
anchors.fill: parent
|
||||
color: '#336688'
|
||||
|
||||
Image {
|
||||
anchors.fill: parent
|
||||
source: 'images/mask.png'
|
||||
}
|
||||
|
||||
Image {
|
||||
anchors.fill: parent
|
||||
source: 'images/noise.png'
|
||||
fillMode: Image.Tile
|
||||
}
|
||||
|
||||
function update(page, x) {
|
||||
var index = -1;
|
||||
|
@ -97,6 +85,10 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
|
||||
Player {
|
||||
id: player
|
||||
}
|
||||
|
||||
PBusyIndicator {
|
||||
anchors.centerIn: parent
|
||||
visible: !pgst.ready
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue