Google TV jQuery 库的独立视频控制示例?
jQuery VideoControl 记录如下: https://developers.google.com/tv/web/ lib/jquery/#gtv.jq.VideoControl
它需要一组 VideoParms。那些没有具体说明。
它用于此页面上的示例模板: https://developers.google.com/tv/web/docs/gtv-templates
我已经拆开了模板,但我很难创建独立视频控件的简单示例。在模板中,侧导航和轮播代码与视频控制的工作方式相关联。 keyController 和行为(behaviorZones)之间存在某种关系,我找不到解释。
某处有独立的示例吗?需要对键控制器、CSS 和行为进行哪些设置才能实现此目的?
The jQuery VideoControl is documented here:
https://developers.google.com/tv/web/lib/jquery/#gtv.jq.VideoControl
It takes a set of VideoParms. That are not specified.
It is used in the sample templates on this page:
https://developers.google.com/tv/web/docs/gtv-templates
I've taken apart the templates, but I'm having difficulty creating a simple example of a standalone video control. In the templates, the sidenav and carousel code are tied to how the videocontrol works. There is a relationship between the keyController and behavior (behaviorZones) that I can not find an explanation for.
Is there a standalone example somewhere? What needs to be setup with keycontroller, css, and behavior to get this going?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道有一个独立的 videocontrol.js 示例,但应该可以设置它。大多数必要的部分都在 videocontrol.js 中,特别是在 videocontrol 的构造函数和此函数中:gtv.jq.VideoControl.prototype.makeControl。
keycontroller 映射用于处理按键输入,并且一些 CSS 在 JS 中动态控制,因此如果您直接从模板中将它们分开,可能会出现错误。您必须使用 Chrome 开发人员工具等可靠工具来调试它。您可以在这里观看该工具的教程:http://www.youtube.com/results?search_query=chrome+developer+tools&oq=chrome+develop& ;aq=0&aqi=g3g-m2&aql=&gs_sm=3&gs_upl=1972l4015l0l6142l14l11l0l0l0l0l207l1476l3.5.3l11l0
否则,请发送您的错误跟踪和/或代码片段以获取调试帮助。
I'm not aware that there is a standalone videocontrol.js sample but it should be possible to set it up. Most of the necessary pieces are inside videocontrol.js, in particular in the videocontrol's constructor and this function: gtv.jq.VideoControl.prototype.makeControl.
keycontroller mapping is used to handling key inputs and some of the CSS are dynamically controlled within JS so there might be errors if you just rip them apart straight from the Template. You'd have to debug it using a solid tool like Chrome Developer Tools. You can watch tutorials of this tool here: http://www.youtube.com/results?search_query=chrome+developer+tools&oq=chrome+develop&aq=0&aqi=g3g-m2&aql=&gs_sm=3&gs_upl=1972l4015l0l6142l14l11l0l0l0l0l207l1476l3.5.3l11l0
Otherwise please send your error traces and/or code snippet for debugging help.