From cb963ea6f2105790b028c597c4d4607b8bfbc276 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 30 May 2021 20:45:54 +0300 Subject: Message.qml: print MediaPlayer errors to console --- qml/Message.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qml') diff --git a/qml/Message.qml b/qml/Message.qml index 6346124..cd574c1 100644 --- a/qml/Message.qml +++ b/qml/Message.qml @@ -69,6 +69,7 @@ RowLayout { MediaPlayer { id: player source: Qt.resolvedUrl("file:" + messageObject.message.file) + onError: console.log("Audio MediaPlayer error: " + errorString) } Label { font.bold: true @@ -89,6 +90,7 @@ RowLayout { MediaPlayer { id: videoplayer source: Qt.resolvedUrl("file:" + messageObject.message.file) + onError: console.log("Video MediaPlayer error: " + errorString) } VideoOutput { source: videoplayer -- cgit v1.2.3-70-g09d2