summaryrefslogtreecommitdiff
path: root/Course/Detail
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-20 11:11:11 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-20 11:11:11 +0800
commitd8abc4eb58e0ec910542e005eb073cf1cb50914e (patch)
treea90b044cf12c263af5c6b15064e2d4c79dc0ea02 /Course/Detail
parent4c76e05384f3fb01f8870bd6b8d506015ecbf551 (diff)
Temporary media player & video output
Diffstat (limited to 'Course/Detail')
-rw-r--r--Course/Detail/Classic.ui.qml11
1 files changed, 11 insertions, 0 deletions
diff --git a/Course/Detail/Classic.ui.qml b/Course/Detail/Classic.ui.qml
index 9d634c9..83af660 100644
--- a/Course/Detail/Classic.ui.qml
+++ b/Course/Detail/Classic.ui.qml
@@ -2,6 +2,7 @@ import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import QtGraphicalEffects 1.15
+import QtMultimedia 5.15
import "Classic/Content" as Content
Flickable {
@@ -173,6 +174,15 @@ Flickable {
}
}
+ MediaPlayer {
+ id: mediaPlayer
+ }
+
+ VideoOutput {
+ anchors.fill: image
+ source: mediaPlayer
+ }
+
Button {
anchors.centerIn: image
display: AbstractButton.IconOnly
@@ -185,6 +195,7 @@ Flickable {
color: "#ffffff"
source: "../../Font-Awesome/svgs/solid/circle-play.svg"
}
+ onClicked: mediaPlayer.play()
}
ColumnLayout {