ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

FLV Player Plugin Problem

December 16, 2008 8:59am

Subscribe [2]
  • #1 / Dec 16, 2008 8:59am

    berkeley

    32 posts

    Hello

    I have installed the FLV Player Plugin Version 4 and followed the instructions there and also looked at this thread which had some helpful tips but cannot seem to get it to show flash video or even the player.

    This is the code in my template:

    {if flvvideo}
    {exp:flvplugin playerpath="http://example.com/images/player.swf" file="{flvvideo}"
    playernumber="{entry_id}" width="400" height="302"}<div id="player{entry_id}"></div>
    {/if}

    where ‘flvvideo’ is a custom weblog field with Default Text Formatting set to NONE - I’ve made an entry and put the path to the flv file (http://example.com/images/movie.flv) in the flvvideo field.

    And I have this in the header:

    script type="text/javascript" src="http://example.com/images/swfobject.js">/script

    This is the HTML being produced (note I’ve removed some brackets around ‘script type’ to allow for posting here)

    <!--
    ** FLV Media Player Plugin v4.0 ** 
    An easy and flexible way to add video and audio to your website.
    See: <a href="http://www.5pieces.com/blog/flv-player-plugin-v4/">http://www.5pieces.com/blog/flv-player-plugin-v4/</a> for more information.
    -->
    script type="text/javascript"
    var flashvars = {
    file: 'http://example.com/images/movie.flv',
    id: '29'
    };
    var params = {
    wmode: 'opaque',
    bgcolor: '#CCCCCC',
    allowfullscreen: 'true',
    allowscriptaccess: 'always'
    };
    swfobject.embedSWF('http://example.com/images/player.swf', 'player29','400','302', '9.0.0','expressInstall.swf', flashvars, params);
    /script>
    <div id="player29"></div>

    In other words nothing is appearing in the <div> where the player should appear. Do I need to change file permissions on any of the uploaded files (player.swf, swfobject.js or the .flv movie?) and if so to what?

    Any help would be very much appreciated! Many thanks in advance…

  • #2 / Dec 16, 2008 9:31am

    John Henry Donovan

    12339 posts

    Can you confirm you are using version 2 of swfobject?
    if you had a link to the page in question it would be helpful also.

  • #3 / Dec 16, 2008 9:37am

    berkeley

    32 posts

    Hello - thanks for your quick reply. Yes I am using SWFObject v2.1 - I’m afraid I can’t post a link as the site is on a development server that’s out of reach to the outside world - I can send you some code if you let me know which bits would be useful
    Thanks again

  • #4 / Dec 16, 2008 9:42am

    John Henry Donovan

    12339 posts

    Yes please email your template code .(JavaScript must be enabled to view this email address).
    Just do a quick test first by adding the following text into the div and see if this text is rendered on your page now instead of the blank

    <div id="player29">My flash is not working</div>

    Also copy and paste the link to your player.swf into your browser and make sure that is correct.

  • #5 / Dec 16, 2008 6:33pm

    John Henry Donovan

    12339 posts

    It turns out that the old version of swfobject was still lingering and had not been overwritten when version 2 was uploaded. problem solved

  • #6 / Dec 17, 2008 4:42am

    berkeley

    32 posts

    Thanks for helping me resolve this vinnyio - great support for a great plugin. All the best

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases