fist comin
This commit is contained in:
49
VideoPlayer.qml
Normal file
49
VideoPlayer.qml
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user