Page 1 of 1

Videolan 9.0 plugin APIs

Posted: 26 May 2008 11:53
by gborzi
Hi there

I use videolan 8.6 plugins for some web project, with some javascript programming, and they work well.
I tried in the last days to install the latest 9.0 plugins, to start getting ready to the future release.
Unfortunately my javascripts do not work with the 9.0.

Is there any difference between the videolan 8.6 APIs and the future 9.0 APIs?
Will a 9.0 beta be released before the first 9.0 release?
Any idea of the roadmap?

Thank you and best regards

Giovanni

Re: Videolan 9.0 plugin APIs

Posted: 28 May 2008 03:00
by Jean-Baptiste Kempf
There shouldn't be much difference. But yes, there will be betas... when? no idea.

Re: Videolan 9.0 plugin APIs

Posted: 28 May 2008 12:18
by thannoy
This link will give you the APIs description, at least the second API should work with 0.9.0 (I used it). If you were already using this API, there is no many differences since 0.8.6.
http://wiki.videolan.org/Documentation: ... lla_plugin

Currently, I am using a git pulled one or two weeks ago and I have not successed to have windows mozplugin+activex working (mozilla-plugin works well under my linux). On my windows OS, both find 0 candidates for demuxers and access modules so no video. I don't know if it has been fixed in the last commits nor if it just a bug from my windows environment.

Re: Videolan 9.0 plugin APIs

Posted: 28 May 2008 13:41
by gborzi
Thank you for the infos, this is encouraging.
Maybe the javascripts may not need amajor upgrade.

Regards

Re: Videolan 9.0 plugin APIs

Posted: 09 Jul 2008 01:09
by blue_american
Hi all,

I'm using vlc-0.9.0_beta1 plugin under gentoo and I'm not able to control (play, stop, etc) the media in mozilla-firefox (tried version 2 and 3).
The plugin is working because if I put autoplay to 'yes' it works.

Anyone having the same problem?

Best regards,

Rui

Re: Videolan 9.0 plugin APIs

Posted: 09 Jul 2008 09:31
by thannoy
Hi,

You can test your plugin with a public webpage using VLC. For example :
http://code.revolunet.com/VLCobject/example.html (simple play)
http://code.revolunet.com/VLCcontrols/V ... ample.html (play, stop, ...)

If it works, you can try to find an error in you test page:
1- test if you get the right JS variable for the VLC HTML node:

Code: Select all

myVLC = document.getElementById("id_of_your_vlc_node"); alert(myVLC);
you can use more user-friendly tools to get myVLC content. For my own I use firebug (http://getfirebug.com/).
Result should be a not-null value, a "function" iirc.

2- test JS bindings
simply getting the version, checking you use good function names..

Code: Select all

alert( myVLC.VersionInfo );

Code: Select all

alert( myVLC.playlist.add );
3- add and play

Code: Select all

myVLC.playlist.add("url"); myVLC.playlist.play();

Re: Videolan 9.0 plugin APIs

Posted: 30 Apr 2009 01:39
by ddod
I have a quick question that I have yet to be able to find an answer to. The new OSD that displays when a stream is first accessed (file name or network path, etc). Is there anyway to control this text with the plugin? Right now it displays the Network address of the stream but I would like it to show the stream's descriptive name that I specify. How can I do this?

Re: Videolan 9.0 plugin APIs

Posted: 30 Apr 2009 02:31
by thannoy
The text shown is the item name in the playlist. It is the second parameter of vlc.playlist.add(url, name, options). Default name (if null of unspecified), is the url. You can use vlc.playlist.add(url, name) too (default option is empty in this case).

Re: Videolan 9.0 plugin APIs

Posted: 30 Apr 2009 18:11
by ddod
Thanks. That did it. I was passing a null since when I first built this page that field didn't seem to do anything.