[opencms-dev] Embedded video

Francesco Badagliacco francesco.badagliacco at eng.it
Fri Sep 5 18:20:02 CEST 2008


Hello list,

to create a page with a video inside of it, you have to: 

  a.. include in the xsd file a simple xsd element (Video) of type openCmsString that contains the URL of the video.
    for example:    Video: http://yourwebserver/yourvideo.mov

  a.. include the code to embed the video in the template .jsp,
For example (in case of a .mov file):

 <!--[if !IE]>-->
       <object type="video/quicktime" data="<cms:contentshow element="Video"/>" width="400" height="300">
                        <param name="autoplay" value="false" />
                        <param name="autoStart" value="0" />
                        <param name="loop" value="false" />
                        <param name="controller" value="true" />
                        <!--<![endif]-->
                        <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="400" height="300" codebase="http://www.apple.com/qtactivex/qtplugin.cab"> >
                            <param name="src" value="<cms:contentshow element="Video"/>" />
                            <param name="autoplay" value="false" />
                            <param name="controller" value="true" />
                            <param name="loop" value="false" />
                            <param name="scale" value="tofit" />
                        </object>
                        <!--[if !IE]>-->
         </object>
<!--<![endif]-->

Bye bye,

Francesco.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080905/f7559b91/attachment.htm>


More information about the opencms-dev mailing list