From 1b97b197a41357e3786e2e0aaf0f914090206aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Fri, 31 Mar 2023 13:03:36 +0800 Subject: [PATCH] update --- src/controls/FluMediaPlayer.qml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/controls/FluMediaPlayer.qml b/src/controls/FluMediaPlayer.qml index 88cfcc9..cf2c4dd 100644 --- a/src/controls/FluMediaPlayer.qml +++ b/src/controls/FluMediaPlayer.qml @@ -44,10 +44,9 @@ Rectangle { onMediaStatusChanged: (status)=> { if(status===2){ - mediaplayer.play() - }else if(status===5){ slider.maxValue = mediaplayer.duration showControl = true + mediaplayer.play() } } } @@ -70,10 +69,15 @@ Rectangle { leftMargin: 10 rightMargin: 10 } + opacity: showControl MouseArea{ anchors.fill: parent } - + Behavior on opacity{ + NumberAnimation{ + duration: 150 + } + } Behavior on y{ NumberAnimation{ duration: 150