[vlc-devel] Support of events in Mozilla plugin - Beta

Anthony Loiseau thannoy at actech-innovation.com
Wed Sep 2 10:16:10 CEST 2009

On Wed, 2009-09-02 at 09:40 +0200, jpd at videolan.org wrote:
> On Tue, Sep 01, 2009 at 07:28:49PM +0200, y.brehon at qiplay.com wrote:

> > > What is the performance penalty of (unnecessairy) calls-to-javascript?
> > 
> > This penalty has not been measured, but is probably not negligible, given
> > that every event triggers the above-described back and forth exchanges
> > (thread->firefox->plugin->javascript)
> Worth a look then as it'd save code. If you come up with numbers please
> share.

At least for events like libvlc_MediaPlayerPositionChanged, we can
suppose the cost will be huge in term of quantity of calls and maybe
stress for the browser.
I guess you have tested it. Was the browser still fluid with the "all"
profile or with the above event?

I will add a word about about API  stability, maybe someone can answer
me on this point. Are event names stable across VLC major/minor
versions ? (At least profiles should be stable names)
I mean will webpages which use this callback feature will work with
future releases or is this API more dedicated to be used in a
"controlled" environment with known VLC version, etc?

good work!


More information about the vlc-devel mailing list