Most voted "html5-audio" questions
HTML5 audio element defined by W3C as Web Audio API and supported by all modern browsers.
Learn more…53 questions
Sort by count of
-
10
votes2
answers418
viewsHow to make HTML5 sound available?
I would like to play an audio on a website. You probably need to use the tag <audio> with parameters, right? And then to press play?
-
8
votes2
answers3832
viewsHow to capture microphone audio using HTML5 Audio API?
How do I capture microphone audio using the HTML5 Audio API and play it at the same time?
-
8
votes2
answers6863
viewsCapturing audio over the microphone via Javascript or HTML
I need to capture microphone audio and record to file. Send to PHP server. As I do, in the examples I saw here, I didn’t notice how to record the sound files.
-
6
votes1
answer110
viewsToggle javascript functions
In my code there is a button, which, when clicked, plays a song <div class="botao" id="btn1"><audio id="audio1" controls loop="true" style=" visibility: hidden;"> <source…
-
6
votes1
answer954
viewsRecord video file after capture on site
I have a page that captures a video + audio from the user using HTML5 and Javascript. The code follows: <video width="600" height="400"></video> <input type="button" id="stopbt"…
-
5
votes2
answers73
viewsAudio compatibility problem with firefox API
I’m using the API to emit some sounds, the problem is that in Firefox I can’t get around mp3, but how can I include other formatting in that code? How can I add another font ogg for example? I’m…
-
4
votes3
answers1670
viewsLimit HTML5 Audio Controls
I wanted, if it were possible, of course, that a component <Audio> HTML5 only shows the mute, and the rest did not appear; as the volume, play, pause, etc..…
-
4
votes2
answers9672
viewsPlay alert sound after database query (PHP + MYSQL)
I need a warning sound to be played after a bank appointment... Logical example: NUM_LINHAS = TABLE ROW NUMBER SE (NUM_LINHAS > 0){ play(); } My Java function that plays sound: <audio…
-
3
votes3
answers1080
viewsAudio API to calculate the duration of multiple songs
I’m working on a player audio and need to know how to calculate the duration of various MP3’s that are selected on the user’s machine by a input of the kind file? EDIT: Follows my current code and…
-
3
votes3
answers3185
viewsHow to create random audio playlist?
I need something like this function next() { Url = new Array; Url[0] = "/mp3/001.mp3"; Url[1] = "/mp3/002.mp3"; Url[2] = "/mp3/003.mp3"; Url[3] = "/mp3/004.mp3"; Link = Math.floor(Math.random() *…
-
3
votes1
answer190
viewsAjax play audio after running successfully
I need to play an audio in the execution of the excerpt below, where it displays the data found in a query: // Verifica se o Ajax realizou todas as operações corretamente if(req.readyState == 4) {…
-
2
votes3
answers1401
viewsHTML 5 audio player with forward/backward
I’m working on an HTML 5 player and had a sad surprise when I tried to use the forward/backward feature when I put the cursor in a given minute of the song (as we do on youtube, for example).…
-
2
votes1
answer53
viewsmytrack.Duration returns Nan
Are you returning Nan, does anyone have a solution? Follows the code: <html> <head> <title>teste</title> <meta charset="utf-8"/> </head> <body> <audio…
-
2
votes1
answer214
viewsHow to Capture Audio with HTML5 and Javascript?
I’m doing research on audio recording with HTML5, but none of the tutorials I found worked, many of them use getUsermedia(), but it seems to me it’s deprecated, then, someone could introduce me a…
-
2
votes1
answer85
viewsHow to make a circle-shaped audio player that calculates the time around you?
So.. I saw a player on a website: http://nicolaserrera.com/ and wanted to know how I can do a similar..
-
2
votes1
answer40
viewsHow to detect download event in audio and video tags?
I have the following code in a JS file, which I use to detect when someone "plays" or "downloads" audio and video files. $("audio").on("play", function() {...}); # Funciona $("video").on("play",…
-
2
votes1
answer164
viewsIonic record audio not back to view
I made an app, to record audio, it opens the native recorder but does not return the audio to view. .controller('MyCtrl', function ($scope, $cordovaCapture) { $scope.captureAudio = function () { var…
javascript angularjs apache-cordova ionic html5-audioasked 8 years, 3 months ago rodrigo.oliveira 1,251 -
2
votes1
answer388
viewsPick up music track information with JS
I’m making a music player using only HTML, CSS and Javascript. I can do everything except grab track information. I can get the length of the track and also the current time, the information I need…
-
2
votes1
answer120
viewsAudio only start when I reach a certain div
I’m developing a page that only has audio in certain texts. I want to make sure that the audio of the text only starts playing when I get to the text. It follows more or less as I wanted. (I don’t…
-
1
votes1
answer54
viewsJplayer does not work on IE8
I have an audio listing on a page I’m developing, in Mozilla and Chrome, IE9 and IE10 was ball show, but on IE8, it does not perform when I press the 'play button'. Website of the Jplayer:…
-
1
votes1
answer178
viewsHow to insert an audio/mp3 using Cakephp?
I’m trying to view this: <?php echo $this->Html->media('musica.mp3'); ?> but nothing appears
-
1
votes0
answers109
viewsHow to convert "arraybuffer" to "string" and vice versa?
I am making a mobile app in HTML5 and need to store data from MP3 files and bitmap images in Torage localStorage. The problem is that only to store String then I need to convert a buffer in String…
-
1
votes1
answer96
viewsContinuous background audio
I put a background audio on the site with autoplay and loop, only when I went to another page, the audio started playing from the beginning. Searching the net, I found a Javascript that captures the…
-
1
votes1
answer615
viewsWebsite with audio MP3 does not touch iPhone
I have a website where I play MP3 songs when I click on PLAY. On PC it works perfectly, but on iPhone it doesn’t play. PLAY BUTTON echo "<a href='#' id='tocar-musica'> <input type='hidden'…
-
1
votes2
answers1948
viewsHTML Audio - How to automatically go to the next song in a jQuery playlist
I’m creating a playlist with HTML5 and jQuery. My appointment: <ol class="playlist"> <li> audio 1 <audio class="track" preload="none"> <source src="<?php echo $siteroot;…
-
1
votes1
answer254
viewsCut audio with javascript
People need to cut an audio in the client-side and send the "cut" bytes to Nodejs. Is it possible? How can I implement?
-
1
votes0
answers110
viewsAudio description in videos player- HTML 5
I am seeing to implement audio description in the videos in the company where I work, at first thought we create 2 videos and a button in the player to switch to the video with Audio B with the…
-
1
votes1
answer279
viewsHow do you create a javascript function to filter audio rss(podcast) for a project?
I have a question regarding how to create a function where I can filter the audio(.mp3),with a maximum amount of 5 audios from the feed. E titulo do áudio do feed RSS da parte do podcast da CBN:…
-
1
votes1
answer658
viewsPut audio file to download and listen in php
I have some audios on my server and wish to put them online so that it is possible for the client side to have access, both to listen and download. I am working with php and a linux server, a debian…
-
1
votes1
answer48
viewsTag <audio> - Fade and individual playback
I have a page with several audios, using the native player Html5. Need to add fade in/out to the audios and somehow allow only one audio to play at a time. Any light? rs <audio…
-
1
votes1
answer127
viewsHow to delete data Modal Bootstrap on the second time - ASP.NET MVC 5
When I open Modal the second time, the audio element remains the same. I already uploaded new audio and still continues the old audio. Please follow my code below. <div class="col-xs-6">…
-
1
votes1
answer37
viewsAutoplay Cross-Browser
How do I give autoplay to all (or almost all) mobile and desktop browsers? <audio controls autoplay> <source src="horse.ogg" type="audio/ogg"> <source src="horse.mp3"…
-
1
votes1
answer1397
viewsCustomize Html5 player volume bar
Friends, I have an Html5 player with all standard controllers. I would like to make a volume controller in this same style: My code so far <audio id="demo"…
-
1
votes1
answer47
viewsInput the fadeout sound when you click the pause button
How can I make the sound come out in fadeOut when I click pause button? <script> var sounds = [ "sounds/royksopp.mp3", "sounds/9thwonder.mp3", "sounds/thisbeat.mp3", "sounds/mosdef.mp3",…
-
1
votes2
answers28
viewsPlay an audio starting in 10 seconds
I’m controlling some audios on a website and I’m needing some specific audios to start on second 10, so far it’s like this: var minhaMusica = new Audio(); minhaMusica.src = 'musica.mp3";…
-
1
votes0
answers341
viewsAudio Tag Does Not Work in Chrome
Good afternoon, you guys! I’m having a problem that I can’t see a solution on Google or with the tests I do. I have a site where there are some audio tags, they work normally in browsers like…
-
1
votes0
answers49
viewsHTML5 Audioelement does not play audio on IOS 13 devices
I’m a web developer for a radio station. Since the launch of IOS 13, we have received several complaints from users that our live audio broadcasts can no longer be played on IOS (iPhone) devices. On…
-
0
votes2
answers1317
viewsHow to get info from one column of the database via the GET method I receive from another page.
I’m new to php and database. I would like to know how to search in the database the "name", "password" "email" through the id I receive via _GET from the previous page and display on the page I am…
-
0
votes1
answer64
viewsData received from audio
How to know how much data (Kbs or Mbs) from the audio tag was received? For example, the user enters the site, and click play, the audio starts playing. Let’s say his Internet is really bad, and the…
-
0
votes2
answers1606
viewsPlay one audio at a time
I have that scenario: <audio id="audio1" controls> <source src="http://stream?type=.mp3" type="audio/mp3" /> </audio><br /> <audio id="audio2" controls> <source…
html5-audioasked 9 years, 1 month ago Allan Conserva Jr. 1 -
0
votes0
answers109
viewsPass music as html page parameter
Great, I’m trying to make a game menu on HTML5 + Javascript + CSS3 and when I click on a button I want you to change the page html, but may the same music continue to give. I suppose with the method…
-
0
votes1
answer284
viewsRunning audio in php
How is it possible to upload an audio tag with the file outside of my server <audio controls> <source src="../../spool/teste.mp3" type="audio/mp3"> </audio> On the same level as my…
-
0
votes1
answer162
viewsHow to show audio preview while playing?
Hi guys from stackoverflow, Have an example Github, showing audio preview. How to do this in Asp.net mvc ? View: <audio controls style="width: 375px;height:225px;"> <source…
-
0
votes2
answers297
viewsHow to pause CSS animation while music is stopped?
I made an example: function play() { //Fazer animação } function pause() { //Para animação, ficar toda linha roxa; } #animacao { position: relative; margin: 30px; } #bloco { display: block; bottom:…
-
0
votes1
answer22
viewsPlay audio while loading
Hello. When we use the element <audio> It only plays when it’s loaded 100%. I wanted to have an idea of how to make it play while still charging, to avoid the delay. Can you give me some…
-
0
votes0
answers42
viewsFavicon and audio not working
This is the code: <!DOCTYPE html> <html lang="pt-br"> <head> <meta name="author" content="Tomás Ricardo"> <audio autoplay> <source src="audio_de_erro.mp3"…
-
0
votes0
answers107
viewsHow to put the duration of a song in a css variable (html javascript css)
Hello, I want to create a bar that shows the duration and current time of audio playback, for this I need to take the time of these audios and put in a variable to be used in a CSS property but I…
-
0
votes1
answer80
viewsConnect microphone to Analyser to get hertz with javascript
How do I connect the audio input from the microphone to the Audiocontext API’s Analyser to get the frequency in Hertz? Javascript: let display = document.getElementById("display"); let ctx = new…
-
0
votes0
answers667
viewsWhy does the attribute "autoplay" not start audio?
I am creating a page where I need to play a sound automatically as background in an infinite loop. The problem is that even using the attribute autoplay, audio does not start. See below my code:…
-
0
votes1
answer284
viewsHow to change the tone of an audio with Javascript?
Consider that I have the following HTML body and JS script: <!DOCTYPE html> <html> <head><title>Mudar tom do áudio</title></head> <body> <p>Mudar tom…