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

Edit audio element volume in userscript

I'm writing a userscript to try to decrease an overly loud audio element. How do I get access to an audio element that has been created, but not placed in the DOM anywhere? On the site itself, it has something akin to: function () { var…
Ayjay
  • 3,413
  • 15
  • 20
1
vote
1 answer

JavaScript: Merging two dropdown menus

I have two dropdown menus that I want to merge in one, so the output would look like: Which means the user can choose From: Numbers or Letters, and then To is connected to the first choice in each menu. I tried different ways to merge with no luck.…
Mike
  • 2,051
  • 4
  • 28
  • 46
1
vote
1 answer

Playing audio with pound sign in the source doesn't work

I'm trying to play audio files with a pound sign in the source, but JavaScript gives me this error when I try to play them with a new Audio() object. NotSupportedError: The media resource indicated by the src attribute or assigned media provider…
Adam Oates
  • 193
  • 3
  • 12
1
vote
1 answer

HTML5

I'm inserting an
ggutenberg
  • 6,880
  • 8
  • 39
  • 48
1
vote
0 answers

HTML5 audio player with sub-menus

I have the following script to play audio files sequence from the selection in menu 1 to the selection in menu 2. It looks like this (a list of Numbers, another for Letters): What I need to do is add two other selection menus, before the action of…
Mike
  • 2,051
  • 4
  • 28
  • 46
1
vote
2 answers

Get audio src url status JS

I'm streaming audio to my player from Soundcloud API.
user10202925
1
vote
0 answers

How to check which is the active user's microphone (audio input device) with JavaScript?

I've created a web app that allows users to do a voice recording and have noticed that there are problems with picking the correct audio input device. FireFox works great but Chrome and Safari don't always record if I use the default way for…
Ale
  • 944
  • 3
  • 14
  • 34
1
vote
2 answers

Mixing Audio elements into one stream destination for use with MediaRecorder

MediaRecorder only lets you record media of one type per track. So I'm using JQuery to get a list off all audio elements and connect them to the same audio context destination in order to mix all the audio tracks into one audio stream to later be…
Bret
  • 13
  • 2
  • 5
1
vote
2 answers

JavaScript audio duration not working for ALAC files (HTML audio duration property)

I am using the following implementation in some JS code to get durations of audio files loaded in: http://jsfiddle.net/derickbailey/s4P2v/ (Taken from…
1
vote
1 answer

Angular change detection with HTMLAudioElement

I'm trying to build a small audio player but can't seem to get nice change detection, for example for the audio track current time. For example, I have the track playing fine in my component and in my template file I have {{ player.currentTime…
NJ.
  • 7,486
  • 1
  • 19
  • 20
1
vote
1 answer

When zooming,

The following problem occurs for my
user420479
1
vote
0 answers

How to play audio tracks continuously from a web app on IOS when phone locked?

Visit Soundcloud and play any song using an iPhone (I have an iPhone 5s which I'm using it to test my web app.). If you lock the phone and the song finishes, the next track will start playing. This is something I'm trying to implement for my…
Hamid Hosseini
  • 413
  • 1
  • 5
  • 15
1
vote
1 answer

Audio Stream by User Input

How would I be able to set this up where the audio stream isn’t hard coded, and where a user would be able to input the stream themselves? This is something I wanted to do, but haven't figured out how to do…
Eve Ninnall
  • 1
  • 3
  • 20
1
vote
2 answers

How to play m4a audio file in html audio player in MAC SAFARI browser

I have implemented a web application which uses html audio player. We will be having two type of audio files mp3 m4a both files are playing fine in windows chrome, edge and firefox. Regarding m4a file in safari browser it was throwing Error instead…
selva
  • 184
  • 2
  • 3
  • 16
1
vote
1 answer

How does the HTML5 audio/video tag determine duration

The HTML5
ThaDon
  • 7,826
  • 9
  • 52
  • 84
1 2 3
99
100