Files
qyouvideo/VideoPlayer.qml
Dark Steveneq c91fba3ee2 plhabj workding
2025-10-18 23:00:53 +02:00

50 lines
1.0 KiB
QML

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: 64
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
}
}
}
}