We can embed windows media player in a html file easily , which can play popular windows media formats as like flash flv player. To do so, we have to use a simple & little code-snippet as follows:
<embed src ="yourvideo.wmv" allowfullscreen="true" width="424" height="344" autostart="false" /> </embed>
With help of this code video file(all formats supported by windows media player) will play very well. But a general issue occurs most of the times. In internet explorer, it works well, but in firefox it start automatically, where we may not want this to be start automatically. Also, behaviour are getting different in cross browser, that is also an important fact. without clicking start. the attribute autostart="false" doesn't work on firefox.
Actually autostart="true/false" indicates whether the sound track should start automatically upon loading or not. A "true" value means it should, a "false" value means it should not. The Explorer's default is "false" while firefox/Navigator's one is "true". The default on the Mac operating system is "false" for both browsers.
Use the following code to work correctly with ie & firefox both on windows. You have to use autostart="0", which is generalized for both browsers.
<embed src ="yourvideo.wmv" allowfullscreen="true" width="424" height="344" autostart="0" /> </embed>
Subscribe to:
Post Comments (Atom)










1 comments:
thanks - I've been grappling with the autostart = false failing in ff - helpful
Post a Comment