Sorry guys for the long delay in getting this out there. I have had other priorities for a long time now. But here it is to download and try it out. If you are not familiar with the plugin it allows you to insert flash video files (FLV) into your templates or posts.
DOWNLOAD FLV Player Plugin v3
Kick the tyres for me a bit and I’ll do my best to troubleshoot any problems.
How can I get it to work via the control panel? I got a custom field to input a flash movie file, wich is already uploaded to the server. the formatting for this field is set to “FLV Plugin”. the source output shows the right stuff to embed a flash movie, but the uri from the flash file is not included. (wich will set in the custom field)
Stefan
Hey quick question on this, and thanks for creating it by the way…
This looks like it can only work in a template in conjunction with custom fields correct?
The way I understand it (I’m 2 weeks into my first experience with EE), I can’t put
{exp:flvplugin playerpath="http://www.somesite.com/players/flvplayer.swf" playernumber="1" file="http://www.somesite.com/video/video_file.flv" width="320" height="240" showdigits="true"}
in a post, correct? I’m trying to figure out the best way to post flv files in my blog without cracking open Flash…I run slideshow pro and director, but there are times I only need to post a video in one place on my blog, which makes even that solution overkill…
Thanks in advance!
Gino
This looks like it can only work in a template in conjunction with custom fields correct?
It will work without a custom field if you hardcode the flv url straight int here but the most efficent way of using it if you are posting video quite often is, correct using it with a custom field
So create a custom field called {flv_video} or whatever you want to name it. Make sure the formatting is set to ‘none’
In your template add your FLV plugin code. But if your video postings are infrequent we can use a conditional here to only show the player if the new custom field has been filled in.
{if flv_video}
{exp:flvplugin playerpath="http://www.somesite.com/players/flvplayer.swf" playernumber="1" file="{flv_video}" width="320" height="240" showdigits="true"}
{/if}
When you are in the publish page and are uploading an FLV and adding it tot he custom field make sure to select ‘URL only’ in the upload settings.
I wanted to add my own class to the tag my videos were in enclosed in so I could wrap text around them.
Modified line 90 in system/plugins/pi.flvplugin.php to accomplish this.
$flv .= "\n";
Rendered code, with custom class:
<!-- FLV PLAYER START -->
<a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Flash Player</a> to see this player.
var s87 = new SWFObject('/players/mediaplayer.swf','single','320','240','7');
s87.addParam('allowscriptaccess','always');
s87.addVariable('file','http://dev.wbcaustin.org//uploads/sermons/barsandtone.flv');
s87.addVariable('height','240');
s87.addVariable('width','320');
s87.addVariable('showdigits','true');
s87.write('player87');
<!-- FLV PLAYER END -->
Hey Vinny,
I tried to add a FlashVar (controlbar) but it isn’t rendering in the HTML. Here is my line -
{exp:flvplugin playerpath="/assets/flash/player.swf" playernumber="{entry_id}" controlbar="none" file="{video_location}" width="145" height="100" showdigits="false"}
Any ideas?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.