In the “now playing” settings add an option to disable the wave bar creation when casting. Or if that is not possible, at least prevent wave bars from being created when the display of the phone is off.
Problem solved:
When casting to upmpdcli with the wave bar enabled in Symfonium, the audio data is sent to the player but also to the phone to create the wave bar. Which drains the battery and diminishes the advantage of casting.
Brought benefits:
Less data transmitted through the network, longer battery life of the phone.
The whole file is not send, it’s optimized and cached, even when you play locally the data is read from another channel and not from the playback.
With that said I can add an option to not extract when screen is off, but cache will be less frequently filled and so display of the data will often be missing.
That would probably be good enough for my use case, thanks!
I usually queue up 1-2 albums to be cast to upmpdcli, turn the screen off and read a book, so there’s no need for the phone to do anything other than keeping the playlist on upmpdcli going and I rarely listen to the same albums twice in this way, so not filling the cache is also a non-issue (at least for me).
Thinking about it, I won’t add an option and always not extract the data when screen off or not in the app, it’s fast enough for local device to be done when needed and not that much an issue when streaming.