This commit is contained in:
zhuzihcu
2023-03-24 15:21:47 +08:00
parent 1f1e8b0ed0
commit d8d95399cd
9 changed files with 77 additions and 8 deletions

View File

@ -0,0 +1,28 @@
import QtQuick 2.15
import QtMultimedia 5.9
Item {
width: 320
height: 240
MediaPlayer {
id: mediaplayer
source: "http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"
}
VideoOutput {
anchors.fill: parent
source: mediaplayer
}
MouseArea {
anchors.fill: parent
onPressed: {
console.debug("------>")
mediaplayer.play()
}
}
}