ikiwiki/doc/plugins/contrib/video.mdwn

26 lines
1.2 KiB
Plaintext
Raw Normal View History

2011-06-27 04:29:55 +02:00
[[!template id=plugin name=video author="[[Yury Chumak|sphynkx]]"]]
2011-06-27 04:05:05 +02:00
2011-06-27 04:20:06 +02:00
## Video
2011-06-27 04:02:16 +02:00
This plugin provides embedding video on wikipages. Plugin uses most simple embedding method - only with *embed* tag and without any JS-scripts.
###Usage
2011-06-28 16:05:12 +02:00
>\[\[\!video width=100 height=100 type="application/x-shockwave-flash" src="/\_jwplayer/player.swf" allowscriptaccess="always" allowfullscreen="true" autostart="false" file="path\_to\_video"\]\]
2011-06-27 04:02:16 +02:00
2011-06-28 16:05:12 +02:00
All parameters are optional except *file* and will be replaced with the default settings as showed in the above example.
2011-06-27 04:02:16 +02:00
2011-06-28 16:05:12 +02:00
*file* is relative path in webdir or web-address (to Youtube page).
2011-06-27 04:02:16 +02:00
### Install
2011-06-27 11:47:54 +02:00
Download and unpack [archive](http://sphynkx.org.ua/progr/videoplug/jw_videoplugin.tar.bz2) in your ikiwiki webdir.
Or download [JW Player](http://www.longtailvideo.com/players/jw-flv-player/) and [perl module](http://sphynkx.org.ua/progr/videoplug/video.pm) separately. Make dir *\_jwplayer* and put player.swf in it. Also put *video.pm* in *Plugin* dir. In Ikiwiki configuration switch on the plugin:
2011-06-27 04:02:16 +02:00
add_plugins => [qw{.......... video}]
### Note
[Htmlscrubber](http://ikiwiki.info/plugins/htmlscrubber/) may block *embed* tag.
If embed tag present but video not playing - check mode of unpacked *player.swf*.