mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-03 00:25:25 +08:00
update
This commit is contained in:
28
src/controls/FluMediaPlayer.qml
Normal file
28
src/controls/FluMediaPlayer.qml
Normal 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()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user