| 1 | [[PageOutline(2-5,Contents,pullout)]] |
| 2 | = Safely embed various movies into wiki pages = |
| 3 | |
| 4 | This page is for version 2.0 documentation. |
| 5 | |
| 6 | - https://pypi.python.org/pypi/TracMovieMacro/0.2 |
| 7 | |
| 8 | == Description == |
| 9 | |
| 10 | 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. |
| 11 | |
| 12 | Adds 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. |
| 13 | |
| 14 | == Bugs/Feature Requests == |
| 15 | |
| 16 | Existing bugs and feature requests for MovieMacro are |
| 17 | [query:status!=closed&component=MovieMacro&order=priority here]. |
| 18 | |
| 19 | If you have any issues, create a |
| 20 | [/newticket?component=MovieMacro new ticket]. |
| 21 | |
| 22 | == Download and Source == |
| 23 | |
| 24 | Download the [download:moviemacro zipped source], check out [http://trac-hacks.org/svn/moviemacro using Subversion], or [source:moviemacro browse the source] with Trac. |
| 25 | |
| 26 | == Example == |
| 27 | |
| 28 | To understand [wiki:lcordier] better. |
| 29 | {{{ |
| 30 | #!sh |
| 31 | [[Movie(http://www.youtube.com/watch?v=XUfH-BEBMoY,width=425px,height=344px)]] |
| 32 | }}} |
| 33 | |
| 34 | To see an overview of the Scrum development methodology... |
| 35 | {{{ |
| 36 | #!sh |
| 37 | [[Movie(http://video.google.com/videoplay?docid=-7230144396191025011)]] |
| 38 | }}} |
| 39 | |
| 40 | To see our scale in the universe... |
| 41 | {{{ |
| 42 | #!sh |
| 43 | [[Movie(http://www.metacafe.com/watch/1768855/the_size_of_all_planets_are_relative/)]] |
| 44 | }}} |
| 45 | |
| 46 | For countries where bandwidth comes at a premium, I would recommend you download the flash-video file (.flv) and save it in your project's htdocs |
| 47 | directory. For !YouTube movies I would suggest you try [http://www.arrakis.es/~rggi3/youtube-dl/ youtube-dl]. |
| 48 | |
| 49 | Then reference your file like so: |
| 50 | {{{ |
| 51 | #!sh |
| 52 | [[Movie(htdocs://site/filename.flv)]] |
| 53 | }}} |
| 54 | |
| 55 | You can also attach the file to a ticket, wiki page or keep it in you SVN repository. Reference the file like so: |
| 56 | |
| 57 | * from your project's htdocs: `htdocs://site/filename.flv` |
| 58 | * from a plugin's htdocs: `htdocs://plugin/dir/filename.flv` |
| 59 | * from an attachment on ticket `#123`: `ticket://123/filename.flv` |
| 60 | * from an attachment on a wiki page: `wiki://WikiWord/filename.flv` |
| 61 | * from your SVN repository revision `[1024]`, you can also use `HEAD` as your revision: `source://1024/trunk/docs/filename.flv` |
| 62 | |
| 63 | == Recent Changes == |
| 64 | |
| 65 | [[ChangeLog(moviemacro, 3)]] |
| 66 | |
| 67 | == Author/Contributors == |
| 68 | |
| 69 | '''Author:''' [wiki:lcordier] [[BR]] |
| 70 | '''Maintainer:''' [[Maintainer]] [[BR]] |
| 71 | '''Contributors:''' |