Index: trunk/extensions/OggHandler/OggHandler.php |
— | — | @@ -57,6 +57,8 @@ |
58 | 58 | // then we can output the <video> tag and its re-written by mv_embed |
59 | 59 | $wgVideoTagOut = false; |
60 | 60 | |
| 61 | +$wgVideoPlayerSkin = 'kskin'; |
| 62 | + |
61 | 63 | // Support striped player iframe output for remote embedding |
62 | 64 | $wgEnableIframeEmbed = false; |
63 | 65 | |
Index: trunk/extensions/OggHandler/OggHandler_body.php |
— | — | @@ -596,7 +596,7 @@ |
597 | 597 | |
598 | 598 | function toHtml( $options = array() ) { |
599 | 599 | global $wgEnableTemporalOggUrls, $wgVideoTagOut, |
600 | | - $wgScriptPath, $wgEnableTimedText; |
| 600 | + $wgScriptPath, $wgEnableTimedText, $wgVideoPlayerSkin; |
601 | 601 | |
602 | 602 | wfLoadExtensionMessages( 'OggHandler' ); |
603 | 603 | if ( count( func_get_args() ) == 2 ) { |
— | — | @@ -642,7 +642,7 @@ |
643 | 643 | 'src' => $url, |
644 | 644 | 'wikiTitleKey' => $this->file->getTitle()->getDBKey(), |
645 | 645 | 'style' => "width:{$width}px;height:{$playerHeight}px", |
646 | | - 'thumbnail'=>$thumb_url, |
| 646 | + 'poster'=>$thumb_url, |
647 | 647 | 'controls'=> 'true', |
648 | 648 | 'durationHint' => $length, |
649 | 649 | 'startOffset' => $offset, |
— | — | @@ -697,6 +697,11 @@ |
698 | 698 | $videoAttr['URLTimeEncoding'] = 'true'; |
699 | 699 | } |
700 | 700 | |
| 701 | + // Set player skin: |
| 702 | + if( $wgVideoPlayerSkin ){ |
| 703 | + $videoAttr['class'] = htmlspecialchars ( $wgVideoPlayerSkin ); |
| 704 | + } |
| 705 | + |
701 | 706 | $s = Xml::tags( 'video', $videoAttr, |
702 | 707 | Xml::tags('div', array( |
703 | 708 | 'class'=>'videonojs', |