Videolan 9.0 plugin APIs

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
gborzi

Videolan 9.0 plugin APIs

Postby gborzi » 26 May 2008 11:53

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Videolan 9.0 plugin APIs

Postby Jean-Baptiste Kempf » 28 May 2008 03:00

There shouldn't be much difference. But yes, there will be betas... when? no idea.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: Videolan 9.0 plugin APIs

Postby thannoy » 28 May 2008 12:18

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.

gborzi

Re: Videolan 9.0 plugin APIs

Postby gborzi » 28 May 2008 13:41

Thank you for the infos, this is encouraging.
Maybe the javascripts may not need amajor upgrade.

Regards

blue_american
New Cone
New Cone
Posts: 3
Joined: 06 Apr 2006 00:57
Location: Coimbra, Portugal

Re: Videolan 9.0 plugin APIs

Postby blue_american » 09 Jul 2008 01:09

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

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: Videolan 9.0 plugin APIs

Postby thannoy » 09 Jul 2008 09:31

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();

ddod
Blank Cone
Blank Cone
Posts: 28
Joined: 04 Oct 2006 18:35
Location: Western United States

Re: Videolan 9.0 plugin APIs

Postby ddod » 30 Apr 2009 01:39

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?
Last edited by ddod on 30 Apr 2009 18:11, edited 1 time in total.

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: Videolan 9.0 plugin APIs

Postby thannoy » 30 Apr 2009 02:31

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).

ddod
Blank Cone
Blank Cone
Posts: 28
Joined: 04 Oct 2006 18:35
Location: Western United States

Re: Videolan 9.0 plugin APIs

Postby ddod » 30 Apr 2009 18:11

Thanks. That did it. I was passing a null since when I first built this page that field didn't seem to do anything.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 8 guests