[vlc-devel] [PATCH] Moz-plugin and ActiveX: Add subtitle and audio JS binding

Jean-Paul Saman jpsaman at videolan.org
Fri May 22 15:15:09 CEST 2009

Cyril MATHE wrote:
> Hello,
> This two patches add new functionalities to the mozilla-plugin and
> ActiveX. This allow to have subtitle and audio tracks name and number.

The proposed JS api is not entirely to current semantics:
- capital letters are not to be used in property naming
- <obj>.trackCount is a no-go better use <obj>.count
- <obj>.trackName(int n) is a misnomer and should be better named 
<obj>.description(int n)

The API should be changed to the layout below before it can be merged in 

Audio object:
property (read): audio.count
method         : audio.description(int n)

Subtitle object:
property (read/write): subtitle.track
property (read)      : subtitle.count
method               : subtitle.description(int n)

Futher more it is required to update 
projects/{mozilla,activex}/test.html so that the new JS API members can 
also be properly tested.

> For Win32 compilation with ActiveX you need to generate new tlb files.
> This can be done by:
> * cd projects/activex/
> * widl -I/usr/include/wine/windows/ -h -H axvlc_idl.h -t -T axvlc.tlb -u
> -U axvlc_idl.c axvlc.idl
> The generated files will be sent later because I have others patches
> concerning ActiveX to send.
> ------------------------------------------------------------------------
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel

Jean-Paul Saman.

More information about the vlc-devel mailing list