Odd Speaker Issue on 11 Pro Max - eviltoast

My phone suddenly stopped playing videos this morning when it was fine the night before. No form of video would play not even my camera roll videos.

After a bunch of troubleshooting, I finally found out that my speaker is the issue as when connected to my AirPods, the video plays. My phones speaker is completely silent, but I don’t understand why that would stop videos from not playing…

I know my speakers are in great shape and I assume this is a software issue as why would the phone not play any type of videos just because the speaker isn’t working, shouldn’t it just play without any sounds if it was a hardware issue?

Has anyone had similar issues? I am using the new 17.1.1 IOS and have tried everything and nothing seems to help. My speakers don’t work at all, only the earpiece works when on call.