However, I'm having some trouble with the player playing on mobile devices and it's because I'm using a Flash player. Is there anyway that I can choose whether the browser loads html or flash players depending on the device?

Open to all suggestions here to get this working on both mobile and desktop/laptop devices.