MediaCore的Redturtle视频集成
collective.rtvideo.mediacore的Python项目详细描述
这是plone的RedTurtle Video产品的附加组件。其他文档可以在主产品页面中找到。
将此添加到plone安装中,以便beeing能够使用MediaCore视频链接作为“视频链接”内容类型的有效url。
为了提供来自mediacore的内容,您需要配置一个适配器并指定域名。 可以通过多种方式将适配器添加到应用程序中:
- directly to the buildout section on a .cfg file (example below):
- within a configure.zcml in collective.rtvideo.mediacore
- within an other package which implements redturtle.video.interfaces.IRTRemoteVideo
[instance] ... eggs = collective.rtvideo.mediacore ... zcml-additional = <configure xmlns="http://namespaces.zope.org/zope"> <adapter for = "redturtle.video.interfaces.IRTRemoteVideo zope.publisher.interfaces.browser.IHTTPRequest" provides = "collective.rtvideo.mediacore.videoembedcode.IMediaCoreEmbedCode" factory = "collective.rtvideo.mediacore.videoembedcode.JWPlayerEmbedCode" name= "your.domain"/> </configure>
注
这个插件不是唯一的。 mediacore必须提供一个视图,以json的形式提供一些有关媒体的信息。 有关详细信息,请参见mediacore.mediainfo包。