html5-audio Questions

3

Solved

I want to play sound, after my page has loaded. Here is my JavaScript code: var playAudio = $("#sound")[0]; playAudio.play(); Here is my HTML code: <audio id="sound"> &l...
Kuntz asked 20/11, 2020 at 12:47

6

I have read from here that how i can mute/unmute mic for a localstream in webrtc:WebRTC Tips & Tricks When i start my localstream mic is enable at that time by default so when i set audioTrac...
Nobe asked 19/2, 2016 at 18:26

5

My aim is to play the mp3 file from the google drive. I am using the plugin MediaElement js. The reference I got is https://www.portalzine.de/dev/html5/hosting-mp3-files-on-google-drive-html5-audio...

2

Solved

Im my audio player I need to get the duration of my audio track. I need a function that gets src of the audio and returns its duration. Here is what I am trying to do but does not work: function g...
Chamkis asked 7/1, 2016 at 4:44

8

Solved

I am in the process of replacing RecordRTC with the built in MediaRecorder for recording audio in Chrome. The recorded audio is then played in the program with audio api. I am having trouble gettin...

6

Following code works in Chrome (22.0) but not in Safari (6.0) <!DOCTYPE html> <html> <head> <script> function onGo(e) { var fr = new FileReader(); var file = document.get...
Erased asked 5/11, 2012 at 12:14

8

Solved

I have multiple audio files that I want to stream based on the user selects. How do I do that? This is what I have so far and it doesn't seem to work. *UPDATE: Made a few changes and now its clai...
Pinchas asked 29/5, 2012 at 1:33

23

Audio autoplay is working in Mozilla, Microsoft Edge and old Google Chrome as well but not in Google Chrome 67+ due to a policy change for autoplay. They have blocked the autoplay (until specific s...
Chapbook asked 23/5, 2018 at 13:57

19

Solved

I am playing a small audio clip on click of each link in my navigation HTML Code: <audio tabindex="0" id="beep-one" controls preload="auto" > <source src="audio/Output 1-2.mp3"> &lt...
Restorative asked 12/2, 2013 at 14:12

3

I have a website that I put my videos/audios on it. I use HTML5 and tag to show videos. But videos/audios can be downloaded if client opens view source page and then copy the file address. How can...
Taciturnity asked 2/5, 2016 at 16:57

13

Solved

I'm trying to accomplish a simple doodle-like behaviour, where a mp3/ogg sound rings on click, using the html tag. It is supposed to work under Firefox, Safari and Safari iPad is very desireable. ...
Tutorial asked 21/3, 2012 at 19:20

3

We need to replace our NPAPI browser plugin with a plugin-less solution. We have 3rd party input device that provides us live audio in the form of Opus 'frames'. We transmit those frames to the bro...
Agustin asked 4/2, 2015 at 16:43

9

Solved

What I ultimately want to do is record from the user's microphone, and upload the file to the server when they're done. So far, I've managed to make a stream to an element with the following code: ...
Enterostomy asked 7/5, 2013 at 7:0

5

There isn't single one working example on whole internet of how to perform FFT analysis of a sound file/buffer/audiobuffer in browser without need for playback. Web audio API has been changed too m...
Epigynous asked 16/2, 2019 at 18:34

4

I'm building an app using React Js where it can record audio from users, upload the file or blob to cloud storage, and play the recorded audio from the file URL. The issue is when the audio is reco...
Cornew asked 20/10, 2021 at 4:28

3

Solved

I am creating an electron app and want to play local audio file(from the computer not my project dir) without using the input type file. I have tried the traditional way of create a new Audio ins...
Lianna asked 16/8, 2019 at 2:6

5

Solved

I've followed the other posts that have asked similar questions, but they have not provided a solution. I'm not able to pause audio in my React Hook. This is my react hook: import React, { useState...
Hershberger asked 20/7, 2020 at 20:58

4

Solved

I'm building a game in which a wav file plays on click - in this case it's a gun sound "bang". The problem is if I rapid click, it won't play the sound once for each click - it's as if the clicks...
Miracidium asked 31/7, 2011 at 23:42

2

Solved

I'm create a very basic HTML5 game and I've hit a little wall, basically I have an array, this array is populated with one sound file (it is an array so I can assign more sounds if needed) this.So...
Hesitate asked 3/9, 2014 at 22:23

2

I'm building a wheel of fortune in html+js that spins rather quickly. Every time a new color flies by the mark, the wheel should play a click-sound. At top speed this sounds almost like a machine g...

2

Solved

So i have a bunch of loaded audio samples that I am calling the schedule function with in the code below: let audio; function playChannel() { let audioStart = context.currentTime; let next = 0;...
Trellas asked 17/4, 2017 at 15:14

4

Solved

I am wanting to know how to check if a HTML5 audio element is loaded.
Ambriz asked 9/11, 2011 at 1:40

8

I've been working on using the html audio tag to play some audio files. The audio plays alright, but the duration property of the audio tag is always returning infinity. I tried the accepted answer...
Jeth asked 3/2, 2014 at 7:42

6

Solved

I'm playing with browser and audio. I'm doing this var session = { audio: true, video: false }; var recordRTC = null; navigator.getUserMedia(session, initializeRecorder, onError); But, us...
Linette asked 11/3, 2015 at 16:14

5

When I use the HTML5 video and audio tags in my code, video and audio appears when I load the file in a browser. They also appear when I use a HTML preview package in Atom, however, they appear gre...

© 2022 - 2024 — McMap. All rights reserved.