Code Review
/
apps
/
videoplayer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add gitlab issue/merge request templates
[apps/videoplayer.git]
/
app
/
VideoPlayer.qml
diff --git
a/app/VideoPlayer.qml
b/app/VideoPlayer.qml
index
7eb252e
..
83066f3
100644
(file)
--- 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 QtQuick.Controls 2.0
import QtMultimedia 5.6
import AGL.Demo.Controls 1.0
-import 'api' as API
ApplicationWindow {
id: root
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
MediaPlayer {
id: player
audioRole: MediaPlayer.MusicRole
@@
-206,7
+191,7
@@
ApplicationWindow {
Layout.fillWidth: true
Label {
Layout.fillWidth: true
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 {
}
}
Label {