This is an old revision of the document!
Table of Contents
htvid Plugin
Compatible with DokuWiki
No compatibility info given!
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to flashplayer, html5video
Installation
Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.
Adopt Me!
This plugin will accept two video urls (one mp4 and one ogv) and writes html video tags, with a flash fallback into your Dokuwiki page. The JWPlayer Flash player uses the mp4 file to play out, so you do not have to encode to flv.
This plugin was a “one-off” solution used in our company in-house dokuwiki. It is based off of the HTML5 Video Plugin by Jason van Gumster, and uses JWPlayer 5.8 from the FlashPlayer plugin by Arno Welzel. At least 95% of the credit goes to them.
Examples/Usage
{{htvid>http://path.to/video.mp4|http://path.to/video.ogv|WidthxHeight|loop?autoplay}}
Syntax
Syntax is simple enough.
{{htvid>http://path.to/video.mp4|http://path.to/video.ogv|WidthxHeight|loop,autoplay}}
- {{htvid>
- IDs this as htvid plugin
- http://path.to/video.mp4
- http://path.to/video.ogv
- Must list 2 urls, plugin will fail if only one listed
- Must be full urls (dokuwiki style paths don't work right now)
- Must list mp4 file first, then ogv (Flash player uses the mp4 file)
- WidthxHeight
- Size of the player window. Will default to video files native resolution if left blank
- loop,autoplay
- Optional, sets video to either loop, or start playing as soon as page opened
You can set alignment by using spaces, just like other Dokuwiki media links. However, the first space should be between the greater than sign (“>”) and the first url.
Inline:
{{htvid>http:/path.to/video.mp4|http://path.to/video.ogv}}
Left Aligned:
{{htvid>http:/path.to/video.mp4|http://path.to/video.ogv }}
Center Aligned:
{{htvid> http:/path.to/video.mp4|http://path.to/video.ogv }}
Right Aligned:
{{htvid> http:/path.to/video.mp4|http://path.to/video.ogv}}
Change Log
- 2013-04-05
- Initial release
Known Bugs and Issues
As stated above, you must list full urls to video files, as JWPlayer does not seem to like the “..fetch.php?media=” links that the “ml()” function returns. Not a big deal in my use case, so I didn't worry about it too much.
Also, since JWPlayer uses the mp4 file to play, you must list the mp4 url first, then the ogv video as the second parameter
ToDo/Wish List
- Someone feel free to adopt this plugin!
- Make dokuwiki style media paths work (e.g. :media:videos:video.mp4)
- More graceful handling of more video filetypes (e.g. add support for any combination of mp4, ogv, webm, flv)
- Not require specific order of mp4 and ogv file listings