Questions tagged [html5-audio]

The audio element is used to embed sound content in an HTML or XHTML document. The audio element was added as part of HTML5.

HTML5 defines a new element which specifies a standard way to embed an audio file on a web page: the <audio> element.

The control attribute adds audio controls, like play, pause, and volume.
You should also insert text content between the <audio> and </audio> tags for browsers that do not support the <audio> element.
The <audio> element allows multiple <source> elements. <source> elements can link to different audio files. The browser will use the first recognized format.

Read on at w3c HTML5 Audio. More information can also be found on Wikipedia.

Related Articles:

3529 questions
1
vote
2 answers

Incorrect Content-Range and Content-Length in 206 Partial Content Request

I have an Html audio tag where the src is set with a Blob Url of a wav file recorded with the WebAudio Api. When seeking to a different part of the audio, the 206 Partial Content response headers are populated with an incorrect Content-Length and…
JimmyTwoShoes
  • 51
  • 1
  • 7
1
vote
0 answers

Opera

Ok this has me wondering what have I done, either reactjs/nodejs is turning my perfect html5 app into a flash app. without my knowledge or Opera GX thinks it needs to play audio files through a flash plugin. It is basically stopping autoplay due to…
RussellHarrower
  • 6,470
  • 21
  • 102
  • 204
1
vote
1 answer

Add OGG Theora Vorbis audio support to IX Web Hoting via htaccess file or markup

I've seen a lot of conflicting information and am not sure how to proceed. I'd like to add OGG MIME type to an htaccess file to support Firefox HTML5 audio/video from my server. I've seen that the file is literally labeled ".htaccess" and that there…
technopeasant
  • 7,809
  • 31
  • 91
  • 149
1
vote
1 answer

'audio/wav' mime type not supported by MSE SouceBuffer object, but audio src attribute pointing at .wav plays just fine

I'm trying create a SourceBuffer from the W3 Media Source Extension API with Mime type 'audio/wav' like so: let sourceBuffer = mediaSource.addSourceBuffer('audio/wav'); However I get a "NotSupportedError": Failed to execute 'addSourceBuffer' on…
Allen More
  • 858
  • 3
  • 14
  • 25
1
vote
1 answer

Play / Pause Audio Upon Button Click Without Delay

I'm looking for a way to make html5 audio play as soon as button is clicked. Right now, it does work; but not very reliably. My file is a 300Kb MP3 (128Kbps) that is hosted on AWS Cloudfront.
1
vote
0 answers

How to remember user's point on audio timeline as it's done on Youtube?

I'm using html5 with a custom made audio player. So I'd like to let users remember the point on audio player timeline to let it be played from the last moment on next time they visit the website. As an example you can see it on videos on Youtube,…
Vlad Zaev
  • 45
  • 6
1
vote
0 answers

Pause audio inside a container when a new container is selected

I'm using an svg map to display multiple audio tracks when a state is selected. The animated audio player I'm using brings audio through a canvas element so I can't use traditional targeting $('audio').pause to pause playing audio. I have to do…
1
vote
0 answers

Play audio doesn't work on form submit on iOS

I have a form that plays Audio on submit (Vue but nvm). It works perfect everywhere but not on iOS. On iOS it works only on click on a button element, but it doesn't work on click on a "return" button on iOS keyboard :( Why doesn't iOS trusts submit…
1
vote
1 answer

My audio does not play when I click on the play button

This is how my script looks like: