2 in 1 progress bar

I'm trying to do is a progress bar that after the music stopped playing it will show battery on the progress bar

Can it possibly to do it? If not, what do you think an alternative to that?


You can put a progress music in an overlap group and a battery bar in an overlap group, one over the other, one for music other for battery, In the visibility of the overlap group put

$if(mi(state)=playing,always, never)$ in one

$if(mi(state)=playing, never, always)$ in the other

Thank you. I will try this later