Update the examples to release resources when app is paused.
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.
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.
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.
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 ;-)