One thing to check is whether the mute switch is on.
AEMM apps respect the position of this control (it's a soft switch in the bottom controls (swipe up from the bottom of the screen) but iOS apps (browser and music) will play through the speaker regardless of the setting.
I've been caught by this, engineering has been caught by this, you might be as well. Easy to fix though.