I have sound when my phone rings or recieves a text message but there is no sound when i play music

I have checked the volume settings in settings under sound. I get sound when a call comes in and the speaker works on speaker phone. I have no sound when I play games or music.
Next time you fire up a game try using the volume rocker.

Original thread: https://forums.imore.com/threads/i-have-sound-when-my-phone-rings-or-recieves-a-text-message-but-there-is-no-sound-when-i-play-music.370161/