mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 18:22:46 +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
|
@ -25,7 +25,7 @@ Page {
|
|||
property bool isConnected: model.jellyfinId === appWindow.playbackManager.controllingSessionId
|
||||
onClicked: deviceList.activateSession(appWindow.playbackManager, model.index)
|
||||
contentHeight: Theme.itemSizeMedium
|
||||
HighlightImage {
|
||||
Icon {
|
||||
id: deviceIcon
|
||||
anchors {
|
||||
left: parent.left
|
||||
|
|
|
@ -38,7 +38,16 @@ Page {
|
|||
property int subtitleTrack
|
||||
property bool resume: true
|
||||
|
||||
allowedOrientations: Orientation.All
|
||||
allowedOrientations: {
|
||||
if (itemData.width !== null && itemData.height !== null) {
|
||||
return itemData.width / itemData.height > Screen.width / Screen.height
|
||||
? Orientation.LandscapeMask
|
||||
: Orientation.PortraitMask
|
||||
} else {
|
||||
return Orientation.All
|
||||
}
|
||||
}
|
||||
|
||||
showNavigationIndicator: videoPlayer.hudVisible
|
||||
|
||||
VideoPlayer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue