mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-04 01:42:44 +00:00
Add user-configurable playback settings
* PlaybackManager has been updated to workaround limitiations in QtMultimedia * PlaybackManager now sends the DeviceProfile to the server when determining the playback url. This makes the Jellyfin server send information back about transcoding. * The DeviceProfile type has been changed from an QJsonObject into the DTO generated by the OpenAPI descripton. * A settings page has been added on SailfishOS that allows the user to configure the PlaybackManager to their whishes. * The DebugInfo page on SailfishOS now persists its settings (closes #8)
This commit is contained in:
parent
64ad37707c
commit
6bfe783bec
13 changed files with 388 additions and 196 deletions
|
@ -22,6 +22,7 @@ import Sailfish.Silica 1.0
|
|||
import QtMultimedia 5.6
|
||||
import nl.netsoj.chris.Jellyfin 1.0
|
||||
|
||||
import Nemo.Configuration 1.0
|
||||
import Nemo.Notifications 1.0
|
||||
import Nemo.KeepAlive 1.2
|
||||
|
||||
|
@ -41,9 +42,10 @@ ApplicationWindow {
|
|||
property var itemData: pageStack.currentPage.itemData
|
||||
|
||||
// Bad way to implement settings, but it'll do for now.
|
||||
property bool showDebugInfo: true
|
||||
property alias showDebugInfo: config.showDebugInfo
|
||||
property bool _hidePlaybackBar: false
|
||||
|
||||
|
||||
bottomMargin: playbackBar.visibleSize
|
||||
ApiClient {
|
||||
id: _apiClient
|
||||
|
@ -132,6 +134,12 @@ ApplicationWindow {
|
|||
Component.onCompleted: playbackBar.parent = __silica_applicationwindow_instance._rotatingItem
|
||||
}
|
||||
|
||||
ConfigurationGroup {
|
||||
id: config
|
||||
path: "/nl/netsoj/chris/Sailfin"
|
||||
property bool showDebugInfo: false
|
||||
}
|
||||
|
||||
//FIXME: proper error handling
|
||||
Connections {
|
||||
target: apiClient
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue