From d8abc4eb58e0ec910542e005eb073cf1cb50914e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Mon, 20 Mar 2023 11:11:11 +0800 Subject: Temporary media player & video output --- Course/Detail/Classic.ui.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Course/Detail') 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 { -- cgit v1.2.3