diff options
author | 2024-09-28 03:41:20 +0900 | |
---|---|---|
committer | 2024-09-29 13:19:34 +0900 | |
commit | b4202d3d5aca7842314edbf010e2e8605a6a9e24 (patch) | |
tree | 542146f5e7bcc613fd019ead16c57c94ea65f83f /SettingsInfo.qml | |
parent | 0404436ada9d6bb695ba1da5b5a2bb68538c2b66 (diff) |
Rework momplay to migrate to Qt6
QtMultimedia has big change from Qt5 to Q6. Existing momiplay
is difficult to migrate to Qt6.
New momiplay is made from Qt Media Player Example. As a result,
it get video player capability.
Bug-AGL: SPEC-5162
Change-Id: Ib754f914fc9d5534721f0d29df689ac11034025a
Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Diffstat (limited to 'SettingsInfo.qml')
-rw-r--r-- | SettingsInfo.qml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/SettingsInfo.qml b/SettingsInfo.qml new file mode 100644 index 0000000..92d910e --- /dev/null +++ b/SettingsInfo.qml @@ -0,0 +1,52 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// Copyright (C) 2024 Automotive Grade Linux +// SPDX-License-Identifier: GPL-3.0+ + +pragma ComponentBehavior: Bound + +import QtQuick +import QtQuick.Layouts +import QtQuick.Controls.Fusion +import QtMultimedia +import Config + +Rectangle { + id: root + implicitWidth: 380 + color: Config.mainColor + border.color: "lightgrey" + radius: 10 + + property alias metadataInfo: metadataInfo + required property MediaPlayer mediaPlayer + required property int selectedAudioTrack + required property int selectedVideoTrack + required property int selectedSubtitleTrack + + MouseArea { + anchors.fill: root + preventStealing: true + } + + Item { + id: bar + anchors.fill: root + anchors.margins: 30 + + Label { + id: label + font.bold: true + font.pixelSize: 20 + text: qsTr("Metadata") + color: Config.secondaryColor + + Layout.fillWidth: true + } + + MetadataInfo { + id: metadataInfo + anchors.fill: bar + anchors.topMargin: label.height + 0 + } + } +} |