mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-04 01:42:44 +00:00
Improve PlaybackManager stability, added PlaybackBar
- PlaybackManager now takes ownership of set items - PlaybackManager can play items just by their itemId, avoids useless item creation on the QML side of things. - Allow calling Jellyfin::registerTypes with a different URI - Minor code cleanup
This commit is contained in:
parent
7e77abc173
commit
b699f6e74d
12 changed files with 170 additions and 16 deletions
|
@ -43,6 +43,18 @@ ApplicationWindow {
|
|||
// Bad way to implement settings, but it'll do for now.
|
||||
property bool showDebugInfo: false
|
||||
|
||||
property bool _hidePlaybackBar: false
|
||||
|
||||
Connections {
|
||||
target: pageStack
|
||||
onCurrentPageChanged: {
|
||||
_hidePlaybackBar = "__videoPlaybackPage" in pageStack.currentPage
|
||||
console.log("Current page changed: " + _hidePlaybackBar)
|
||||
}
|
||||
}
|
||||
|
||||
bottomMargin: playbackBar.visibleSize
|
||||
|
||||
//FIXME: proper error handling
|
||||
Connections {
|
||||
target: ApiClient
|
||||
|
@ -119,7 +131,9 @@ ApplicationWindow {
|
|||
preventBlanking: _mediaPlayer.playbackState == MediaPlayer.PlayingState && _mediaPlayer.hasVideo
|
||||
}
|
||||
|
||||
DockedPanel {
|
||||
PlaybackBar {
|
||||
id: playbackBar
|
||||
open: !_hidePlaybackBar//_mediaPlayer.playbackState != MediaPlayer.StoppedState
|
||||
manager: _playbackManager
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue