1 files changed, 12 insertions, 0 deletions
diff --git a/resources/qml/delegates/AudioMessage.qml b/resources/qml/delegates/PlayableMediaMessage.qml
index f4fa8f54..7498d5b2 100644
--- a/resources/qml/delegates/AudioMessage.qml
+++ b/resources/qml/delegates/PlayableMediaMessage.qml
@@ -3,6 +3,8 @@ import QtQuick.Layouts 1.6
import QtQuick.Controls 2.5
import QtMultimedia 5.6
+import com.github.nheko 1.0
+
Rectangle {
radius: 10
color: colors.dark
@@ -14,6 +16,15 @@ Rectangle {
width: parent.width - 24
anchors.centerIn: parent
+ VideoOutput {
+ visible: eventData.type == MtxEvent.VideoMessage
+ Layout.maximumHeight: 300
+ Layout.minimumHeight: 300
+ Layout.maximumWidth: 500
+ fillMode: VideoOutput.PreserveAspectFit
+ source: media
+ }
+
RowLayout {
Text {
id: positionText
@@ -91,6 +102,7 @@ Rectangle {
id: media
onError: console.log(errorString)
onStatusChanged: if(status == MediaPlayer.Loaded) progress.updatePositionTexts()
+ autoPlay: true
}
Connections {
|