Embed Flash content
Plugin provides macro [[Embed(...)]] for embedding flash content into wiki pages.
If you have any issues, create a new ticket.
Download the zipped source from here.
From a bash command prompt:
# unzip flashembedmacro-r10922.zip # cd flashembedmacro/0.11 # python setup.py bdist_egg # cp dist/TracFlashEmbedMacro-0.95RC1-py2.4.egg /your-trac-project/plugins/ # apachectl graceful
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.
- youtube: video from YouTube http://youtube.com
- vimeo: video from Vimeo http://vimeo.com
- swf: SWF by URL or attachment link
- flv: insert JW Player with flv file, you must provide extra purl parameter
- 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 SWF by url
Embed SWF from attachment
If swf parameter starts with 'http://', 'https://' or '/', it's treated as URL. Otherwise it's processed as attachment.
The 'attachment:' prefix is optional, so examples above are equivalent.
If it doesn't play, check this setting in the trac.ini file
[attachment] render_unsafe_content = true
Embed FLV video
Note, that you'll need JW Player hosted somewhere.
The url for flv file is handled same as swf.
Added plugin revision info to webadmin page.
syntax should work in general case
#4937, trac-links to attachments allowed
- flowers.swf (4.6 kB) -
SWF example, added by firstname.lastname@example.org on 04/27/09 18:34:54.