Changes between Version 16 and Version 17 of MovieMacro


Ignore:
Timestamp:
Nov 5, 2014, 4:27:23 AM (9 years ago)
Author:
Tetsuya Morimoto
Comment:

Updated documentation for 0.3 version

Legend:

Unmodified
Added
Removed
Modified
  • MovieMacro

    v16 v17  
    44== Description ==
    55
    6 Embed online movies from [http://www.youtube.com/ YouTube], [http://video.google.com/ GoogleVideo] and [http://www.metacafe.com/ MetaCafe], and local movies via [http://flowplayer.org/ FlowPlayer]. If you want support for more online sites just create a ticket.
     6Embed online movies from [https://www.youtube.com/ YouTube], [http://www.metacafe.com/ MetaCafe] and [https://vimeo.com/ Vimeo], and local movies via [http://flowplayer.org/ FlowPlayer]. If you want support for more online sites just create a ticket.
    77
    88Adds support for preview rendering of movies in the browser and on attachment pages. For preview rendering to be available for all attachments, set the `max_preview_size` in the `[mimeviewer]` section of `trac.ini` to be greater than or equal to `max_size` in the `[attachment]` section.
     
    2020Download the [download:moviemacro zipped source], check out [http://trac-hacks.org/svn/moviemacro using Subversion], or [source:moviemacro browse the source] with Trac.
    2121
     22It's available if you want to install from PyPI.
     23
     24 - https://pypi.python.org/pypi/TracMovieMacro
     25
     26== Configuration ==
     27
     28Default parameter can be set in trac.ini.
     29
     30{{{ #!ini
     31[moviemacro]
     32width = 320px
     33height = 180px
     34splash = black.jpg  ; should be put /deployed/to/movie/htdocs/img/
     35}}}
     36
     37**Notes:**
     38
     39For attachments, Flowplayer try to resolve appropriate size ignoring width/height settings since flowplayer settings has `adaptiveRatio=true` by default in MovieMacro. It's preferred that adjusting player size automatically than particular size in almost every case.
     40
     41If you won't the behavior, pass `adaptiveRatio=false` as a query string and `style=width: 320px; height:240px;` parameter.
     42
     43 - see also: https://flowplayer.org/docs/setup.html
     44
    2245== Example ==
    2346
    2447To understand [wiki:lcordier] better.
    25 {{{
    26 #!sh
    27 [[Movie(http://www.youtube.com/watch?v=XUfH-BEBMoY,width=425px,height=344px)]]
     48
     49=== Embed youtube video ===
     50
     51{{{ #!sh
     52[[Movie(http://www.youtube.com/watch?v=9dfWzp7rYR4&start=5&rel=0,style=width: 320px; height:240px;)]]
    2853}}}
    2954
    30 To see an overview of the Scrum development methodology...
    31 {{{
    32 #!sh
    33 [[Movie(http://video.google.com/videoplay?docid=-7230144396191025011)]]
     55Player's parameter can be passed as a query string.
     56
     57 - see also: https://developers.google.com/youtube/player_parameters
     58
     59=== Embed metacafe video ===
     60
     61{{{ #!sh
     62[[Movie(http://www.metacafe.com/watch/1768855/the_size_of_all_planets_are_relative/)]]
    3463}}}
    3564
    36 To see our scale in the universe...
    37 {{{
    38 #!sh
    39 [[Movie(http://www.metacafe.com/watch/1768855/the_size_of_all_planets_are_relative/)]]
     65=== Embed vimeo video ===
     66
     67{{{ #!sh
     68[[Movie(http://vimeo.com/106808835)]]
    4069}}}
    4170
     
    5180You can also attach the file to a ticket, wiki page or keep it in you SVN repository. Reference the file like so:
    5281
    53  * from your project's htdocs: `htdocs://site/filename.flv`
    54  * from a plugin's htdocs: `htdocs://plugin/dir/filename.flv`
    55  * from an attachment on ticket `#123`: `ticket://123/filename.flv`
    56  * from an attachment on a wiki page: `wiki://WikiWord/filename.flv`
    57  * from your SVN repository revision `[1024]`, you can also use `HEAD` as your revision: `source://1024/trunk/docs/filename.flv`
     82* Simple form if an attachment is in the ticket/wiki.
     83 {{{ #!sh
     84[[Movie(sample.webm)]]
     85}}}
     86
     87* Restricted ImageMacro format style
     88 {{{ #!sh
     89[[Movie(ticket:123:sample.mp4)]]
     90[[Movie(wiki:test/sub/sample.mp4)]]
     91}}}
     92
     93* Fully qualified form.
     94  * from your project's htdocs: `htdocs://site/filename.flv`
     95  * from a plugin's htdocs: `htdocs://plugin/dir/filename.flv`
     96  * from an attachment on ticket `#123`: `ticket://123/filename.flv`
     97  * from an attachment on a wiki page: `wiki://WikiWord/filename.flv`
     98  * from your SVN repository revision `[1024]`, you can also use `HEAD` as your revision: `source://1024/trunk/docs/filename.flv`
    5899
    59100== Recent Changes ==