On Wed, Nov 28, 2012 at 8:19 AM, Frantisek Kall <[email protected]> wrote:
Hi,
I need to insert videos into wiki pages. I tried to use JWPlayer Macro, but it looks it only allows insert videos stored as attachment in wiki pages. I need insert videos stored in LAN which are available as http link (ex: http://server.domain.com/training/Video1.mp4).
Is there possibility to use JWPlayer Macro in this case?
It can be adapted. To do a quick test I edited Macros.JWPlayer page with object editor and modified the XWiki.WikiMacroClass object's code property like this: * commented line 5 and 6 (used ##) * replaced alt="$alt" with alt="$xcontext.macro.params.attachment" (in order to pass directly the parameter value) Then I used this in a wiki page: {{jwplayer attachment="http://www.808.dk/pics/video/gizmo.mp4" /}} Of course, next you need to decide if you create a new macro or modify the name of the "attachment" parameter. In any case, http://platform.xwiki.org/xwiki/bin/view/DevGuide/WikiMacroTutorial is worth reading. Hope this helps, Marius
Thanks
Frantisek
-- View this message in context: http://xwiki.475771.n2.nabble.com/JWPlayer-Macro-tp7582581.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users