mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-06 10:32:44 +00:00
ui: improve empty state, add remote playback indicator
This commit is contained in:
parent
3783de9ce7
commit
7c6d8486de
7 changed files with 76 additions and 13 deletions
|
@ -50,6 +50,16 @@ SilicaItem {
|
|||
color: Theme.overlayBackgroundColor
|
||||
}
|
||||
|
||||
RemoteImage {
|
||||
id: backdrop
|
||||
anchors.fill: parent
|
||||
visible: !manager.controllingSessionLocal
|
||||
|| [J.MediaStatus.NoMedia, J.MediaStatus.Loading].indexOf(manager.mediaStatus) >= 0
|
||||
fillMode: Image.PreserveAspectFit
|
||||
source: Utils.itemBackdropUrl(apiClient.baseUrl, item, 0, {"maxWidth": parent.width})
|
||||
blurhash: item.imageBlurHashes["Backdrop"][item.backdropImageTags[0]]
|
||||
}
|
||||
|
||||
VideoOutput {
|
||||
id: videoOutput
|
||||
source: manager
|
||||
|
@ -64,7 +74,7 @@ SilicaItem {
|
|||
anchors.fill: parent
|
||||
manager: playerRoot.manager
|
||||
title: videoPlayer.title
|
||||
|
||||
alwaysVisible: !manager.controllingSessionLocal
|
||||
}
|
||||
|
||||
VideoError {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue