Permalink
Browse files

on FF 3.6 with no flash, onLoad event is not triggered

code to reproduce the error:
                    soundManager.createSound({
                        id: 'mysound',
                        url: '/sounds/mysound.ogg',
                        autoLoad: true,
                        autoPlay: true,
                        onload: function(){
                           alert('loaded');
                                }
                    });
adding s._a.load(); on line 2937, triggers the onload event.
  • Loading branch information...
1 parent 519e65f commit a998e444ca66da601bc14556a15637fac76353a2 @jgabios jgabios committed Oct 8, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 script/soundmanager2.js
View
@@ -2934,6 +2934,7 @@ function SoundManager(smURL, smID) {
if (instanceOptions.autoLoad || instanceOptions.autoPlay) {
s._a = new Audio(instanceOptions.url);
+ s._a.load();
} else {
@@ -5938,4 +5939,4 @@ if (window.SM2_DEFER === undefined || !SM2_DEFER) {
window.SoundManager = SoundManager; // constructor
window.soundManager = soundManager; // public API, flash callbacks etc.
-}(window));
+}(window));

1 comment on commit a998e44

Owner

scottschiller commented on a998e44 Dec 1, 2013

This has been merged and is now on SM2 master - thanks!
V2.97a.20130512...V2.97a.20131201

Please sign in to comment.