Skip to content

fix(player): restore compressor settings on player creation - #3241

Merged
fire-light42 merged 1 commit into
recloudstream:masterfrom
SamoTech:fix/restore-compressor-settings
Oct 9, 2026
Merged

fire-light42 merged 1 commit into
recloudstream:masterfrom
SamoTech:fix/restore-compressor-settings

Conversation

@SamoTech

@SamoTech SamoTech commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes the dynamic range compressor settings not being reliably restored when a new player instance is created.

The compressor is created during player/renderers initialization, while the existing UI restoration path can run before the compressor is available. This can leave a newly created player using default compressor values instead of the user's saved settings.

This change:

  • Restores persisted compressor settings immediately when DynamicRangeCompressor is created.
  • Centralizes the compressor preference keys in DynamicRangeCompressor.
  • Reuses the same restoration logic from FullScreenPlayer.
  • Preserves the existing defaults when no saved settings exist.
  • Keeps the existing save behavior unchanged.

Related issue: #3237

Why?

A new player instance should behave consistently with the user's previously selected compressor settings. Restoring the values at compressor creation makes the behavior independent of the UI binding lifecycle.

Testing

I performed a static review of the final diff and verified that the branch is based directly on master.

I was not able to obtain a local Gradle build result before opening this PR, so I am not claiming the project build has passed locally. The repository's pull-request CI should provide the authoritative build, lint, ABI, and check results.

AI disclosure

This change was developed with AI assistance. I reviewed the relevant player lifecycle, compressor implementation, existing persistence logic, repository contribution policy, and final diff before preparing the PR.

@SamoTech
SamoTech force-pushed the fix/restore-compressor-settings branch 2 times, most recently from dcebbc1 to b1831d8 Compare October 7, 2026 12:06
@SamoTech
SamoTech force-pushed the fix/restore-compressor-settings branch from b1831d8 to e7d1888 Compare October 7, 2026 12:06
@fire-light42
fire-light42 merged commit 4846fba into recloudstream:master Oct 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants