On my old phone I had an issue with the proximity sensor and front facing camera. This led me to holding my phone backwards to take photos and being unable to hang up phone calls.
I think I put up with this for a year and a half.
I did end up figuring out the issue with the proximity sensor but opening up my phone to reconnect the camera module was too much effort for me.
Man you’d think they’d put in some kind of “Music started on X device so we’re stopping it here” message for your scenario instead of making you sleuth it out like Mulder and Scully