Chosen Solution
My UE Boom speaker plays only when i plugged it into charger, however when i charge it, the battery was shown at 70/80/100% I have bought this speaker 5 month ago. So i don’t think that its battery needs replacement. Please fix it.
No matter what the age, it seems definitely a bad battery. I bought a laptop and within a few months only went a little bit without being plugged in (100%-0% in under 30 mins). This degenerated and now only works when plugged in. Will be the same case with your speaker.