just_audio icon indicating copy to clipboard operation
just_audio copied to clipboard

Update the examples to release resources when app is paused.

Open ryanheise opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? Please describe.

The example should demonstrate proper resource management to help new plugin users write good code.

Describe the solution you'd like

The player should be stopped when the app is paused which will release resources.

Describe alternatives you've considered

None.

Additional context

N/A.

ryanheise avatar Jul 01 '21 13:07 ryanheise

I get the reason behind this, however, if a user pauses from background service, the service also stops in that case. If user wants to resume it has to open the app instead of "just" hitting play in background service.

bafplus avatar Aug 01 '21 08:08 bafplus

That's not the same feature (above I am talking about releasing the player's decoders when not in use). You can ask how to achieve the behaviour you desire on StackOverflow, or if you want something that's not currently supported you can submit a new feature request for it.

ryanheise avatar Aug 01 '21 08:08 ryanheise

Ah ok, get it....but it potentialy may be a side effect to take into account. Since it works perfectly now at this point, would be a shame if it breaks ;-)

bafplus avatar Aug 01 '21 08:08 bafplus