[vlc] Re: No autoplay with mozillaplugin for 0.8.2
Peter Maersk-Moller
peter at maersk-moller.net
Tue Jul 12 17:13:52 CEST 2005
Hi Iván
Thanks for the reply.
Iván Sánchez Ortega wrote:
> First, don't use the obsolete <embed>, but the XHTML-compliant <object> tag:
> <object type='application/x-vlc-plugin' id='vlc_player' events='True'>
> <param name='src' value='$video' />
> <param name='autoplay' value='1' />
> </object>
A few months ago I tested it thoroughly (but for Quicktime) with
many browsers and OS's. I used 'embed' alone, then 'object' alone
and then mixed object and embed. The only things that worked on
all the platforms without a need for variation was the 'embed'
-tag.
Yes, 'embed' is obsolete, but its the only solution that works
cross platform and cross browsers (the ones that I care about).
> Second, use a little bit of javascript to get it running if autoplay doesn't
> do the trick:
> <script type='text/javascript'>
> document.getElementById('vlc_player').play();
Thanks for the tip. Done that now and it works. However, under load,
it might takes time to load the plugin, so a script calling
the player element might fail. Don't know if I can test
if it has loaded so the script doesn't fail. Do you ?
Kind regards
--PMM
--
+----------------------------------------------------------+
| Kabel-TV over Internettet -- http://www.streamtv.dk/ |
+----------------------------------------------------------+
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
More information about the vlc
mailing list