HTML tip: Firefox and Embedded Video
Note: this post has been imported and re-editing from a personal blog. Time-sensitive material may no longer be relevant.
If you want to embed video into a webpage, one of the parameters you can use is “autostart.” The autostart parameter options are true and false.
Problem: Firefox does not read ‘false’ correctly. It will autostart the video with settings of both ‘true’ and ‘false.’
Solution: use ‘0′ (zero) instead. In most programming languages, ‘true’ and ‘false’ are really just pseudonyms for ‘1′ and ‘0′. Or to be more precise, false is zero and true is non-zero. Firefox does not seem to be converting the text “false” into the programming concept ‘false’ and instead reads it as non-zero, therefore true, because the text isn’t blank.
