/redmine_video_macros

(maintained) Redmine wiki macros for embedding video

Primary LanguageRuby

Redmine Video Macros plugin

This is a Redmine plugin that adds a macros to embed videos into Redmine wiki pages.

Supported Video Services:

This plugin was developed using J.W.Marsden's redmine-youtube plugin as a base.

Version

Redmine 1.x: 0.1.x Redmine 2.x: 0.2.x

Usage

To embed a video you have to extract the video key from the video service URL and provide it as input to the appropriate macro. For example, the Vimeo URL for the Kinect Titty Tracker video is

http://vimeo.com/17095170

The video key for this URL is 17095170. Use this key in the macro as follows:

{{vimeo(17095170)}}

You can also specify the size of the embedded video:

{{vimeo(17095170, 800, 600)}}

For Youtube, a given video link http://www.youtube.com/watch?v=ctJJrBw7e-c has a video key of ctJJrBw7e-c. You can embed this video as follows:

{{youtube(ctJJrBw7e-c)}}

Developing

Feel free to fork this repo and add more video services. Look inside init.rb to see how the appropriate embed html is generated.