Changes between Version 16 and Version 17 of FlashEmbedMacro
- Timestamp:
- Apr 16, 2015, 11:57:24 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FlashEmbedMacro
v16 v17 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = Embed Flash content =3 = Embed Flash content 4 4 5 == Description ==5 == Description 6 6 7 Plugin providesmacro ![[Embed(...)]] for embedding flash content into wiki pages.7 This plugin provides a macro ![[Embed(...)]] for embedding flash content into wiki pages. 8 8 9 == Bugs/Feature Requests ==9 == Bugs/Feature Requests 10 10 11 11 Existing bugs and feature requests for FlashEmbedMacro are … … 15 15 [http://trac-hacks.org/newticket?component=FlashEmbedMacro&owner=rudyryk new ticket]. 16 16 17 == Download == 17 [[TicketQuery(component=FlashEmbedMacro&group=type,format=progress)]] 18 19 == Download 18 20 19 21 Download the zipped source from [download:flashembedmacro here]. 20 22 21 == Source ==23 == Source 22 24 23 25 You can check out FlashEmbedMacro from [http://trac-hacks.org/svn/flashembedmacro here] using Subversion, or [source:flashembedmacro browse the source] with Trac. 24 26 25 == Installation hints == 27 == Installation 28 26 29 From a bash command prompt: 27 {{{ 28 #unzip flashembedmacro-r10922.zip29 #cd flashembedmacro/0.1130 #python setup.py bdist_egg31 #cp dist/TracFlashEmbedMacro-0.95RC1-py2.4.egg /your-trac-project/plugins/32 #apachectl graceful30 {{{#!sh 31 unzip flashembedmacro-r10922.zip 32 cd flashembedmacro/0.11 33 python setup.py bdist_egg 34 cp dist/TracFlashEmbedMacro-0.95RC1-py2.4.egg /your-trac-project/plugins/ 35 apachectl graceful 33 36 }}} 34 37 35 == Usage and Examples ==38 == Usage and Examples 36 39 37 Macro produces html code for embedding flash content from certain 38 service, by it's 'key' and content id. It also can embed simple SWF 39 by it's URL. 40 Macro produces html code for embedding flash content from certain service, by its 'key' and content id. It also can embed simple SWF by its URL. 40 41 41 42 Available keys: … … 43 44 * ''vimeo'': video from Vimeo http://vimeo.com 44 45 * ''swf'': SWF by URL or attachment link 45 * ''flv'': insert [http://www.longtailvideo.com/players/jw-flv-player/ JW Player] with flv file, you '''must''' provide extra ''purl'' parameter 46 * ''flv'': insert [http://www.longtailvideo.com/players/jw-flv-player/ JW Player] with flv file, you '''must''' provide extra ''purl'' parameter. 46 47 47 48 Optional parameters: 48 49 * ''w'' and ''h'': width and height of embedded flash object 49 50 51 === Enable in the trac.ini file 50 52 51 === Enable in the trac.ini file === 52 For a global install, you need to ensure the following is added to your `[components]` section 53 For a global installation, you need to ensure the following is added to the `[components]` section of your `trac.ini` file: 53 54 54 {{{ 55 {{{#!ini 56 [components] 55 57 tracflashembed.macros.embedmacro = enabled 56 58 tracflashembedmacro = enabled 57 59 }}} 58 60 59 === Embed !YouTube or Vimeo === 61 === Embed !YouTube or Vimeo 62 63 Examples: 64 {{{ 65 [[Embed(youtube=emYqURahUKI)]] 66 [[Embed(vimeo=3840952,w=400,h=300)]] 67 }}} 68 69 === Embed SWF by url 70 71 Examples: 72 {{{ 73 [[Embed(swf=http://trac-hacks.org/raw-attachment/wiki/FlashEmbedMacro/flowers.swf,w=500,h=400)]] 74 [[Embed(swf=/raw-attachment/wiki/FlashEmbedMacro/flowers.swf,w=500,h=400)]] 75 }}} 76 77 === Embed SWF from attachment 78 79 Examples: 80 {{{ 81 [[Embed(swf=flowers.swf,w=500,h=400)]] 82 [[Embed(swf=attachment:flowers.swf,w=500,h=400)]] 83 }}} 84 85 If ''swf'' parameter starts with '!http://', '!https://' or '/', it's treated as URL. Otherwise it is processed as an attachment. 86 87 The 'attachment:' prefix is optional, so the examples above are equivalent. 88 89 If it doesn't play, check this setting in the `trac.ini` file: 90 91 {{{#!ini 92 [attachment] 93 render_unsafe_content = true 94 }}} 95 96 === Embed FLV video 97 98 Note, that you will need [http://www.longtailvideo.com/players/jw-flv-player/ JW Player] hosted somewhere. 60 99 61 100 {{{ 62 [[Embed(youtube=emYqURahUKI)]] 63 [[Embed(vimeo=3840952,w=400,h=300)]] 64 }}} 65 66 === Embed SWF by url === 67 68 {{{ 69 [[Embed(swf=http://trac-hacks.org/raw-attachment/wiki/FlashEmbedMacro/flowers.swf,w=500,h=400)]] 70 [[Embed(swf=/raw-attachment/wiki/FlashEmbedMacro/flowers.swf,w=500,h=400)]] 71 }}} 72 73 === Embed SWF from attachment === 74 75 {{{ 76 [[Embed(swf=flowers.swf,w=500,h=400)]] 77 [[Embed(swf=attachment:flowers.swf,w=500,h=400)]] 78 }}} 79 80 If ''swf'' parameter starts with '!http://', '!https://' or '/', it's treated as URL. Otherwise it's processed as attachment. 81 82 The 'attachment:' prefix is optional, so examples above are equivalent. 83 84 If it doesn't play, check this setting in the trac.ini file 85 86 {{{ 87 [attachment] 88 render_unsafe_content = true 89 }}} 90 91 === Embed FLV video === 92 93 Note, that you'll need [http://www.longtailvideo.com/players/jw-flv-player/ JW Player] hosted somewhere. 94 95 {{{ 96 [[Embed(flv=video.flv,purl=/jwplayer.swf,w=500,h=400)]] 101 [[Embed(flv=video.flv,purl=/jwplayer.swf,w=500,h=400)]] 97 102 }}} 98 103 99 104 The url for ''flv'' file is handled same as ''swf''. 100 105 101 == Recent Changes ==106 == Recent Changes 102 107 103 108 [[ChangeLog(flashembedmacro, 3)]] 104 109 105 == Author/Contributors ==110 == Author/Contributors 106 111 107 112 '''Author:''' [wiki:rudyryk] [[BR]] 108 '''Maintainer:''' [ wiki:rudyryk] [[BR]]113 '''Maintainer:''' [[Maintainer]] [[BR]] 109 114 '''Contributors:'''