a
This commit is contained in:
parent
c93801441a
commit
66f9072cca
1 changed files with 8 additions and 3 deletions
|
|
@ -18,9 +18,11 @@ $(document).ready(function () {
|
||||||
// Initialize SoundJS
|
// Initialize SoundJS
|
||||||
// Note: Class is FlashPlugin in 0.5.2, but SWF is FlashAudioPlugin.swf
|
// Note: Class is FlashPlugin in 0.5.2, but SWF is FlashAudioPlugin.swf
|
||||||
createjs.FlashPlugin.swfPath = "./";
|
createjs.FlashPlugin.swfPath = "./";
|
||||||
// Prioritize HTMLAudio -> WebAudio -> Flash
|
// Custom Architecture:
|
||||||
// HTMLAudio is better for streaming music (avoids XHR/CORS issues of WebAudio)
|
// We handle HTML5 Audio manually via playNativeFirst() for full control (UI, timeouts, hacks).
|
||||||
createjs.Sound.registerPlugins([createjs.HTMLAudioPlugin, createjs.WebAudioPlugin, createjs.FlashPlugin]);
|
// SoundJS is reserved STRICTLY for Flash fallback on legacy browsers (IE, old Chrome).
|
||||||
|
// Therefore, we ONLY register the FlashPlugin.
|
||||||
|
createjs.Sound.registerPlugins([createjs.FlashPlugin]);
|
||||||
|
|
||||||
// Initial Load
|
// Initial Load
|
||||||
// Run HTTPS probe first
|
// Run HTTPS probe first
|
||||||
|
|
@ -204,6 +206,9 @@ $(document).ready(function () {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
domPlayer.src = url;
|
domPlayer.src = url;
|
||||||
|
domPlayer.preload = "auto";
|
||||||
|
domPlayer.load(); // Force reload/buffering
|
||||||
|
|
||||||
var playPromise = domPlayer.play();
|
var playPromise = domPlayer.play();
|
||||||
|
|
||||||
// Set a safety timeout for "forever pending" requests (common in Chrome 15 with SSL issues)
|
// Set a safety timeout for "forever pending" requests (common in Chrome 15 with SSL issues)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue