jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/327577 )
Change subject: Allow parser tests to be run in any order
......................................................................
Allow parser tests to be run in any order
Having a player ID which increments throughout script execution does not
allow individual parser tests to be run with --regex. Also, my pending
parser test engine refactor changes the order in which the tests are
run and so breaks tests. Instead, add a hook which resets the serial
at the start of each test.
Change-Id: I561344cee8e279050be37356fbfa8e97d3b21017
(cherry picked from commit 8b8b191624591c0f4d447cb8c6634a9dde39ffd2)
---
M TimedMediaHandler.hooks.php
M TimedMediaTransformOutput.php
M tests/parserTests.txt
3 files changed, 29 insertions(+), 12 deletions(-)
Approvals:
Aaron Schulz: Looks good to me, approved
jenkins-bot: Verified
diff --git a/TimedMediaHandler.hooks.php b/TimedMediaHandler.hooks.php
index 81fdc3a..6e85b91 100644
--- a/TimedMediaHandler.hooks.php
+++ b/TimedMediaHandler.hooks.php
@@ -323,6 +323,7 @@
// Add unit tests
$wgHooks['UnitTestsList'][] =
'TimedMediaHandlerHooks::registerUnitTests';
$wgHooks['ParserTestTables'][] =
'TimedMediaHandlerHooks::onParserTestTables';
+ $wgHooks['ParserTestGlobals'][] =
'TimedMediaHandlerHooks::onParserTestGlobals';
/**
* Add support for the "TimedText" NameSpace
@@ -621,6 +622,13 @@
}
/**
+ * Hook to reset player serial so that parser tests are not
order-dependent
+ */
+ public static function onParserTestGlobals( &$globals ) {
+ TimedMediaTransformOutput::resetSerialForTest();
+ }
+
+ /**
* Add JavaScript and CSS for special pages that may include timed media
* but which will not fire the parser hook.
*
diff --git a/TimedMediaTransformOutput.php b/TimedMediaTransformOutput.php
index 03ac47f..9c2851c 100644
--- a/TimedMediaTransformOutput.php
+++ b/TimedMediaTransformOutput.php
@@ -1,7 +1,7 @@
<?php
class TimedMediaTransformOutput extends MediaTransformOutput {
- private static $serial = 0;
+ protected static $serial = 0;
// Video file sources object lazy init in getSources()
// TODO these vars should probably be private
@@ -188,8 +188,11 @@
function getImagePopUp() {
// pop up videos set the autoplay attribute to true:
$autoPlay = true;
+ $id = TimedMediaTransformOutput::$serial;
+ TimedMediaTransformOutput::$serial++;
+
return Xml::tags( 'div', [
- 'id' => self::PLAYER_ID_PREFIX .
TimedMediaTransformOutput::$serial++,
+ 'id' => self::PLAYER_ID_PREFIX . $id,
'class' => 'PopUpMediaTransform',
'style' => "width:" . $this->getPlayerWidth() .
"px;",
'videopayload' => $this->getHtmlMediaTagOutput(
$this->getPopupPlayerSize(), $autoPlay ),
@@ -419,8 +422,10 @@
$height .= 'px';
}
+ $id = TimedMediaTransformOutput::$serial;
+ TimedMediaTransformOutput::$serial++;
$mediaAttr = [
- 'id' => self::PLAYER_ID_PREFIX .
TimedMediaTransformOutput::$serial++,
+ 'id' => self::PLAYER_ID_PREFIX . $id,
// Get the correct size:
'poster' => $posterUrl,
@@ -536,4 +541,8 @@
$this->hashTime = $hash;
return $this->hashTime;
}
+
+ public static function resetSerialForTest() {
+ self::$serial = 1;
+ }
}
diff --git a/tests/parserTests.txt b/tests/parserTests.txt
index 2050125..59fccd4 100644
--- a/tests/parserTests.txt
+++ b/tests/parserTests.txt
@@ -6,7 +6,7 @@
<div class="mediaContainer" style="width:320px"><video id="mwe_player_1"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg"
controls="" preload="none" style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv" data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv" type="video/ogg;
codecs="theora"" data-title="Original Ogg file, 320 × 240 (590 kbps)"
data-shorttitle="Ogg source" data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30"/>Sorry, your browser either has
JavaScript disabled or does not have any supported player.<br /> You can <a
href="http://example.com/images/0/00/Video.ogv">download the clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your browser.</video></div>
!! html+tidy
-<div class="mediaContainer" style="width:320px"><video id="mwe_player_0"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg"
controls="" preload="none" style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv" data-mwprovider="local">
+<div class="mediaContainer" style="width:320px"><video id="mwe_player_1"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg"
controls="" preload="none" style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv" data-mwprovider="local">
<source src="http://example.com/images/0/00/Video.ogv" type="video/ogg;
codecs="theora"" data-title="Original Ogg file, 320 × 240 (590 kbps)"
data-shorttitle="Ogg source" data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30" />Sorry, your browser either has
JavaScript disabled or does not have any supported player.<br />
You can <a href="http://example.com/images/0/00/Video.ogv">download the
clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your browser.</video></div>
!!end
@@ -16,12 +16,12 @@
!! wikitext
[[File:Video.ogv|thumb]]
!! html
-<div class="thumb tright"><div class="thumbinner" style="width:182px;"><div
id="mwe_player_4" class="PopUpMediaTransform" style="width:180px;"
videopayload="<div class="mediaContainer"
style="width:320px"><video id="mwe_player_5"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg"
controls="" preload="none" autoplay=""
style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv"
data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv" type="video/ogg;
codecs=&quot;theora&quot;" data-title="Original Ogg file, 320
× 240 (590 kbps)" data-shorttitle="Ogg source"
data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30"/>Sorry, your
browser either has JavaScript disabled or does not have any supported
player.<br /> You can <a
href="http://example.com/images/0/00/Video.ogv">download the
clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your
browser.</video></div>"><img alt="File:Video.ogv"
style="width:180px;height:135px"
src="http://example.com/images/thumb/0/00/Video.ogv/180px--Video.ogv.jpg"></img><a
href="http://example.com/images/0/00/Video.ogv" title="Play media"
target="new"><span class="play-btn-large"><span class="mw-tmh-playtext">Play
media</span></span></a></div> <div class="thumbcaption"><div
class="magnify"><a href="/wiki/File:Video.ogv" class="internal"
title="Enlarge"></a></div></div></div></div>
+<div class="thumb tright"><div class="thumbinner" style="width:182px;"><div
id="mwe_player_1" class="PopUpMediaTransform" style="width:180px;"
videopayload="<div class="mediaContainer"
style="width:320px"><video id="mwe_player_2"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg"
controls="" preload="none" autoplay=""
style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv"
data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv" type="video/ogg;
codecs=&quot;theora&quot;" data-title="Original Ogg file, 320
× 240 (590 kbps)" data-shorttitle="Ogg source"
data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30"/>Sorry, your
browser either has JavaScript disabled or does not have any supported
player.<br /> You can <a
href="http://example.com/images/0/00/Video.ogv">download the
clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your
browser.</video></div>"><img alt="File:Video.ogv"
style="width:180px;height:135px"
src="http://example.com/images/thumb/0/00/Video.ogv/180px--Video.ogv.jpg"></img><a
href="http://example.com/images/0/00/Video.ogv" title="Play media"
target="new"><span class="play-btn-large"><span class="mw-tmh-playtext">Play
media</span></span></a></div> <div class="thumbcaption"><div
class="magnify"><a href="/wiki/File:Video.ogv" class="internal"
title="Enlarge"></a></div></div></div></div>
!! html+tidy
<div class="thumb tright">
<div class="thumbinner" style="width:182px;">
-<div id="mwe_player_2" class="PopUpMediaTransform" style="width:180px;"
videopayload="<div class="mediaContainer"
style="width:320px"><video id="mwe_player_3"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg"
controls="" preload="none" autoplay=""
style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv"
data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv" type="video/ogg;
codecs=&quot;theora&quot;" data-title="Original Ogg file, 320
× 240 (590 kbps)" data-shorttitle="Ogg source"
data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30"/>Sorry, your
browser either has JavaScript disabled or does not have any supported
player.<br />
+<div id="mwe_player_1" class="PopUpMediaTransform" style="width:180px;"
videopayload="<div class="mediaContainer"
style="width:320px"><video id="mwe_player_2"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg"
controls="" preload="none" autoplay=""
style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv"
data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv" type="video/ogg;
codecs=&quot;theora&quot;" data-title="Original Ogg file, 320
× 240 (590 kbps)" data-shorttitle="Ogg source"
data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30"/>Sorry, your
browser either has JavaScript disabled or does not have any supported
player.<br />
You can <a
href="http://example.com/images/0/00/Video.ogv">download the
clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your
browser.</video></div>"><img alt="File:Video.ogv"
style="width:180px;height:135px"
src="http://example.com/images/thumb/0/00/Video.ogv/180px--Video.ogv.jpg" /><a
href="http://example.com/images/0/00/Video.ogv" title="Play media"
target="new"><span class="play-btn-large"><span class="mw-tmh-playtext">Play
media</span></span></a></div>
<div class="thumbcaption">
<div class="magnify"><a href="/wiki/File:Video.ogv" class="internal"
title="Enlarge"></a></div>
@@ -37,7 +37,7 @@
!! html
<ul class="gallery mw-gallery-traditional">
<li class="gallerybox" style="width: 155px"><div style="width:
155px">
- <div class="thumb" style="width: 150px;"><div
style="margin:30px auto;"><div id="mwe_player_6" class="PopUpMediaTransform"
style="width:120px;" videopayload="<div class="mediaContainer"
style="width:320px"><video id="mwe_player_7"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg"
controls="" preload="none" autoplay=""
style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv"
data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv" type="video/ogg;
codecs=&quot;theora&quot;" data-title="Original Ogg file, 320
× 240 (590 kbps)" data-shorttitle="Ogg source"
data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30"/>Sorry, your
browser either has JavaScript disabled or does not have any supported
player.<br /> You can <a
href="http://example.com/images/0/00/Video.ogv">download the
clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your
browser.</video></div>"><img alt="File:Video.ogv"
style="width:120px;height:90px"
src="http://example.com/images/thumb/0/00/Video.ogv/120px--Video.ogv.jpg"></img><a
href="http://example.com/images/0/00/Video.ogv" title="Play media"
target="new"><span class="play-btn-large"><span class="mw-tmh-playtext">Play
media</span></span></a></div></div></div>
+ <div class="thumb" style="width: 150px;"><div
style="margin:30px auto;"><div id="mwe_player_1" class="PopUpMediaTransform"
style="width:120px;" videopayload="<div class="mediaContainer"
style="width:320px"><video id="mwe_player_2"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg"
controls="" preload="none" autoplay=""
style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv"
data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv" type="video/ogg;
codecs=&quot;theora&quot;" data-title="Original Ogg file, 320
× 240 (590 kbps)" data-shorttitle="Ogg source"
data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30"/>Sorry, your
browser either has JavaScript disabled or does not have any supported
player.<br /> You can <a
href="http://example.com/images/0/00/Video.ogv">download the
clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your
browser.</video></div>"><img alt="File:Video.ogv"
style="width:120px;height:90px"
src="http://example.com/images/thumb/0/00/Video.ogv/120px--Video.ogv.jpg"></img><a
href="http://example.com/images/0/00/Video.ogv" title="Play media"
target="new"><span class="play-btn-large"><span class="mw-tmh-playtext">Play
media</span></span></a></div></div></div>
<div class="gallerytext">
</div>
</div></li>
@@ -50,7 +50,7 @@
!! wikitext
[[File:Video.ogv|thumbtime=1:25]]
!! html
-<div class="mediaContainer" style="width:320px"><video id="mwe_player_8"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px-seek%3D3.3666666666667-Video.ogv.jpg"
controls="" preload="none" style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv" data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv" type="video/ogg;
codecs="theora"" data-title="Original Ogg file, 320 × 240 (590 kbps)"
data-shorttitle="Ogg source" data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30"/>Sorry, your browser either has
JavaScript disabled or does not have any supported player.<br /> You can <a
href="http://example.com/images/0/00/Video.ogv">download the clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your browser.</video></div>
+<div class="mediaContainer" style="width:320px"><video id="mwe_player_1"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px-seek%3D3.3666666666667-Video.ogv.jpg"
controls="" preload="none" style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv" data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv" type="video/ogg;
codecs="theora"" data-title="Original Ogg file, 320 × 240 (590 kbps)"
data-shorttitle="Ogg source" data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30"/>Sorry, your browser either has
JavaScript disabled or does not have any supported player.<br /> You can <a
href="http://example.com/images/0/00/Video.ogv">download the clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your browser.</video></div>
!! end
@@ -59,7 +59,7 @@
!! wikitext
[[File:Video.ogv|start=1:25]]
!! html
-<div class="mediaContainer" style="width:320px"><video id="mwe_player_9"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px-seek%3D3.3666666666667-Video.ogv.jpg"
controls="" preload="none" style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv" data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv#t=00:00:03.366" type="video/ogg;
codecs="theora"" data-title="Original Ogg file, 320 × 240 (590 kbps)"
data-shorttitle="Ogg source" data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30"/>Sorry, your browser either has
JavaScript disabled or does not have any supported player.<br /> You can <a
href="http://example.com/images/0/00/Video.ogv#t=00:00:03.366">download the
clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your browser.</video></div>
+<div class="mediaContainer" style="width:320px"><video id="mwe_player_1"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px-seek%3D3.3666666666667-Video.ogv.jpg"
controls="" preload="none" style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv" data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv#t=00:00:03.366" type="video/ogg;
codecs="theora"" data-title="Original Ogg file, 320 × 240 (590 kbps)"
data-shorttitle="Ogg source" data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30"/>Sorry, your browser either has
JavaScript disabled or does not have any supported player.<br /> You can <a
href="http://example.com/images/0/00/Video.ogv#t=00:00:03.366">download the
clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your browser.</video></div>
!! end
@@ -68,7 +68,7 @@
!! wikitext
[[File:Video.ogv|start=1:25|end=1:35]]
!! html
-<div class="mediaContainer" style="width:320px"><video id="mwe_player_10"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px-seek%3D3.3666666666667-Video.ogv.jpg"
controls="" preload="none" style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv" data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv#t=00:00:03.366,00:00:03.366"
type="video/ogg; codecs="theora"" data-title="Original Ogg file, 320
× 240 (590 kbps)" data-shorttitle="Ogg source" data-width="320"
data-height="240" data-bandwidth="590013" data-framerate="30"/>Sorry, your
browser either has JavaScript disabled or does not have any supported
player.<br /> You can <a
href="http://example.com/images/0/00/Video.ogv#t=00:00:03.366,00:00:03.366">download
the clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your browser.</video></div>
+<div class="mediaContainer" style="width:320px"><video id="mwe_player_1"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px-seek%3D3.3666666666667-Video.ogv.jpg"
controls="" preload="none" style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv" data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv#t=00:00:03.366,00:00:03.366"
type="video/ogg; codecs="theora"" data-title="Original Ogg file, 320
× 240 (590 kbps)" data-shorttitle="Ogg source" data-width="320"
data-height="240" data-bandwidth="590013" data-framerate="30"/>Sorry, your
browser either has JavaScript disabled or does not have any supported
player.<br /> You can <a
href="http://example.com/images/0/00/Video.ogv#t=00:00:03.366,00:00:03.366">download
the clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your browser.</video></div>
!! end
@@ -77,7 +77,7 @@
!! wikitext
[[File:Video.ogv|alt=Test]]
!! html
-<div class="mediaContainer" style="width:320px"><video id="mwe_player_11"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg"
controls="" preload="none" style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv" data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv" type="video/ogg;
codecs="theora"" data-title="Original Ogg file, 320 × 240 (590 kbps)"
data-shorttitle="Ogg source" data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30"/>Sorry, your browser either has
JavaScript disabled or does not have any supported player.<br /> You can <a
href="http://example.com/images/0/00/Video.ogv">download the clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your browser.</video></div>
+<div class="mediaContainer" style="width:320px"><video id="mwe_player_1"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg"
controls="" preload="none" style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv" data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv" type="video/ogg;
codecs="theora"" data-title="Original Ogg file, 320 × 240 (590 kbps)"
data-shorttitle="Ogg source" data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30"/>Sorry, your browser either has
JavaScript disabled or does not have any supported player.<br /> You can <a
href="http://example.com/images/0/00/Video.ogv">download the clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your browser.</video></div>
!! end
@@ -86,7 +86,7 @@
!! wikitext
[[File:Video.ogv|link=Example]]
!! html
-<div class="mediaContainer" style="width:320px"><video id="mwe_player_12"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg"
controls="" preload="none" style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv" data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv" type="video/ogg;
codecs="theora"" data-title="Original Ogg file, 320 × 240 (590 kbps)"
data-shorttitle="Ogg source" data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30"/>Sorry, your browser either has
JavaScript disabled or does not have any supported player.<br /> You can <a
href="http://example.com/images/0/00/Video.ogv">download the clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your browser.</video></div>
+<div class="mediaContainer" style="width:320px"><video id="mwe_player_1"
poster="http://example.com/images/thumb/0/00/Video.ogv/320px--Video.ogv.jpg"
controls="" preload="none" style="width:320px;height:240px" class="kskin"
data-durationhint="4.3666666666667" data-startoffset="0"
data-mwtitle="Video.ogv" data-mwprovider="local"><source
src="http://example.com/images/0/00/Video.ogv" type="video/ogg;
codecs="theora"" data-title="Original Ogg file, 320 × 240 (590 kbps)"
data-shorttitle="Ogg source" data-width="320" data-height="240"
data-bandwidth="590013" data-framerate="30"/>Sorry, your browser either has
JavaScript disabled or does not have any supported player.<br /> You can <a
href="http://example.com/images/0/00/Video.ogv">download the clip</a> or <a
href="https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:TimedMediaHandler/Client_download">download
a player</a> to play the clip in your browser.</video></div>
!! end
--
To view, visit https://gerrit.wikimedia.org/r/327577
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I561344cee8e279050be37356fbfa8e97d3b21017
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/TimedMediaHandler
Gerrit-Branch: REL1_27
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Tim Starling <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits