Tuesday, March 10, 2009

How to play mpg video files with IBM Web Content Management (WCM)

Problem
How do you import mpg files so that they play within IBM Web Content Management (WCM)?


Resolving the problem
Import the mpg video file as WCM File Resource Component. Then reference that component with one of these methods in the presentation template:




METHOD 1:


<TR>

<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&" src=""
width="320" height="320"></embed>

</TR>



METHOD 2:

<TR>

<OBJECT id="Player" type="application/x-ms-wmp" width="300" height="200">
<PARAM name="url" value=""
<PARAM name="autostart" value="true" />
</OBJECT>
</TR>


In these samples the name of the File Resource Component is "videotest" in the library "JDRLibrary"