Hi Shane,
Thanks for the quick reply. I did not install any plug-ins. The only snippet I have created is one that substitutes Flash video. This was orginially used in my blog. I use two TVs in my templates which are working correctly. Here is the call for the snippet:
[[MyFLV?file=[*video*].flv&[*Aspect_Ratio*]]]
Here is the code for it:
<?php
// configurable variables (global variables)
$playerPath="assets/flash/video";
$videoPath="http://vantagepoint.fatcow.com/assets/flash/video";
$flv_autostart = 0; // Set this to 1 if you want the flv player to automatically start playing (not recommended)
$flv_showdigits = 0; // Set this to 1 to show the digits for % loaded, elapsed and remaining time in the flvplayer
$flv_showfsbutton = 0; // Set this to 1 to show the fullscreen button
$flv_showcontrolbar = 1; // Set this to 1 to show the control bar
$flv_bufferlength = 10; // This sets the number of seconds an FLV should be buffered ahead before the player starts it. Set this smaller for fast connections or short videos. Set this bigger for slow connections. The default is 5 seconds.
$flv_overstretch = "true"; // Defines how to stretch images/movies to make them fit the display. "true" will stretch them proportionally to fill the display, "false" will stretch them to fit. "fit" will stretch them disproportionally to fit both height and width. "none" will show all items in their original dimensions. Defaults to "fit".
$flv_useposter = 1; // Set this to 1 if you want to display poster frame i.e. preview image
$flv_imagetype = "jpg"; // Preview image extension, can be ;jpg", ;png" or ;gif"
$flv_background = "FFFFFF"; // Background color of your page
$flv_backcolor = "FFFFFF"; // Background color of the flvplayer
$flv_frontcolor = "000000"; // Texts / buttons color of the flvplayer
$flv_lightcolor = "000000"; // Rollover/ active color of the flvplayer
// end of configurable variables
$flv_counter = 0;
//$input = explode(" ", $matches[2]);
//list($movie, $width, $height) = $input;
$player = "$playerPath/flvplayer.swf";
$movie = "$videoPath/$file";
if ($flv_showcontrolbar) {
$height += 20; // Extra 20px for controller bar
$displayheight = "";
} else {
$displayheight = "&displayheight=$height";
}
$image = str_replace(".flv", ".", $movie);
if ($flv_useposter) {
$image = "&image=$image$flv_imagetype";
} else {
$image = "";
}
if ($flv_showdigits) {
$showdigits = "";
} else {
$showdigits = "&showdigits=false";
}
if ($flv_autostart) {
$autostart = "&autostart=true";
} else {
$autostart = "";
}
if ($flv_showfsbutton) {
$fullscreen = "&showfsbutton=true&fullscreenpage=$fs&fsreturnpage=$return";
} else {
$fullscreen = "";
}
$bufferlength = "&bufferlength=$flv_bufferlength";
$overstretch = "&overstretch=$flv_overstretch";
$backcolor = "&backcolor=0x$flv_backcolor";
$frontcolor = "&frontcolor=0x$flv_frontcolor";
$lightcolor = "&lightcolor=0x$flv_frontcolor";
//$bufferlength = ($flv_bufferlength == 5) ? "" : "&bufferlength=$flv_bufferlength";
//$overstretch = ($flv_overstretch == "fit") ? "" : "&overstretch=$flv_overstretch";
//$backcolor = ($flv_backcolor == "FFFFFF") ? "" : "&backcolor=0x$flv_backcolor";
//$frontcolor = ($flv_frontcolor == "000000") ? "" : "&frontcolor=0x$flv_frontcolor";
//$lightcolor = ($flv_lightcolor == "000000") ? "" : "&lightcolor=0x$flv_frontcolor";
// start outputting javascript
$output = '<script type="text/javascript">// <![CDATA[
var FI = { movie:"'.$player.'",width:"'.$width.'",height:"'.$height.'",allowfullscreen:"true",majorversion:"7",build:"0",bgcolor:"#'.$flv_background.'",flashvars:"file='.$movie.'&height='.$height.'&width='.$width.''.$image.''.$displayheight.''.$showdigits.''.$autostart.''.$fullscreen.''.$bufferlength.''.$overstretch.''.$backcolor.''.$frontcolor.''.$lightcolor.'" };
UFO.create(FI,"player'.$flv_counter.'");// ]]>
</script>
<div id="player'.$flv_counter.'">
<p>Please download Flash to fully enjoy this site!</p>
<p><a href="http://www.macromedia.com/go/getflashplayer"><img src="http://myvantagepointfilm.com/images/get_flash_player.gif" alt="Get macromedia Flash Player" /></a></p>
</div>
';
return $output;
?>
Do you see anything funky in there?