Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mp3 : load quicktime in case of inexistent flash #16

Open
alamaz opened this issue Oct 14, 2011 · 0 comments
Open

mp3 : load quicktime in case of inexistent flash #16

alamaz opened this issue Oct 14, 2011 · 0 comments

Comments

@alamaz
Copy link

alamaz commented Oct 14, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant