soundmanager2

Why does Soundmanager 2 not fire onload event in firefox (23)?

女生的网名这么多〃 提交于 2020-01-13 18:06:54
问题 I am using Soundmanager 2 to play an mp3 audio stream. Somehow the onload event will not be fired in Firefox. In Safari and Chrom it worked well. When i set autoplay to true the stream will be played even in firefox, its just the onload events witch is not working. soundManager.setup({ url: '/static/soundmanager2/swf', flashVersion: 9, preferFlash: false, useHTML5Audio: true, onready: function() { var options = { id: 'channel-'+num, url: chan.url, stream: true, onload: function() { alert(

Why does Soundmanager 2 not fire onload event in firefox (23)?

筅森魡賤 提交于 2020-01-13 18:06:02
问题 I am using Soundmanager 2 to play an mp3 audio stream. Somehow the onload event will not be fired in Firefox. In Safari and Chrom it worked well. When i set autoplay to true the stream will be played even in firefox, its just the onload events witch is not working. soundManager.setup({ url: '/static/soundmanager2/swf', flashVersion: 9, preferFlash: false, useHTML5Audio: true, onready: function() { var options = { id: 'channel-'+num, url: chan.url, stream: true, onload: function() { alert(

Give Unique download link for my users for files hosted on Amazon S3

强颜欢笑 提交于 2020-01-03 00:30:32
问题 I have an Amazon S3 account in which I'm storing MP3 files. I play these files on a music player on my web app. I want the users to be able to download the songs from my site. How can I give them a temporary link to download the file? Do I need to give them the path to the file on AS3? I don't want the link to be shared with other people. How is it possible to do? P.S I'm building the app with PHP and the music player in SoundManager 2. 回答1: You can create urls that expire at a specific time.

SoundManager2 on iPhone - Sound not playing on jQuery Load

烂漫一生 提交于 2019-12-31 07:35:10
问题 I'm trying to use SoundManager2 as part of an iPhone Web App to play a sound after a form has been submitted using jQuery. The particular sound that is played is dependant on the result, and so the resulting page sets a variable that identifies which sound file to play. This all works without a hitch on the desktop, but when running on the iPhone, it fails. The Debugging Console on the iPhone shows it trying... 1124: SMSound.play(): "ValidSound" is loading - attempting to play... 1124:

SoundManager2 - Distortion When Stopping Sound

二次信任 提交于 2019-12-24 10:36:32
问题 I am trying to loop through a bunch of sound files in SoundManager2 and play them at various points in time. The code below takes a songArray that looks like this, with the "note" consisting of a sound file and a duration for how long to play that sound file: var songArray = [[null],[["clarinet_e4.mp3",1],["clarinet_a4.mp3",1]],[null],[null],[null],[null],[["clarinet_c4.mp3",1]],[["clarinet_c5.mp3",1]],[null],[["clarinet_ab4.mp3",1]],[["clarinet_f3.mp3",1]],[null],[["clarinet_g4.mp3",1]],[[

HTML5 How to replace WebAudio API for Internet Explorer for javascript games?

Deadly 提交于 2019-12-24 03:36:22
问题 I'm new with audio in html. I found some nice examples for little javascript games. Want I try to load the games in Internet Explorer, I got : "Web api audio is not supported in this browser". I found this site : http://caniuse.com/#feat=audio-api and look like Internet Explorer doesn't support it. I found also SoundManager 2 that seem to work on all browsers. My question, is there is a way to detect if the browser support WebApiAudio and offering a fallback if is not supported ? I want to be

SoundCloud + Soundmanager2 + EQData

大城市里の小女人 提交于 2019-12-24 01:01:48
问题 This is essentially the same as this question but with more detail: Soundcloud + SoundManager bug: reading a stream's eqData So I have a visualizer using canvas / svg / what have you which looks GREAT when it is receiving EQData from SoundCloud / SoundManager2 but there are some very strange events that are happening which cause it to not be as cool. 1.) When you use SMSound.pause() or any variation (SoundManager.togglePause, etc) and then resume all EQData / WaveformData stops coming to

SoundCloud API: setVolume on audiomanager.js

旧时模样 提交于 2019-12-23 19:00:20
问题 We've been having problems with the setVolume function while using the SoundCloud Javascript API. The trace: Uncaught IndexSizeError: Index or size was negative, or greater than the allowed value. audiomanager.js:2 HTML5AudioPlayer.setVolume We are calling that function on the sound object, as usual, and the values we're passing to are between 0 and 100, which are the ones that are specified as correct. The problem started a few hours ago and we haven't made any changes in our code, so it

How to pause streaming in soundcloud javascript api

扶醉桌前 提交于 2019-12-23 18:14:38
问题 I would like to allow a sound file to play and pause. The documentation shows how to play a streaming file: $("#stream").live("click", function(){ SC.stream("/tracks/{'track-id'}", function(sound){ sound.play(); }; It uses Sound Manager to stream and uses some of it's objects and methods... like .pause()! So here's the code i think should work: var is_playing="false"; $("#stream").live("click", function(){ SC.stream("/tracks/{'track-id'}", function(sound){ if (is_playing==="true") { sound

Lags while playing 2 sounds on the same time in timer

和自甴很熟 提交于 2019-12-23 10:55:11
问题 I have a small app that basically sets up a timer and plays sets of 2 sounds one after another . I've tried 2 timers, because I wanted both sounds to start exactly at the same time each time. I gave the app 500ms for setting both timers before they start Calendar cal = Calendar.getInstance(); Date start = new Date(cal.getTime().getTime() + 500); timerTask1 = new TimerTask() { //1st timer @Override public void run() { soundManager.playSound(1); } }; timer1 = new Timer(); timer1.schedule