Skip to content

Fix / Optimize PlayerSession Restoration #9

@DavisDevelopment

Description

@DavisDevelopment

The Goal

The end-goal here is to just generally improve session persistence and restoration, both computationally and visually. Visually, the experience of restoring a previous session is fairly jarring when there's visual media involved, and starts to approach frightening if multiple tabs are also involved. This tantrum will often last for as long as 20-30sec, and then everything normalizes.
I'm pretty confident that all of this weirdness can be fixed with a new algorithm for restoring a serialized session.

The Current Implementation

  1. (repeat for each serialized Tab)
    1. create empty Tab
    2. build a media-queue for it
    3. attach restored queue to the blank Tab
    4. find and focus the Tab's active Track
  2. shift focus to the active Tab
  3. mount 'now-playing' track for playback
  4. initiate loading of TrackDatas for all restored tracks, all at once, in alphabetical order

Specification for New Implementation

Metadata

Metadata

Labels

enhancementfeature plandescription including technical details regarding the implementation of a featureperformanceproblems and/or suggestions regarding app's performanceplayerrelated to the Player systemredesign / restructureneeded/pending changes to existing systemsui

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions