Tuesday, December 05, 2006

Turning off Autoplay in Firefox

I found the answer! The most widespread solution seems to be to install some kind of plugin to prevent Firefox from autoplaying media, but this is not the solution I wanted. Not everyone, including myself, is going to want to install it. Luckily I found a solution that gets right to the source of the problem. The bug is that Firefox doesn’t recognize “autostart=false” (if you’re using the EMBED tag) or name=autostart value=false (if you’re using the OBJECT tag).  It uses the boolean/bit value for “false” instead, which is zero.

This means the fix was simple. In my code I merely change “false” to “0” and Firefox suddenly recognizes it. Silly browser. If other browsers are presenting such problems, please let me know so I can fix those too, thanks! I only have IE and Firefox installed on this machine.

Posted by Geeky Dragon Girl on 12/05 at 10:14 AM
(18) CommentsPermalink
Categories: • Random acts of geekery