We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

External Javascript Play Button for FLV Player

Development and Programming

arohner's avatar
arohner
17 posts
17 years ago
arohner's avatar arohner

Ok. I am using the FLV Plugin for EE. The client wants to add a link to the page from outside of the player controls that says “Play Our Corporate Video” that will start playing the video within the player area on that page. Here is the code for the FLV plugin:

{exp:flvplugin playerpath="http://www.crproducers.com/video_player/flvplayer.swf" playernumber="1"  file="http://www.crproducers.com/home/home_video_feed/" showdigits="true" displayheight="211" width="300" height="300"  backcolor ="0x554B43" frontcolor="0xffffff" lightcolor="0xF1CF85" thumbsinplaylist="false" autoscroll="false" enablejs="true" javascriptid="player1" id="player1"}
{/exp:weblog:entries}

I have tried everything -defining javascriptid, defining id, added enablejs=true while using the javascript below to try and play it, but nothing is working. When I click on the link, nothing happens:

<!--For Button to Play Video-->

    function loadFile(obj) { thisMovie("player1").loadFile(obj); };

    // This is a javascript handler for the player and is always needed.
    function thisMovie(movieName) {
        if(navigator.appName.indexOf("Microsoft") != -1) {
            return window[movieName];
        } else {
            return document[movieName];
        }
    };



<!--End Button to Play Video-->

And this is the code for the link to start playing the video:



I hope the author of this plugin will be able to help with this, or someone that has done it before using the EE plugin. Thanks so much!

       
Bruce2005's avatar
Bruce2005
536 posts
16 years ago
Bruce2005's avatar Bruce2005

I don’t use the plugin, but the below should help a lot;

At the longtail video site, see the JavaScript API with examples.

The example wanted is this Demo page

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.