Where is the VLC browser plugin documentation?

I was not lucky to find him. The wiki information is out of date, the javascript vlc object has changed a lot since the writing of the wiki page. A google search gives me a more recent view of how the current interface works.

For example, wiki says document.video1.play () on the demo page, but the browser says that the object does not have such a method. Then I found that in the current interface, the play method was moved to a child object called playlist. document.video1.playlist.play () works.

I tried to list all the properties of a javascript object, but for some reason this does not work for the playlist object, which probably has most of the methods that interest me. If I use this method ( How to list the properties of a JavaScript object? And How to display all the methods of an object in Javascript? ) To list the properties for a playlist object, I get only two properties and a method name, including the ones I confirmed that exist. Tried it in Chrome and Firefox.

So far, I have confirmed the following interface:

VLC multimedia plugin (compatible totem 3.4.3)

If the main nested object is called vlc in the document (I don't like video1), we can access its methods with:

// don't need to explain these, they do what they say document.vlc.playlist.play(); document.vlc.playlist.stop(); // Pauses or resumes the video, if paused you can resume using play() method too // yes, now it has the toggle word, wiki demo is obsolete document.vlc.playlist.togglePause(); // Go into fullscreen, and if in fullscreen go into browser window again document.vlc.video.toggleFullscreen(); 

With this, I already have the basic functionality of a player and can do something.

“Look at the source code” is the correct answer, but I prefer it to be the last. I prefer something in the form of documentation if such a thing exists for this particular project.

It seems that the closer, the more I can learn about the plugin interface: http://blog.revolunet.com/VLCcontrols/

However, something in the documentation would be nice.

If a link to updated examples, documentation, etc. does not exist, then tips on how to find out the rest of the interface will be welcome.

+4
source share
1 answer

Having the same problems, I finally came to the actual Wikipedia entry for the VLC Browser plugin.

The last change this year and, of course, has the most accurate information about the parameters and events.

Link: Documentation: WebPlugin

+4
source

All Articles