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

why can't I declare a variable, convert it to an integer and use that integer in my code?

I am trying to create a playlist of audio files. The html contains three audio tags:
1
vote
1 answer

Connecting MediaElementAudioSourceNode to AudioContext.destination doesn't work

Here's a fiddle to show the problem. Basically, whenever the createMediaElementSource method of an AudioContext object is called, the output of the audio element is re-routed into the returned MediaElementAudioSourceNode. This is all fine and…
Birjolaxew
  • 767
  • 7
  • 25
1
vote
1 answer

Displaying metadata of audio on HTML5

I'm trying to make an HTML file to display a player for an audio stream I broadcast throw Traktor Pro 2 (DJ Software). It wasn't hard to make but streaming with VLC i saw that it showed the name of every song i was playing... Is there a way to…
Frank Fourlas
  • 131
  • 1
  • 13
1
vote
1 answer

Customizing the Audio Tag in HTML5

The following code snippet generates the following audio controls: Question 1: Is there a way to remove the progress bar portion of these audio controls, such that the only…
George
  • 5,909
  • 2
  • 24
  • 53
1
vote
2 answers

How to play MP3 format data in browser?

I am using php for server side scripting. In default I am using "audio" tag for playing audio files, Because my api call returns file path so it is easily handle. for example my example look like this: { 'id':123, 'question':'tell about your…
Mj.
  • 191
  • 1
  • 4
  • 12
1
vote
1 answer

Audio encoding issues in certain Android devices for online streaming playback

Background: I am developing an Android mobile application where users record audio in the app then upload it to a server, where it can be streamed back to the community. Up until now we have used .WAV format which outputs a pretty large file size…
1
vote
1 answer

Mute button for my canvas animation

I have a sound which i am playing in my canvas animation at a specified time in the animation sequence. The code I am using for this is: var snd = new Audio("sounds/explosion.mp3"); snd.play(); The sound works perfectly. I want to include a mute…
Smithy
  • 689
  • 9
  • 25
1
vote
0 answers

JavaScript Audio API bug in Google Chrome [mobile]

i created an script that plays an audio file in your browser and analyse the frequency. With this frequency data it creates a graphic based on the data. It works fine in Google Chrome [Desktop] but in the Google Chrome on Android the…
Nimmi
  • 143
  • 1
  • 11
1
vote
1 answer

Multiple Play/Pause button with audio tag

Im having trouble with more than 1 play/pause button in a same code, i have a table where there is a button and then the song name on cell to the right. the button works perfectly, here is the code(got it from internet):
Nighthunter22
  • 253
  • 4
  • 19
1
vote
1 answer

Can't Access Dynamically Created Audio Element onClick in Chrome with jQuery

In Chrome, I can't access an onclick method for an audio element (Chrome Version 41) ... for 30 Audio Files html += '
'; html += '
shanehoban
  • 878
  • 9
  • 26
1
vote
1 answer

Initialize on server side

I have created a Node Webkit application using SailsJS in back-end and AngularJS in front-end. I want to integrate audio-chat in my application using EasyRTC. I tried the demo application in my local. And it works fine. I am able to connect two…
1
vote
1 answer

wavesurfer.js multiple instances on page

I'm using wavesurfer.js which works fine when there is only one instance on the page, but I have multiple instances and have no idea (as I am a total javascript novice) how to link the play button to different instances. I just need some help...…
Morgan
  • 327
  • 1
  • 3
  • 12
1
vote
1 answer

Record audio, sync to loop, offset latency and export portion

I am building a web app which allows users to listen to a loop of instrumental music and then record vocals on top. This is all working using Recorder.js however there are a few problems: There is latency with recording, so this needs to be set by…
Kim T
  • 3,668
  • 28
  • 58
1
vote
1 answer

Chrome extension background page in popup

Say I want to make a chrome extension that plays audio or video that you can play/pause. Extension page is being open from a popup. It should be available on any tab that you go to. As I understand chrome limits you to the background page that is…
Plyto
  • 731
  • 1
  • 9
  • 18
1
vote
2 answers

How do I stop HTML5 audio upon page refresh in Firefox

Within my Rails app, I have a view where, when you refresh the page, a new song plays. When I manually refresh the page, the old song stops and a new song starts playing. But, in Firefox, when I click on a button inside the view to refresh the page,…
Katie H
  • 2,215
  • 5
  • 26
  • 47
1 2 3
99
100