Extension talk:FlvHandler

The player loads by won't play the video files. It says '''200 Stream not found. NetStream.Play.StreamNotFound, clip:'[Clip]'''

Then it displays the directory of where the file is.- 69.108.221.134
 * Is this a PHP error or a Flash applet error? What is the name of the FLV file?  If you look at the article for the video file itself, do you see the preview image?  Do you have a URL for your wiki I can look at to see the error? -- Malvineous 10:58, 14 May 2009 (UTC)


 * Here's a link with the videos. http://www.wikiaudio.org/index.php?title=Sandbox
 * I don't know what kind of error this is, I am a novice when it comes to development. I just follow instructions.
 * Btw I have another FLV extension installed and it seems to be doing roughly the same thing...not finding the FLV file to play but I know for a fact it's uploaded and in the directory the player is looking in - 99.167.101.80


 * Well the problem is that the FlvHandler code is trying to load the movie from http://www.wikiaudio.orgimages/e/eb/TEST.flv (note the missing slash between the 'org' and 'images'.) My guess is that you've changed the image path or upload path somewhere in your config (LocalSettings.php?) but left off a trailing slash somewhere.  I'm surprised you don't have the same problem uploading images to the wiki.  If you can find where that change has been made, both extensions should start working. -- Malvineous 22:28, 14 May 2009 (UTC)


 * I went to the localsetting.php file and on $wgUploadPath = "images"; and $wgUploadDirectory = "images"; I add a slash / before images.
 * It still didn't work and wouldn't allow for regular image uploads when I did this.
 * The other video player (the black one) showed a / slash before the word images in it's error display, so I know it recognized the change I made to LocalSettings.php
 * Is there anywhere else on the LogicSetting.php file you can think of? - 69.108.221.134


 * That's a tricky one. What's your $wgScriptPath set to?  That should start with a slash.  Otherwise can you stick your LocalSettings.php somewhere as a text file so I can see it? (with any passwords removed of course) -- Malvineous 10:32, 15 May 2009 (UTC)


 * The $wgScriptPath is set to     = "";
 * So in full it looks like this   $wgScriptPath       = "";
 * In short it looks like it isn't set to anything. What should it be set to ?
 * The LocalSetting.php:    http://www.yousendit.com/transfer.php?action=batch_download&batch_id=MnFqTkFsSWhtMExIRGc9PQ


 * Well it's the path to your index.php, so try setting it to a single slash and let me know if that makes a difference. (By the way, you can sign your messages here with ~ which automatically puts your name and the time in.) -- Malvineous 12:11, 15 May 2009 (UTC)


 * It kinda screwed up the site altogether, it made it look different and the sandbox and other pages wouldn't load. - 69.108.221.134 12:31, 15 May 2009 (UTC)


 * Actually just looking at your LocalSettings.php, you have all the extension require_once lines right at the top, before all the options are set. Does it make a difference moving those lines right to the end of LocalSettings.php?  Otherwise I'm afraid I'm out of ideas, I don't think MediaWiki is designed to install into the root directory of the webserver - you'll probably have to make a "wiki" folder and install into that (so your site is at http://www.wikiaudio.org/wiki/index.php instead.)  You can still "hide" this to make articles appear at nice addresses like http://www.wikiaudio.org/Main_Page, but I think the wiki itself needs to be in a subdirectory. -- Malvineous 12:57, 15 May 2009 (UTC)


 * Thanks for the help - suffice to say moving the required once messages didn't do anything. I will see about reinstalling in a WIKI folder sub directory. Could you keep this thread alive ( don't delete) and as I try and figure this out I will update for future troubleshooting etc. 207.47.18.254 13:09, 15 May 2009 (UTC)


 * BTW - can you think of anyway to modify the extension to accommodate the fact that we didn't install in a Wiki folder?? - 69.108.221.134 13:12, 15 May 2009 (UTC)

Great job ! Although I noticed a bug in FlvHandler.php : variables $fp and $hp should be replaced with $frameParams and $handlerParams, respectively. --217.109.116.16 12:04, 12 May 2009 (UTC)
 * Well spotted, thanks for letting me know! I've uploaded version r2 which incorporates your fix. -- Malvineous 12:40, 12 May 2009 (UTC)