mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 05:38:37 +08:00
47 lines
998 B
QML
47 lines
998 B
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.15
|
|
import QtQuick.Window 2.15
|
|
import QtGraphicalEffects 1.15
|
|
import FluentUI 1.0
|
|
|
|
FluScrollablePage{
|
|
|
|
title:"MediaPlayer"
|
|
leftPadding:10
|
|
rightPadding:10
|
|
bottomPadding:20
|
|
|
|
onVisibleChanged: {
|
|
if(visible){
|
|
player.play()
|
|
}else{
|
|
player.pause()
|
|
}
|
|
}
|
|
|
|
FluArea{
|
|
width: parent.width
|
|
height: 320
|
|
Layout.topMargin: 20
|
|
paddings: 10
|
|
ColumnLayout{
|
|
anchors{
|
|
verticalCenter: parent.verticalCenter
|
|
left:parent.left
|
|
}
|
|
|
|
FluMediaPlayer{
|
|
id:player
|
|
// source:"http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4"
|
|
source:"http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"
|
|
// source:"http://video.chinanews.com/flv/2019/04/23/400/111773_web.mp4"
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|