Cross-platform, cross-browser way to play sound from Javascript?

I am writing a dhtml application that creates an interactive simulation of a system. The data for the simulation is generated from another tool, and there is already a very large amount of legacy...

Soundmanager will not play a sound

function doclick(){ soundManager.createSound({ id: 'mySound', url: 'http://localhost/htmlshooter/wav/gun.wav', autoLoad: true, autoPlay: true, volume: 100 ...

Inline Javascript Audio Player/ Sound Manager 2

I would like to implement this audio player, http://www.schillmania.com/projects/soundmanager2/ into my band website that I am working on http://thewintonsbluegrass.com. It is a Wordpress site...

Skins / Themes for Soundmanager 2

I am currently considering to use Soundmanager2 as an audio player for a small project. I like SM2 a lot, but unfortunately I can't find an implementation that provides an inline player with basic...

Is there a way to detect a mobile Safari audio interruption — headphones unplugged — with javascript?

I'm working on an HTML5 audio player built with jQuery and SoundManager. So far, we've been unable to determine whether there's a way to detect an audio interruption event (unplugging headphones,...

HTML5 Canvas background image

I'm trying to place a background image on the back of this canvas script I found. I know it's something to do with the context.fillstyle but not sure how to go about it. I'd like that line to read...

Get artwork_url from Soundcloud API and show album covers in custom SC/SM2 player

I've been trying to sort out how artwork_url can be used from soundclouds API in order to output each cover into this custom player, and have each appropriate thumb next to its own track in the...

HTML5 audio libraries

There are a number of JavaScript libraries available for HTML5 audio, to either make a developer's life easier, ensure cross-browser compatibility or support Flash fallback for older browsers. I...

SoundCloud API - SC.stream does not work

I am trying to use stream function as displayed on example(taken from SDK http://developers.soundcloud.com/docs/api/sdks#javascript) SC.stream("/tracks/293", function(sound){ ...

Web Audio Mobile Safari Lock Screen Controls

I have a web audio player that uses Soundmanager2. Right now play/pause work on the lock screen and prev/next do not work. I worked on iOS 7 but I couldn't figure out why. I see lots of talk...

Audio Array Buffer to Audio Element

I'm creating a chrome app that decrypts mp3s sent from my PBX server to my gmail account and plays them. I have completed everything except for the audio player in gmail. I have two options: Use...

Sound Manager 2 stream shoutcast

How can I stream a shoutcast stream with Sound Manager 2? I've found may ways and understood how to stream mp3 files but I can't get what info I need to provide to make it stream through...

How to play mp3 playlists with SoundManager using the controls

I am trying to play multiple audio files using SoundManager2 and so far this is the only working example I could find of the site. <script...

How can I do gapless audio looping with mobile browser?

It seems I'm unable to achieve gapless looping with mobile. This is what I've done so far: https://github.com/Hivenfour/SeamlessLoop Creates a...

Working with javascript in a view in ruby on rails

Alright guys, I am a ruby noobie here, and I find myself in the unfortunate situation where I am moving a project over from Django to Ruby on Rails. First things first, I am setting up my...

Responsive canvas element?

I having issues to make a responsive canvas element. I using soundmanager2.js plugin with 360ui and its render a canvas element to show soundwave/spectrum– and i've to scenarios. First. Using...

Failed to execute 'play' on 'HTMLMediaElement': API can only be initiated by a user gesture

I'm making a music playing page, where I use SoundManager 2 for AngularJs. I'm using a remote API to get a song URL to play. I enhanced an angular-soundmanager2 click event handler...

Why is `replace: true` Deprecated in AngularJS Directive

I am working on a sample player using angularjs, utilizing an element directive. I would like the events within the directive's template to remain contained within the directive. In other words,...

React-sound doesn't work on mobile

I use the npm package 'react-sound' - it's fine and easy to configurate. But! It doesn't work on mobile devices. I tested that on android phones and iPad. Maybe someone had the same problem, or...

Online Music Player that supports .MIDI files

Long story short: Basically, what I'm looking to set up is an on-site music player that allows the user to add/remove their own songs to some sort of playlist while having some .MIDI files in it...

Webpack 2 - babel-loader - how to exclude node_modules?

Since I upgraded to Webpack 2, I cannot have an "exclude" in my "rules". Couldn't pass "exclude" into "options" either. What's the right way of doing it now? Before: { test: /\.js$/, loader:...

Get soundManager soundId from class using jQuery

I am using bar-ui js of soundmanager. <div id="sm2-99943" class="sm2-bar-ui content compact flat full-width playlist full-width-player "> <div class="bd sm2-main-controls"> <div...

Want to know about SounManager Player ID

I am using bar-ui js of soundmanager. http://www.schillmania.com/projects/soundmanager2/demo/bar-ui/ I have many players so i don't know about soundid what i want to when page load player should...

SoundManager2 Autoplay not working. User interaction is needed

I want to play music when entering my web. I set the autoplay function of SM2 but I'm getting this error: soundmanager2-nodebug-jsmin.js:38 Uncaught (in promise) DOMException: play() failed...

Angular JS application taking around 100% CPU while resizing

My website is in AngularJS v1.7.2 (using Laravel PHP framework as backend). Current issue is the website freezes after resizing several times (2-3 or more times). I have checked Google chrome Task...

How to play audio using Java Script on IPad?

I am trying to implement functionality to play an audio using Java Script. Its working fine on Google Chrome, Firefox and Other Browser. But when I try to play sound on iPad or iPhone or MAC I am...

Play sound on button click (Angular)

I'm trying to play a sound when a link is clicked This is what I have, however, it doesn't work and seems to slow the browser down significantly whenever I have it added into the files HTML: <a...

Android: can't use Bluetooth in AudioManager.MODE_IN_COMMUNICATION

Earlier (in Android 6) when I do this when connected headset: audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION); I continue hear all sounds in my Bluetooth headset if it connected. Now I...

Volume fluctuations on iOS Safari (iPad)

I am playing mp4 files using SoundManager 2. This works as expected in desktop Chrome, desktop Safari, and desktop Firefox. However, in iPad Safari each mp4 plays at a different volume....

Big problem with types: index.d.ts is not a module

I install @types/[email protected] and i have the latest version of the typescript. My code import { soundManager } from 'soundmanager2' I get this error File...