Hey there, Now I am using the JWPlayer and embedded it and its working to some extent. In the video tag I have mentioned the poster image which comes up in the start of the video(when its still not played). The video is also playing but I cant see it; I can see a black screen even if I do a full screen mode. I guess it has been blocked on something.
Also, the height & width I have set is not getting affected to it. It's a kinda clumsy.. any suggestions on it. -- Gopal Kumar From: [email protected] [mailto:[email protected]] On Behalf Of Jan Haderka Sent: Thursday, May 26, 2011 4:46 PM To: Magnolia User-List Subject: Re: [magnolia-user] Reg: Video 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={"clip":{"autoPlay":false,"autoBuffering":true,"url":"http://demoauthor.magnolia-cms.com/default/dms/demo-project/videos/magnolia_intro_480px.mov"},"playerId":"fp_26364802","playlist":[{"autoPlay":false,"autoBuffering":true,"url":"http://demoauthor.magnolia-cms.com/default/dms/demo-project/videos/magnolia_intro_480px.mov"}]}"> 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]> ---------------------------------------------------------------- ________________________________ ::DISCLAIMER:: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ----------------------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
