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:

3259 questions
1
vote
1 answer

meteor upload a file to mongodb

I am trying to find a way to upload an mp3 file into a mongo collection through my meteor collection. Its a bit challenging as I end up with "C:\fakepath\audio.mp3" as what is saved in the collection. Any help is greatly appreciated. Thanks.
Ally Jr
  • 938
  • 1
  • 13
  • 23
1
vote
0 answers

jQuery: Append

I need to append audio players on click. They should autoplay since that saves an annoying extra click. Now the problem is that appending the audio player starts the sound file twice (at least in Chrome). HTML:
Martin
  • 1,927
  • 6
  • 24
  • 42
1
vote
1 answer

Need help fixing my javascript "for loop" to play an audio playlist

I'm working on a very simple audio playlist that automatically plays each song after the previous one has finished. I am using pure javascript and the html5 audio tag. How can I fix this code up so it works properly? var i = ['first.mp3',…
LightHouse
  • 73
  • 6
1
vote
1 answer

Web Audio API 24db Filter

The web audio biquad filter is 12db. Is it possible to create a 24db filter by connecting 2 of these together? I have tried connecting 2 together and it certainly creates a much more extreme effect with the resonance being particularly harsh. I…
ezero
  • 1,020
  • 3
  • 8
  • 24
1
vote
1 answer

HTML 5 Audio controls

I would like to add a play button somewhere on the page, and when they click it, the player at the bottom will play also, then the play button will disappear. Is that possible? Thanks.
tmv1845331
  • 71
  • 2
  • 10
1
vote
0 answers

HTML5 audio recording in MP3 format

I need to record audio through the HTML5, but you need to write directly in MP3. The reason is that in the standard version of the sound is written in WAV, 5 minutes = 500Mbit - this is a very high resolution. Write to WAV and then recode also tried…
vladimir61
  • 11
  • 3
1
vote
1 answer

HTML5

The
1
vote
1 answer

How to change audio source for Firefox?

I use the following code to change source of HTML5 audio element: $('#mp3').attr('src', url); // please note that remote URL is used $("#audio").load(); and here is the HTML:
1
vote
0 answers

HTML5 Audio player unseekable in chrome while works in firefox

I have built a Laravel app as follow, Controller -> Retrieves few audio files path and sends it to view. View -> Renders audio element with src attribute with files path obtained from controller. I am able to play, pause. But unable to seek in…
Kiran
  • 31
  • 1
  • 3
1
vote
1 answer

preload html5 audio in order

I have a list of songs I want to play when the user clicks a button, but it seems that the songs all try to load at the same time so it takes a while for it to load. If I leave the page open for about 5 minutes the music will finally play, but I…
ZomoXYZ
  • 1,415
  • 15
  • 40
1
vote
0 answers

cordova android won't play local audio file

I want to play local audio file using tag audio. when I put everything works just fine, but when I put
1
vote
1 answer

HTML 5: audio controls without progress bar?

I'm trying to build a responsive audio stream player with html 5. I already achieved a fallback-solution to flash to keep things x-browser-compatible, but I got into trouble when it came to styling the player. A standard example for the html 5 audio…
LaMigra
  • 15
  • 1
  • 3
1
vote
0 answers

.stop(), and .pause() don't work where .play() does work

On a .js page in a Visual Studio express ASP.NET solution why does window.onload() { document.getElementById('ambience').play(); } work(and it does!), but why does window.onload() { document.getElementById('ambience').play();…
1
vote
2 answers

Preload howler.js sound files with preloadJS

I have a game that uses preloadJS to load the assets. I'm having all kinds of problems with sound on iPads using soundJS but from tests it seems that audio plays fine using howler.js so I'm thinking about using that library for the iPad. My…
Paul Hastings
  • 11
  • 1
  • 3
1 2 3
99
100