malsup/media — Issue #16: mp3 : load quicktime in case of inexistent flash
Author: alamaz
Created: 2011-10-14 17:23:46+00:00
State: open

I am proposing a fix for jquery.media.js that will allow a fallback to quicktime if the flash plugin doesn't load (for example, iphones...)
It needs swfobject v2+
Mod line 348

-	var player = /\.mp3\b/i.test(src) ? opts.mp3Player : opts.flvPlayer;
-	var key = opts.flvKeyName;

+	var player = /\.mp3\b/i.test(src) ? opts.mp3Player : opts.flvPlayer;
+	if (window.swfobject) // swfobject v2+
+	if(/\.mp3\b/i.test(src))
+	if(!swfobject.hasFlashPlayerVersion(opts.flashVersion)) // no flash
+	return generate(el, opts, 'quicktime'); // override with quicktime
+	var key = opts.flvKeyName;

Well, it could be useful for somebody else
Bye
Alamaz