Music plays through phone speaker instead of headphones when app is opened?
Broken headphone jack or the profile setting might be changed, I recommend changing the phone profile and trying if not I'm pretty sure its a hardware fault.