From 2144b21544b8c871477574b896902f4159c74cae Mon Sep 17 00:00:00 2001 From: Vasyl Vavrychuk Date: Fri, 29 Jul 2022 12:12:07 +0200 Subject: 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 --- app/VideoPlayer.qml | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'app/VideoPlayer.qml') 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 { -- cgit 1.2.3-korg