aboutsummaryrefslogtreecommitdiffstats
path: root/com.luxoft.videoplayer/VideoPlayerView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'com.luxoft.videoplayer/VideoPlayerView.qml')
-rw-r--r--com.luxoft.videoplayer/VideoPlayerView.qml16
1 files changed, 15 insertions, 1 deletions
diff --git a/com.luxoft.videoplayer/VideoPlayerView.qml b/com.luxoft.videoplayer/VideoPlayerView.qml
index 50c5050..4e4b546 100644
--- a/com.luxoft.videoplayer/VideoPlayerView.qml
+++ b/com.luxoft.videoplayer/VideoPlayerView.qml
@@ -3,7 +3,7 @@
** Copyright (C) 2020 Luxoft Sweden AB
** Contact: https://www.qt.io/licensing/
**
-** This file is part of the Neptune 3 IVI UI.
+** This file is part of the Neptune 3 UI.
**
** $QT_BEGIN_LICENSE:GPL-QTAS$
** Commercial License Usage
@@ -42,6 +42,14 @@ Item {
id: root
property bool bottomWidgetHide: false
+ property alias sourceUrl: videoplayer.sourceUrl
+
+ signal fileOpenRequested(url fileURL)
+ signal playRequested()
+ signal pauseRequested()
+ signal stopRequested()
+ signal muteRequested(bool muted)
+ signal seekRequested(int offset)
// Top content background
Image {
@@ -57,7 +65,13 @@ Item {
ColumnLayout {
anchors.fill: parent
VideoPlayerPanel {
+ id: videoplayer
anchors.fill: parent
+ onPlayRequested: root.playRequested()
+ onPauseRequested: root.pauseRequested()
+ onStopRequested: root.stopRequested()
+ onSeekRequested: root.seekRequested(offset)
+ onMuteRequested: root.muteRequested(muted)
}
}
}