diff --git a/example/qml/App.qml b/example/qml/App.qml index f1781b6..1b79d23 100644 --- a/example/qml/App.qml +++ b/example/qml/App.qml @@ -2,10 +2,12 @@ import QtQuick.Window import QtQuick.Controls import QtQuick.Layouts +import QtMultimedia import FluentUI Window { id:app + MediaPlayer{} Component.onCompleted: { FluApp.init(app) FluTheme.darkMode = FluDarkMode.System diff --git a/src/imports/FluentUI/Controls/FluMediaPlayer.qml b/src/imports/FluentUI/Controls/FluMediaPlayer.qml index 077ad58..2362933 100644 --- a/src/imports/FluentUI/Controls/FluMediaPlayer.qml +++ b/src/imports/FluentUI/Controls/FluMediaPlayer.qml @@ -27,9 +27,9 @@ Rectangle { audioOutput: AudioOutput{ id:audio_output } - onErrorChanged: + onErrorStringChanged: (error)=> { - console.debug(error) + console.debug(errorString) } onPositionChanged: { if(autoSeek){