Widget:Html5media

From Hackerspace ACKspace
Revision as of 16:08, 13 November 2017 by Xopr (talk | contribs) (added some warning via JS)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This widget allows you to embed HTML5 Media on your wiki page.

Created by taipan

preparing a video

For format compatibility, go to Mozilla, or caniuse.com (MPEG-4/H.264, WebM, Ogg/Theora) To convert a video (to progressive h264 mp4), use FFmpeg: ffmpeg -i inputfile.avi -c:v libx264 -pix_fmt yuv420p -movflags faststart outputfile.mp4

Using this widget

For information on how to use this widget, see widget description page on MediaWikiWidgets.org.

You can use the filepath special template reference like this: {{#Widget:Html5media|height=30|url={{filepath:voice.mp3}}}}

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:Html5media article.