哪里是VLC的浏览器插件的文件? [英] Where is VLC browser plugin documentation?

查看:606
本文介绍了哪里是VLC的浏览器插件的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不任何运气试图找到它。维基上的信息是过时的,因为维基页面编写JavaScript对象已经改变了很多的VLC。谷歌搜索给我的当前界面是怎样一个更多,更新的外观。

I don't having any luck trying to find it. Information on wiki is outdated, the vlc javascript object has changed a lot since the wiki page was written. Google searching give me a more updated look of how the current interface is.

例如,维基说document.video1.play()在演示页面,但是浏览器说,对象没有这样的方法。后来我发现,在当前接口play方法被转移到一个名为播放列表子对象。 document.video1.playlist.play()的作品。

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

我试图枚举JavaScript对象的所有属性,但由于某种原因,这并不为可能有大部分我感兴趣的方式播放列表对象工作。如果我用这个方法(<一个href=\"http://stackoverflow.com/questions/85992/how-do-i-enumerate-the-properties-of-a-javascript-object\">How我列举一个JavaScript对象的属性?和<一个href=\"http://stackoverflow.com/questions/2257993/how-to-display-all-methods-in-a-javascript-object\">How显示在一个JavaScript对象的所有方法?)枚举属性播放列表对象,我只得到两个特性,没有一种方法名,包括那些我证实存在。试图Chrome和Firefox。

I tried to enumerate all properties of the javascript object but for some reason this does not work for the playlist object that probably has most of the methods I interested in. If I use this method (How do I enumerate the properties of a javascript object? and How to display all methods in a JavaScript object?) to enumerate properties for playlist object I only get two properties and no method name, including the ones I confirmed that exists. Tried in Chrome and Firefox.

到目前为止,我已经确认了以下接口:

So far I have confirmed the following interface:

VLC多媒体插件(兼容​​3.4.3图腾)

VLC Multimedia Plugin (compatible Totem 3.4.3)

如果主要的嵌入对象被称为VLC文件(我不喜欢视频1),那么我们可以通过访问其方法:

If the main embeddable object is called vlc in document (I don't like video1) then we can access its methods by:

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

去看看源$ C ​​$ c是有效的答案,但我preFER让那作为最后的事情。我美元的文档格式P $ PFER的东西,如果不存在对这个特定的项目这样的事情。

"Go look the source code" is valid answer, but I prefer to let that as the last thing to do. I prefer something in documentation form, if such a thing exists for this particular project.

这似乎是更接近我可以更多地了解插件接口:的http://博客.revolunet.com / VLCcontrols /

This seems to be the more close I can get to learn more about the plugin interface: http://blog.revolunet.com/VLCcontrols/

不过,事中文档的形式将是不错的。

Still, something in documentation form would be nice.

如果链接更新的例子,文档等,都是不存在的话就如何找出界面的其余部分将是受欢迎的秘诀。

If link to updated examples, documentation, etc, are inexistent then tips on how find out the rest of the interface will be welcome.

推荐答案

有过,我终于来到翻过实际的维基百科条目上,VLC浏览器相同的问题插件。

Having had the same issues I've finally come accross the actual Wikipedia entry for the VLC Browser Plugin.

去年今年早些时候修改,肯定对参数和事件的最准确的信息。

Last modified earlier this year and definitely has the most accurate info on the parameters and events.

链接:文档:WebPlugin

这篇关于哪里是VLC的浏览器插件的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆