Topic on Extension talk:HTML5video

configured HTML5video.php for poster attribute

2
Summary by Jkmartindale

Added into extension code

Teststudent (talkcontribs)

html5 allows a poster="" attribute to the <video> tag.

A simple php update allows this extension to make use of it. Might want to add this to the next version:

line entire new line of code to enter.
61 $poster = isset($args['poster']) ? $args['poster'] : 'none';
(now)
69
$output = '<video width="' . $width . '" height="' . $height . '" poster="' . $wgScriptPath . '/extensions/HTML5video/videos/' . $poster . '" autobuffer controls ' . $autoplay . ' preload="auto" >' .
91 $output = '<video width="' . $width . '" autobuffer controls ' . $autoplay . ' preload="auto" poster="' . $wgScriptPath . '/extensions/HTML5video/videos/' . $poster . '" >' .

then just swap your jpeg into the same folder as your vid's, add poster"yourpic.jpg" to your <HTML5video> tag, and voila.



P.S.: the URL in the extension credits is meant to be a direct link to the extension itself.

PPS: If you're using server caching like APC, don't forget to reload the webserver.