1
0
Fork 0
mirror of https://github.com/HenkKalkwater/harbour-sailfin.git synced 2024-05-10 16:12:42 +00:00
harbour-sailfin/core/src/model
Chris Josten c72c10bad4
core: Split PlaybackManager up into smaller parts
The PlaybackManager was a giant class that handled UI bindings, fetching
stream URLS, playback logic.

It now has been split up into:

- ViewModel::PlaybackManager, which handles UI interfacing and allowing
  to swap out the Model::Playback implementation on the fly.
- Model::PlaybackManager, which is an interface for what a
  PlaybackManager must do, handling queues/playlists, and controlling a
  player.
- Model::LocalPlaybackManager, which is an Model::PlaybackManager
  implementation for playing back Jellyfin media within the application.
- Model::PlaybackReporter, which reports the current playback state to
  the Jellyfin server, for keeping track of played items.
- Model::Player, which handles playing back media from an URL and
  the usual play/pause et cetera.

In a future commit, this would allow for introducing a
Model::RemoteJellyfinPlaybackManager, to control other Jellyfin
instances.
2022-11-05 18:20:23 +01:00
..
deviceprofile.cpp Replace not-fully-initializing DTO constructors 2021-09-25 17:07:12 +02:00
item.cpp Replace not-fully-initializing DTO constructors 2021-09-25 17:07:12 +02:00
playbackmanager.cpp core: Split PlaybackManager up into smaller parts 2022-11-05 18:20:23 +01:00
playbackreporter.cpp core: Split PlaybackManager up into smaller parts 2022-11-05 18:20:23 +01:00
player.cpp core: Split PlaybackManager up into smaller parts 2022-11-05 18:20:23 +01:00
playlist.cpp core: Split PlaybackManager up into smaller parts 2022-11-05 18:20:23 +01:00
shuffle.cpp Fix a few PlaybackManager bugs 2021-09-09 22:16:39 +02:00
user.cpp Replace not-fully-initializing DTO constructors 2021-09-25 17:07:12 +02:00