1

刚从CQ5开始。我知道只有 cq5.4 以后才有视频组件。

那么如何在 CQ5.3 中插入​​视频呢?

4

1 回答 1

3

您可能希望创建一个组件并在您的 JSP 中包含带有参数的目标代码,具体取决于您想要支持的视频类型。示例代码 -

<object width="200px" height="200px" id="your_video_id" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0">
<param name="movie" value="http://www.msnbc.msn.com/id/32545640" />
<param name="FlashVars" value="launch=<%=msnbc.getMSNBCVideoID()%>&amp;width=<%=msnbc.getWidth()%>&amp;height=<%=msnbc.getHeight()%>" />
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="true" />
<param name="wmode" value="transparent" />
<embed name="msnbc61868e" src="http://www.msnbc.msn.com/id/32545640" width="<%=msnbc.getWidth()%>" height="<%=msnbc.getHeight()%>" FlashVars="launch=<%=msnbc.getMSNBCVideoID()%>&amp;width=<%=msnbc.getWidth()%>&amp;height=<%=msnbc.getHeight()%>" allowscriptaccess="always" allowFullScreen="true" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">
</embed>
</object>
于 2012-09-05T05:43:48.347 回答