Index: trunk/extensions/TimedMediaHandler/TimedMediaHandler_body.php |
— | — | @@ -155,7 +155,9 @@ |
156 | 156 | |
157 | 157 | $srcWidth = $file->getWidth(); |
158 | 158 | $srcHeight = $file->getHeight(); |
159 | | - |
| 159 | + |
| 160 | + $params['width'] = ( isset( $params['width'] ) )? $params['width'] : $srcWidth; |
| 161 | + |
160 | 162 | $options = array( |
161 | 163 | 'file' => $file, |
162 | 164 | 'length' => $this->getLength( $file ), |
Index: trunk/extensions/TimedMediaHandler/TimedMediaTransformOutput.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | const PLAYER_ID_PREFIX = 'mwe_player_'; |
14 | 14 | |
15 | 15 | function __construct( $conf ){ |
16 | | - $options = array( 'file', 'sources', 'thumbUrl','start', 'end', 'width', 'height', 'length', 'offset', 'isVideo', 'path' ); |
| 16 | + $options = array( 'file', 'dstPath', 'sources', 'thumbUrl','start', 'end', 'width', 'height', 'length', 'offset', 'isVideo', 'path' ); |
17 | 17 | foreach ( $options as $key ) { |
18 | 18 | if( isset( $conf[ $key ]) ){ |
19 | 19 | $this->$key = $conf[$key]; |
— | — | @@ -35,8 +35,11 @@ |
36 | 36 | // else return the fileicon for the poster url: |
37 | 37 | return "$wgStylePath/common/images/icons/fileicon-ogg.png"; |
38 | 38 | } |
| 39 | + // TODO get the local path |
| 40 | + function getPath(){ |
| 41 | + return $this->dstPath; |
| 42 | + } |
39 | 43 | |
40 | | - |
41 | 44 | function getPlayerHeight(){ |
42 | 45 | // Check if "video" tag output: |
43 | 46 | if ( $this->isVideo ) { |