diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-20 11:11:11 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-03-20 11:11:11 +0800 |
commit | d8abc4eb58e0ec910542e005eb073cf1cb50914e (patch) | |
tree | a90b044cf12c263af5c6b15064e2d4c79dc0ea02 /Course/Detail | |
parent | 4c76e05384f3fb01f8870bd6b8d506015ecbf551 (diff) |
Temporary media player & video output
Diffstat (limited to 'Course/Detail')
-rw-r--r-- | Course/Detail/Classic.ui.qml | 11 |
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 { |