jplayer和很少的接口
是否有可能:
在同一页面上有一个 jPlayer 实例和 2 个接口。
示例:
is it possible:
one jPlayer instance and 2 interfaces for it, at the same page.
Sample:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知(从源代码来看),事件(播放、暂停等)似乎是硬连线使用接口“jp_interface_n”的标识符:
其中 n 对应于玩家的 id “jquery_jplayer_n”
因此,在上述情况下,播放器“jquery_jplayer_1”将推断出“jp_interface_1”的接口 ID。
我认为如果不修改 jplayer 组件,您尝试做的事情是不可能的,尽管我只看了几分钟,所以可能错过了一些东西。
您有两个选择:
通过以下 Google 网上论坛询问该项目的工作人员:
jPlayer:HTML5 音频和播放器jQuery 视频
创建您自己的界面并使用他们的 api 连接它:
jPlayer 2.0.0 开发人员指南
As far as I can see (from looking at the source) it seems as though the events (play, pause etc.) are hard-wired to use the identifier of the interface "jp_interface_n":
where n corresponds to the id of the player "jquery_jplayer_n"
So in the case above the player "jquery_jplayer_1" would infer an interface id of "jp_interface_1".
I do not think what you are attempting to do is possible without modification of the jplayer component, although I have only looked at it for a couple of minutes so may have missed something.
You have two choices:
Ask someone who works on the project via the following Google Group:
jPlayer: HTML5 Audio & Video for jQuery
Create you own interface(s) and wire it up using their api:
jPlayer 2.0.0 Developer Guide