summaryrefslogtreecommitdiff
path: root/Course
diff options
context:
space:
mode:
Diffstat (limited to 'Course')
-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 {