Changes between Version 16 and Version 17 of FlashEmbedMacro


Ignore:
Timestamp:
Apr 16, 2015, 11:57:24 AM (9 years ago)
Author:
figaro
Comment:

Cosmetic changes, tagged with license

Legend:

Unmodified
Added
Removed
Modified
  • FlashEmbedMacro

    v16 v17  
    11[[PageOutline(2-5,Contents,pullout)]]
    22
    3 = Embed Flash content  =
     3= Embed Flash content
    44
    5 == Description ==
     5== Description
    66
    7 Plugin provides macro ![[Embed(...)]] for embedding flash content into wiki pages.
     7This plugin provides a macro ![[Embed(...)]] for embedding flash content into wiki pages.
    88
    9 == Bugs/Feature Requests ==
     9== Bugs/Feature Requests
    1010
    1111Existing bugs and feature requests for FlashEmbedMacro are
     
    1515[http://trac-hacks.org/newticket?component=FlashEmbedMacro&owner=rudyryk new ticket].
    1616
    17 == Download ==
     17[[TicketQuery(component=FlashEmbedMacro&group=type,format=progress)]]
     18
     19== Download
    1820
    1921Download the zipped source from [download:flashembedmacro here].
    2022
    21 == Source ==
     23== Source
    2224
    2325You can check out FlashEmbedMacro from [http://trac-hacks.org/svn/flashembedmacro here] using Subversion, or [source:flashembedmacro browse the source] with Trac.
    2426
    25 == Installation hints ==
     27== Installation
     28
    2629From a bash command prompt:
    27 {{{
    28 # unzip flashembedmacro-r10922.zip
    29 # cd flashembedmacro/0.11
    30 # python setup.py bdist_egg
    31 # cp dist/TracFlashEmbedMacro-0.95RC1-py2.4.egg /your-trac-project/plugins/
    32 # apachectl graceful
     30{{{#!sh
     31unzip flashembedmacro-r10922.zip
     32cd flashembedmacro/0.11
     33python setup.py bdist_egg
     34cp dist/TracFlashEmbedMacro-0.95RC1-py2.4.egg /your-trac-project/plugins/
     35apachectl graceful
    3336}}}
    3437
    35 == Usage and Examples ==
     38== Usage and Examples
    3639
    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.
     40Macro 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.
    4041
    4142Available keys:
     
    4344 * ''vimeo'': video from Vimeo http://vimeo.com
    4445 * ''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.
    4647
    4748Optional parameters:
    4849 * ''w'' and ''h'': width and height of embedded flash object
    4950
     51=== Enable in the trac.ini file
    5052
    51 === Enable in the trac.ini file ===
    52 For a global install, you need to ensure the following is added to your `[components]` section
     53For a global installation, you need to ensure the following is added to the `[components]` section of your `trac.ini` file:
    5354
    54 {{{
     55{{{#!ini
     56[components]
    5557tracflashembed.macros.embedmacro = enabled
    5658tracflashembedmacro = enabled
    5759}}}
    5860
    59 === Embed !YouTube or Vimeo ===
     61=== Embed !YouTube or Vimeo
     62
     63Examples:
     64{{{
     65[[Embed(youtube=emYqURahUKI)]]
     66[[Embed(vimeo=3840952,w=400,h=300)]]
     67}}}
     68
     69=== Embed SWF by url
     70
     71Examples:
     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
     79Examples:
     80{{{
     81[[Embed(swf=flowers.swf,w=500,h=400)]]
     82[[Embed(swf=attachment:flowers.swf,w=500,h=400)]]
     83}}}
     84
     85If ''swf'' parameter starts with '!http://', '!https://' or '/', it's treated as URL. Otherwise it is processed as an attachment.
     86
     87The 'attachment:' prefix is optional, so the examples above are equivalent.
     88
     89If it doesn't play, check this setting in the `trac.ini` file:
     90
     91{{{#!ini
     92[attachment]
     93render_unsafe_content = true
     94}}}
     95
     96=== Embed FLV video
     97
     98Note, that you will need [http://www.longtailvideo.com/players/jw-flv-player/ JW Player] hosted somewhere.
    6099
    61100{{{
    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)]]
    97102}}}
    98103
    99104The url for ''flv'' file is handled same as ''swf''.
    100105
    101 == Recent Changes ==
     106== Recent Changes
    102107
    103108[[ChangeLog(flashembedmacro, 3)]]
    104109
    105 == Author/Contributors ==
     110== Author/Contributors
    106111
    107112'''Author:''' [wiki:rudyryk] [[BR]]
    108 '''Maintainer:''' [wiki:rudyryk] [[BR]]
     113'''Maintainer:''' [[Maintainer]] [[BR]]
    109114'''Contributors:'''