====== html5video2 Plugin ======
---- plugin ----
description: playing mp4 video with html5 and flash-fallback using video.js
author : lisps, peterfromearth
email : coder@peterfromearth.de
type : syntax
lastupdate : 2022-10-02
compatible : Hogfather, Igor
depends :
conflicts :
similar : html5video
tags : video html flash videojs
downloadurl: https://github.com/lisps/html5video/archive/master.zip
bugtracker : https://github.com/lisps/html5video/issues
sourcerepo : https://github.com/lisps/html5video/
donationurl:
screenshot_img :
----
===== Installation =====
Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
:!: **You have to add mp4 MIME Type to your configuration** see [[plugin:html5video#Installation|htm5video Plugin]]
:!: **PHP 8.1**: update to version 2022-10-02 You need to put parantheses around the expressions on line 190 and line 191 in file ''plugins/html5video/syntax/video.php'' to make it work in PHP 8.1. New code will read like this:($w?('width="' .$w.'px" '):'').
($h?('height="'.$h.'px" '):'').
[[https://github.com/lisps/html5video/issues/8|Issue#8]] thanks to @thalueng
===== Syntax =====
{{video.mp4|}} block
{{video.mp4 |}} left
{{ video.mp4 |}} center
{{ video.mp4|}} right
{{video.mp4?200x50|}} [widht]x[height]
{{video.mp4?400x&:wiki:dokuwiki-128.png|}} preview image
{{video.mp4?400x&:wiki:dokuwiki-128.png|video}} alternate text
===== Configuration and Settings =====
| | description | default |
|''html5VideoType'' | have to be | ''video/mp4'' |
|''videoPlayerIDText'' | | ''videoPlayerID'' |
|''VideoPreload'' | preload video | ''none'' |
|''GlobalVideoPreviewPicture'' | imagelink | '''' |
|''fallBackVideoTechnologie'' | | ''flash'' |
|''preferedVideoTechnologie'' | | ''html5'' |
|''standardAlternateTextPrint'' | | ''HIER WURDE EIN VIDEO EINGEFUEGT'' |
|''showThumbOnPrint'' | show image on print | ''0'' |
|''showStandardTextOnPrint'' | show standard alternate text on print | ''0'' |
===== Development =====
Parts borrowed from the videogg plugin written by Ludovic Kiefer and from the [[plugin:html5video]] plugin written by
Jason van Gumster (Fweeb) which is based on Christophe Benz' Dailymotion plugin, which, in turn,
is based on Ikuo Obataya's Youtube plugin.
=== Change Log ===
* **2013-10-30**
* Initial release
=== Known Bugs and Issues ===
=== ToDo/Wish List ===
* Support playlist
* Disabling download ("save audio as...") menu/button
* If you have a lot of videos on a page, they should only be downloaded after you click play, otherwise the page will take a long time to load.
===== FAQ =====
===== Discussion =====
>>Installed this on my new dokuwiki, using layout 20cones. Immediately broke everything,
>>
>>
>>A fatal error occured during compilation of the CSS files. If you recently installed a new plugin or template >>it might be broken and you should try disabling it again. [parse error: failed at ´weight:´ in /lib/plugins/html5video/print.css at line 64]"
>>
>>Can't even get back to setup.
>>
>there was an error in print.css - can you try the [[https://github.com/lisps/html5video/archive/master.zip|masterbranch]] --- [[user>lisps]]
Is there a way to autoplay? the original style config for html5video doesn't work here when you add |autoplay - :autoplay - or ?autoplay.
+1 on this! Autoplay?
>Seems like it [[https://forum.sangham.net/index.php?topic=10600.msg27742#msg27742|causes menu to appear open]]. Fine after disable the plugin in again. (S. Johann)