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!
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
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.