[vlc-devel] Re: Status of firefox and/or activeX plugins

Damien Fouilleul damien.fouilleul at laposte.net
Fri Sep 22 11:34:23 CEST 2006


Jonas A. Larsen wrote:
>> I am also pushing for plugin development...
>> I made a simple spec for an ideal feature set:
>> http://meta.wikimedia.org/wiki/Firefox_Ogg_Support
>> made a working demo of the embed controls using javascript:
>> http://metavid.ucsc.edu/bleeding_edge/test3.html
>> and I have downloaded the vlc source code and hopefully I will have some
>> time to get familiar with the code base and contribute in that area.
>> I have also been trying to push the firefox developers to move forward
>> on native ogg support in firefox.
>> http://groups.google.com/group/mozilla.dev.platform/browse_thread/thread/e
>> 56c81f0d078e268/47f7f7ffc5bfc9bc
>>
>> We should have a better open video support in web browsers soon :)
>>     
>
>
> Well for my self at least, it really isn't about having an open source
> alternative for website creators. For me it is entirely about having an
> alternative to using a windows pc. Currently embedded streaming (which is
> pretty much all streaming) on Linux doesn't work with vlc. As far as I can
> tell the vlc plugins only work if u write html pages to use it specifically,
> and this is what I don't get. As far as I could read out of hartmans
> response, there is pretty much no big technical blockers for making vlc
> impersonate being wmp or qtp. We can already play the vast majority of flash
> and wmv files, so my question was again: What's required for firefox or
> other browsers to be able to use the vlc plugin for ALL embedded streaming
> on webpage's?
>
> Maybe Damien, who more or ,masterminded the plugins, could list what's
> missing for vlc (both activeX and firefox plugin) to be able to "takeover" a
> browser and be used for all streaming.
>
> Best regards
>
> E-bola
>
> PS: I LOVE VLC!
>
>
>
>   
Yes, it's possible for VLC to mimic other players in firefox, basically 
all it needs is to support the matching set of javascript APIs and HTML 
tags.
I've thought of implementing a basic set of WMP apis on the mozilla 
plugin, but time is really the showstopper in my case.

As VLC is now using the NPRuntime APIs to implement JavaScript, it is 
possible to create a hierarchy of javascript objects at runtime, which 
is starting from a root object.
Therefore VLC can have multiple of those hierarchies and use the root 
object that matches the media player VLC is trying to impersonate to 
talk to the browser.
All that needs to be done is to create those hierarchies :)

Actually, VLC already contains an example of those hierarchies, as 
starting from 0.8.6, it will have a brand new set of Javascript APIs, 
but it is also backward compatible with the old APIs in 0.8.5.
There is a root object for the legacy APIs and a root object for the new 
APIs, VLC chooses the legacy APIs root object by default but it will use 
the new root object if you give the right trigger, which currently is a 
VERSION tag (although I'm thinking of using a mime-type as well)

I'd welcomed anyone who's willing to code a new hierarchy of javascript 
objects for WMP, Flash, QT, etc... or at the very least document them 
for myself or others to implement

Damien




-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list