fist comin

This commit is contained in:
Dark Steveneq
2025-10-18 21:40:02 +02:00
parent 63d9c21e98
commit 6fc0736c2d
12 changed files with 402 additions and 358 deletions

49
VideoPlayer.qml Normal file
View File

@@ -0,0 +1,49 @@
import QtQuick 6.8
import QtMultimedia 6.8
import QtQuick.Controls 6.8
import QtQuick.Layouts 6.8
import QYRComponents 1.0
Rectangle {
visible: Player.hasVideo
color: Colors.surface1
width: childrenRect.width
height: childrenRect.height
ColumnLayout {
anchors.fill: parent
RowLayout {
Button {
text: Player.playing ? "Pause" : "Play"
onClicked: function() {
if (Player.playing) {
Player.pause()
} else {
Player.play();
}
}
}
Button {
text: "Stop"
onClicked: Player.stop()
}
Slider {
Layout.fillWidth: true
from: 0
to: 106
}
Slider {
from: 0
to: 1
value: Player.volume
onMoved: Player.volume = value
}
}
}
}