Questions tagged [howler.js]
howler.js is an audio library for the modern web. It defaults to Web Audio API and falls back to HTML5 Audio.
howler.js
241
questions
1
vote
0
answers
17
views
error decoding audio file Howler not working
I tried to use Howler in a js file. Just to see how it worked. This is the code:-
let isPlaying = false;
let songE = document.querySelector(".song");
songE.addEventListener("click&...
0
votes
0
answers
22
views
Howler.js web app experiencing intermittent audio cutoff after prolonged runtime on Windows 11 and Brave browser
I created a simple white noise web app that uses Howler.js (not configured to use HTML5 audio player) for audio looping. It works great and I keep my computer running with this simple powershell ...
0
votes
0
answers
67
views
Next js website Audio stops playing as soon as i leave safari in iphone, even though safari runs in background
My problem is with my website's audio not running in background for iphone and ios but i have seen all other website getting widget in homescreen and also running in background even if i leave safari. ...
0
votes
0
answers
57
views
JavaScript code for web-based audio player application designed to play live radio streams doesnt work on iphone and mozilla firefox
In Wordpress with Hello Elementor, Elementor and Elementor Pro I wrote a custom web-based audio player to play live radio stream but it doesnt work on iphone and Mozilla firefox in all devices.
I ...
0
votes
0
answers
48
views
Playing an mp3 file from the assets folder with Angular?
Trying to play an mp3 file with howler.js from the assets folder in the latest version of Angular.
I put an MP3 in src/assets/mp3/lost-in-sands-126335.mp3.
audio % ls src/assets/mp3/lost-in-sands-...
0
votes
1
answer
71
views
Does howler have a way of notifying given an interval?
Wondering if Howler JS has a way of notifying every second? This would be used to update a state variable that tracks how long a song has been playing for. One way to do it is like this:
var sound = ...
0
votes
0
answers
38
views
Using Howler to play an MP3 with the play() method?
In this Typescript Demo if autoplay is commented out, the sound does not play, and I am expecting it to since play() is called:
const mp3: string = `https://www.soundhelix.com/examples/mp3/SoundHelix-...
0
votes
0
answers
36
views
Seamlessly play multiple sprites one after another with the howler.js library
You have written a great library, thank you.
I have a question regarding some of the specifics of using it.
First, I'll tell you a bit about the application I'm writing. It's a microservice that makes ...
0
votes
0
answers
36
views
A looped howl from howler js will not respond to pause commands
I'm encountering an issue where a single play command using Howler.js wont pause/stop in my React/Next.js application. I've tried to debug the issue, but I can't seem to figure out why this is ...
0
votes
1
answer
220
views
Howler.js to play mp3 files in a loop in order?
There was a point where I got stuck in a javascript project. I want to play mp3 audio files when an event occurs. Sometimes I need to play maybe 5 mp3 files back to back instantly. In my experiments, ...
1
vote
0
answers
166
views
Playing an audio file In Tauri with Howler JS
I've been building a Music Player with Tauri JS and I ran into a problem while playing audio files with Howler JS giving me an error code 4, here is my code:
import { Howl, Howler } from 'howler';
...
0
votes
1
answer
36
views
How to get back src after passing to howler function?
I have a slider that has a range corresponding to values of an element of my array. For each step along the range, I would like to have howler play the song that corresponds to that value. The .mp3 ...
0
votes
0
answers
82
views
howler pause() not stop the audio from looping
I've created a state function in my application that is supposed to notify me when a certain status, let's call it "danger," is reached. Once in the "danger" status, I want to loop ...
0
votes
1
answer
421
views
Check if any audio is playing with JS
Is it possible to check if any audio is playing with JS?
I know, I could have global variables for each sound and go through all of them with the answer provided here:
HTML5 check if audio is playing?
...
1
vote
2
answers
233
views
Playing multiple sounds using variables in howler.js
I am a beginner developer.
I tried to play multiple sound sources using howler.js.
I thought find a simpler way to write it using variables.
source:
var sound1 = new Howl({src: ['sound01.mp3']}),
...