summaryrefslogtreecommitdiffstats
path: root/app/VideoPlayer.qml
diff options
context:
space:
mode:
authorVasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>2022-07-29 12:12:07 +0200
committerVasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>2022-07-29 12:17:18 +0200
commit2144b21544b8c871477574b896902f4159c74cae (patch)
treec2c57d112199507b3abddcc19354f7a8b35567d2 /app/VideoPlayer.qml
parent54da9d4383a999d2dc2223e7e5215444e04c3f32 (diff)
Update for app framework removal.
Changes: - Remove the autobuild scripts and config.xml used by the app framework widget build. - Update the qmake files to just build a "videoplayer" binary and install it into /usr/bin by default. - Remove the code in main.cpp that handled reading the WebSocket command-line arguments and passing them to binding related code. - Add setenv of QT_QUICK_CONTROLS_STYLE to "AGL" to get the AGL styling used. This replaces a global environment variable definition tied to the old app framework, and makes it more obvious that the style is required for the app to properly work. - Remove MediaScaner based on QtWebSockets which was removed from agl-demo-platform Bug-AGL: SPEC-4182 Change-Id: I022217ffc42da41093a55120554237f95e3aa413 Signed-off-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
Diffstat (limited to 'app/VideoPlayer.qml')
-rw-r--r--app/VideoPlayer.qml17
1 files changed, 1 insertions, 16 deletions
diff --git a/app/VideoPlayer.qml b/app/VideoPlayer.qml
index 7eb252e..83066f3 100644
--- a/app/VideoPlayer.qml
+++ b/app/VideoPlayer.qml
@@ -18,25 +18,10 @@ import QtQuick.Layouts 1.1
import QtQuick.Controls 2.0
import QtMultimedia 5.6
import AGL.Demo.Controls 1.0
-import 'api' as API
ApplicationWindow {
id: root
- API.MediaScanner {
- id: scanner
- url: bindingAddress
-
- property var titles: Object
- onAdded: {
- playlist.addItem(media.path)
- titles[media.path] = media.title
- }
- onRemoved: {
- playlist.removeItem(index)
- }
- }
-
MediaPlayer {
id: player
audioRole: MediaPlayer.MusicRole
@@ -206,7 +191,7 @@ ApplicationWindow {
Layout.fillWidth: true
Label {
Layout.fillWidth: true
- text: scanner.titles[model.source] ? scanner.titles[model.source] : model.source.toString().split('/').reverse()[0]
+ text: model.source.toString().split('/').reverse()[0]
}
}
Label {