[[PageOutline(2-5,Contents,pullout)]] = Embed Flash content = == Description == Plugin provides macro ![[Embed(...)]] for embedding flash content into wiki pages. == Bugs/Feature Requests == Existing bugs and feature requests for FlashEmbedMacro are [report:9?COMPONENT=FlashEmbedMacro here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=FlashEmbedMacro&owner=rudyryk new ticket]. == Download == Download the zipped source from [download:flashembedmacro here]. == Source == You can check out FlashEmbedMacro from [http://trac-hacks.org/svn/flashembedmacro here] using Subversion, or [source:flashembedmacro browse the source] with Trac. == Usage and Examples == Macro produces html code for embedding flash content from certain service, by it's 'key' and content id. It also can embed simple SWF by it's URL. Available keys: * ''youtube'': video from !YouTube http://youtube.com * ''vimeo'': video from Vimeo http://vimeo.com * ''swf'': SWF by URL or attachment link * ''flv'': insert [http://www.longtailvideo.com/players/jw-flv-player/ JW Player] with flv file, you '''must''' provide extra ''purl'' parameter Optional parameters: * ''w'' and ''h'': width and height of embedded flash object === Enable in the trac.ini file === For a global install, you need to ensure the following is added to your `[components]` section {{{ tracflashembed.macros.embedmacro = enabled tracflashembedmacro = enabled }}} === Embed !YouTube or Vimeo === {{{ [[Embed(youtube=emYqURahUKI)]] [[Embed(vimeo=3840952,w=400,h=300)]] }}} === Embed SWF by url === {{{ [[Embed(swf=http://trac-hacks.org/attachment/wiki/FlashEmbedMacro/flowers.swf?format=raw,w=500,h=400)]] [[Embed(swf=/attachment/wiki/FlashEmbedMacro/flowers.swf?format=raw,w=500,h=400)]] }}} === Embed SWF from attachment === {{{ [[Embed(swf=flowers.swf,w=500,h=400)]] [[Embed(swf=attachment:flowers.swf,w=500,h=400)]] }}} [[Embed(swf=flowers.swf,w=500,h=400)]] [[Embed(swf=attachment:flowers.swf,w=500,h=400)]] If ''swf'' parameter starts with '!http://', '!https://' of '/', it's treated as URL. Otherwise it's processed as attachment. The 'attachment:' prefix is optional, so examples above are equivalent. === Embed FLV video === Note, that you'll need [http://www.longtailvideo.com/players/jw-flv-player/ JW Player] hosted somewhere. {{{ [[Embed(flv=video.flv,purl=/jwplayer.swf,w=500,h=400)]] }}} The url for ''flv'' file is handled same as ''swf''. == Recent Changes == [[ChangeLog(flashembedmacro, 3)]] == Author/Contributors == '''Author:''' [wiki:rudyryk] [[BR]] '''Maintainer:''' [wiki:rudyryk] [[BR]] '''Contributors:'''