Index: trunk/extensions/FlvHandler/FlvHandler.i18n.php |
— | — | @@ -14,5 +14,3 @@ |
15 | 15 | 'flvhandler_desc' => 'Allow Flash Video (.flv) files to be used in standard image tags (e.g. <nowiki>[[Image:Movie.flv]]</nowiki>)', |
16 | 16 | 'flv-long-desc' => '(Flash video, $1 × $2 pixels, file size: $3)' |
17 | 17 | ); |
18 | | - |
19 | | -?> |
\ No newline at end of file |
Property changes on: trunk/extensions/FlvHandler/FlvHandler.i18n.php |
___________________________________________________________________ |
Name: svn:eol-style |
20 | 18 | + native |
Index: trunk/extensions/FlvHandler/FlvHandler.php |
— | — | @@ -16,7 +16,8 @@ |
17 | 17 | */ |
18 | 18 | |
19 | 19 | // Extension credits that will show up on Special:Version |
20 | | -$wgExtensionCredits['parserhook'][] = array( |
| 20 | +$wgExtensionCredits['media'][] = array( |
| 21 | + 'path' => __FILE__, |
21 | 22 | 'name' => 'FLV Image Handler', |
22 | 23 | 'version' => 'r3', |
23 | 24 | 'author' => 'Adam Nielsen', |
— | — | @@ -45,35 +46,21 @@ |
46 | 47 | ); |
47 | 48 | |
48 | 49 | // Pick one of the above as the converter to use |
49 | | -if (empty($wgFLVConverter)) $wgFLVConverter = 'ffmpeg'; |
| 50 | +$wgFLVConverter = 'ffmpeg'; |
50 | 51 | |
51 | 52 | // If not in the executable PATH, specify |
52 | | -if (empty($wgFLVConverterPath)) $wgFLVConverterPath = ''; |
| 53 | +$wgFLVConverterPath = ''; |
53 | 54 | |
| 55 | +// Path of Flash video playing applet |
| 56 | +// Default value is $wgScriptPath . '/extensions/FlvHandler/flowplayer/flowplayer-3.0.3.swf' |
| 57 | +$wgFlashPlayer = null; |
| 58 | + |
54 | 59 | // Minimum size for the flash player (width,height). Used to make sure the |
55 | 60 | // controls don't get all squashed up on really small .flv movies. |
56 | | -if (empty($wgMinFLVSize)) $wgMinFLVSize = array(250, 250); |
| 61 | +$wgMinFLVSize = array( 250, 250 ); |
57 | 62 | |
58 | | - |
59 | | -//Avoid unstubbing $wgParser on setHook() too early on modern (1.12+) MW versions, as per r35980 |
60 | | -/*if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) { |
61 | | - $wgHooks['ParserFirstCallInit'][] = 'efFLVHandlerParserInit'; |
62 | | -} else { // Otherwise do things the old fashioned way |
63 | | - $wgExtensionFunctions[] = 'efFLVHandlerParserInit'; |
64 | | -}*/ |
65 | | - |
66 | 63 | $wgHooks['ImageBeforeProduceHTML'][] = 'efFlvHandlerRender'; |
67 | | -/* |
68 | | -function efFLVHandlerParserInit() |
69 | | -{ |
70 | | - global $wgMessageCache; |
71 | 64 | |
72 | | - // Default (English) message for Image page itself, if one doesn't already exist. |
73 | | - $wgMessageCache->addMessages(array('flv-long-desc' => '(Flash video, $1 × $2 pixels, file size: $3)')); |
74 | | - |
75 | | - return true; |
76 | | -}*/ |
77 | | - |
78 | 65 | // Hook function called just before image code is displayed as HTML. If the |
79 | 66 | // image is an FLV file, embed a flash player, otherwise ignore it and let |
80 | 67 | // the default MW code display the image. |
— | — | @@ -136,5 +123,3 @@ |
137 | 124 | $res = str_replace("\n", ' ', $prefix . $s . $postfix); |
138 | 125 | return false; |
139 | 126 | } |
140 | | - |
141 | | -?> |
\ No newline at end of file |
Property changes on: trunk/extensions/FlvHandler/FlvHandler.php |
___________________________________________________________________ |
Name: svn:eol-style |
142 | 127 | + native |
Property changes on: trunk/extensions/FlvHandler/README |
___________________________________________________________________ |
Name: svn:eol-style |
143 | 128 | + native |
Property changes on: trunk/extensions/FlvHandler/FlvImageHandler.php |
___________________________________________________________________ |
Name: svn:eol-style |
144 | 129 | + native |