Extension talk:FLVPlayer

Installation issue in MediaWiki 1.9
I just attempted to install the FLVPlayer extension into MediaWiki v1.9, and followed the instructions to the letter, but when I add the syntax to a wiki article, the player controls appear but the video itself doesn't appear at all (a white area is all that shows). Clicking the control buttons results in no effect.

The .FLV file was uploaded to the wiki without any problems; I also tried playing a .FLV file from an external server based on the instructions included, and saw no discernible difference.

Has anyone run into this issue before? Does anyone have any suggestions on what might fix this issue? 68.166.139.133 18:46, 6 February 2007 (UTC)

Installation issue in MediaWiki 1.7.1
Exactly the same problem here, with version 1.7.1. Actually, I have not seen any example page where this extension is actually working. 160.45.34.138 16:20, 16 February 2007 (UTC)

Installation issue in MediaWiki 1.9
The same here.....been trying to get it working but no success so far.

Same again ! 72.83.240.72 03:11, 28 February 2007 (UTC)

Installation issue in MediaWiki 1.9
Got it working

change url . '&baseURL=http://' . $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $this->flashvars . '" />

to

url . "'" . '};baseURL=http://' . $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $this->flashvars . '" />

Autoplay and loop = false doesn't work
Hi, I'm using FLV Player on my MW 1.9.3 but it always auto play the video and loop it, even if I add autoplay="false" loop="false"

What happen ??? --Iubito 05:05, 4 June 2007 (UTC)
 * Hi again, you can see by yourself what happens on my page http://www.tousauxbalkans.net/Stage_kaval_juin_2007/Video
 * It constent loops and autoplays... :-( --Iubito 13:46, 10 June 2007 (UTC)

note that the loop and autoplay variables are outside of the config={stuff} container


 * Had the same problem and made the changes required for it to work correctly --196.11.134.77 11:58, 7 September 2007 (UTC)

<?php /* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USAw *  * @author Christopher Ottley * @version 1.00(NJR) * * Changelog * ========= * * 1.00 - Initial release * 1.00(NJR) - Correct flashvars usage * */ $wgExtensionFunctions[] = "wfFlvPlayerExtension"; /* * The FlvPlayer class generates code that embeds a flash movie player * with reference to the uploaded movie. * * The flash based flv player used is flowplayer (http://flowplayer.sourceforge.net/) * */ class FlvPlayer { /* Constructor */ function FlvPlayer( $input, $argv ) { global $wgScriptPath; $this->file = $input; $this->width = $argv["width"]; $this->height = $argv["height"]; if ($this->width == "") { $this->width = "100"; } if ($this->height == "") { $this->height = "100"; } if ($argv["autoplay"] != "") { $this->flashvars .= ",autoPlay:". $argv["autoplay"]; }   if ($argv["autobuffering"] != "") { $this->flashvars .= ",autoBuffering:". $argv["autobuffering"]; }   if ($argv["bufferlength"] != "") { $this->flashvars .= ",bufferLength:". $argv["bufferlength"]; }   if ($argv["loop"] != "") { $this->flashvars .= ",loop:". $argv["loop"]; } else { $this->flashvars .= ",loop:false"; }   if ($argv["progressbarcolor1"] != "") { $this->flashvars .= ",progressBarColor1:". $argv["progressbarcolor1"]; }   if ($argv["progressbarcolor2"] != "") { $this->flashvars .= ",progressBarColor2:". $argv["progressbarcolor2"]; }   if ($argv["videoheight"] != "") { $this->flashvars .= ",videoHeight:". $argv["videoheight"]; }   if ($argv["hidecontrols"] != "") { $this->flashvars .= ",hideControls:". $argv["hidecontrols"]; }   if ($argv["hideborder"] != "") { $this->flashvars .= ",hideBorder:". $argv["hideborder"]; }   $this->flowplayerpath = $wgScriptPath. "/extensions/flvplayer/FlowPlayer.swf"; } /* Generate final code */ function render { $this->url = $this->getViewPath($this->file); $this->code = 'flowplayerpath . '" width="' . $this->width . '" height="' . $this->height . '" id="FlowPlayer">flowplayerpath . '" />url . "'" . ',baseURL:' . "'" . 'http://' . $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . "'" . $this->flashvars . '}" /> '; return $this->code; } function getViewPath($file) { $title = Title::makeTitleSafe("Image",$file); $img = new Image($title); $path = $img->getViewURL(false); return $path; } } function wfFlvPlayerExtension { global $wgParser; $wgParser->setHook( "flvplayer", "renderFlvPlayer" ); } function renderFlvPlayer( $input, $argv ) { // Constructor $flvPlayerFile = new FlvPlayer( $input, $argv ); $result = $flvPlayerFile->render; return $result; // send the final code to the wiki } ?>

Blank viewer problem may be related to IIS if you're using it
see here: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19439&sliceId=1

You may need to add a mime-type for flv files to IIS before it'll allow them to stream through. worked for me after much struggle w/ the extension itself.

Lunux
I have problem with Linux. I have a blank screen. Why?

Newbie Q's - Getting video playback
I've installed the plugin and the FlowPlayer, it all seems fine, so I copied the basic code to place a FLV...

MyVideo.flv

But it views in the Wiki as code, not as video in player. I've tried using HTTP link, file name, [[Media:MyVideo.flv]] I gotta be missing something simple for it to not even show the frame? I changed my allowed files and uploadmaxfilesize, so there video it there. I can't can't see it. Where am I going wrong?

- Javaph January 09, 2009

To get this working i just added the namespace Image (Image:MyVideo.flv), in my case i had to add all the Parameters because of an error parsing the params that weren't there.

Image:MyVideo.flv

my wiki only supports ssl connections.. why is the protocol hard coded
Hi why do you hard code the connection protocol in the plugin?.. musst this be.. i tried to change it to https but it doesn't work