Jump to content

Audio element with different response


IndianaGuy

Recommended Posts

The progress bar to go to different places on the audio file are available on Android devices. The same exact page on an Apple device will not let me have the progress bar. Why is that and how can I fix it? thank you

<audio id="exposure" controls onplay="myplay()">
<source src="<? echo $Exposure; ?>" type="audio/mpeg" align="middle">
Your browser does not support the audio element.
</audio>  <br>
Edited by IndianaGuy
Link to comment
Share on other sites

There's no specification indicating what controls the audio player should have, so each browser does its own thing. Perhaps browser vendors on iPhone decided that the screen wasn't large enough for a full audio player.

 

Thanks to the Audio API, you can create your own controls with HTML and Javascript if you want your player to look the same on all devices. I believe that's what Youtube does.

Link to comment
Share on other sites

Sounds great. Would you happen to have a link to guide me to the right place. I have been doing a bit of research and it seems like many people decide to post opinions and codes that frankly are just bad ways of solving simple problems.

It's the progress bar that I am most concerned with. Thank you

Thank you

Edited by IndianaGuy
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...