On May 26, 2011, at 11:06 AM, Gopal Kumar wrote:

> Hi there,
>  
> Can anyone explain me how the video works in magnolia-cms?

The page template loads the js file of the player. The element in the page 
determines location of the player. The in a player dependent way you need to 
provide either link to the video file to the player as an attribute, or as 
somebody already pointed out, you might need some other page producing xml 
descriptor for the player and link only to that descriptor while the descriptor 
itself will contain direct link to the binary file in magnolia.
Since it is a player specific, you need to look in which form your player 
expects data.

>  
> I have tried some things in it but couldn’t work out. Has anyone implemented 
> it then please share your steps; I have a requirement to add a JWPlayer and 
> then play an video. As I could find out that magnolia internally has a player 
> named FlowPlayer embedded to play video files but I am not able to.


As for the default implementation code is out in open, there's no secret. Look 
at 
http://svn.magnolia-cms.com/view/community/modules/standard-templating-kit/trunk/magnolia-module-standard-templating-kit/src/main/resources/templating-kit/paragraphs/content/video.ftl?revision=32670

the div element there works as a placeholder and on display is ammended via js 
with the embed element that will look something like 
<embed type="application/x-shockwave-flash" 
src="/.resources/templating-kit/swf/flowplayer.swf" width="100%" height="100%" 
allowfullscreen="true" allowscriptaccess="sameDomain" quality="high" 
pluginspage="http://www.adobe.com/go/getflashplayer"; id="fp_26364802_api" 
bgcolor="#000000" name="fp_26364802_api" 
flashvars="config={&quot;clip&quot;:{&quot;autoPlay&quot;:false,&quot;autoBuffering&quot;:true,&quot;url&quot;:&quot;http://demoauthor.magnolia-cms.com/default/dms/demo-project/videos/magnolia_intro_480px.mov&quot;},&quot;playerId&quot;:&quot;fp_26364802&quot;,&quot;playlist&quot;:[{&quot;autoPlay&quot;:false,&quot;autoBuffering&quot;:true,&quot;url&quot;:&quot;http://demoauthor.magnolia-cms.com/default/dms/demo-project/videos/magnolia_intro_480px.mov&quot;}]}";>


Of course if you want to go for more primitive approach you can just hardcode 
the <embed/> tag directly in your template. But what the correct params are for 
your player ... that's for you to figure out.

HTH,
Jan



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to