| ";
if ($show_videos) {
if ($video_player == "WMP") {
echo "";
$embedstring = $basedir . "/" . $twg_album . "/" . $image . ".wvx";
// we create the playlist ... should work like a stream but without streaming server!
if ($video_flash_site == "http://") {
$embedstring = $video_flash_site . urldecode(removeExtension(replace_url_chars($image)));
} else if ($linktowvx) {
createWVX($embedstring, $twg_album , $image);
$embedstring = fixUrl (getTWGHttpRoot() . $basedir . "/" . $twg_album . "/" . $image . ".wvx");
} else {
$embedstring = fixUrl (getTWGHttpRoot() . $basedir . "/" . $twg_album . "/" . getMovieName ($twg_album, $image));
}
if ($video_autostart) {
$as = "true";
} else {
$as = "false";
}
echo '';
echo "";
//
// divx
//
} else if ($video_player == "DIVX") {
$movie = fixUrl (getTWGHttpRoot() . twg_urlencode($basedir . "/" . $twg_album . "/" . getMovieName($twg_album , $image)));
echo "";
echo '';
echo "";
//
// flash
//
} else if ($video_player == "FLASH") {
echo ""; // vaFm47lsL2g
$image = str_replace("___", "/", $image);
$movie = $video_flash_site . twg_urlencode(removePrefix(removeExtension($image, "")));
$moviejs = $video_flash_site . urldecode(removePrefix(removeExtension($image, "")));
if ($video_autostart) {
$movie .= htmlentities($video_autostart_parameter);
$moviejs .= $video_autostart_parameter;
}
// swfobjects!
echo '
';
// noscript way
echo '';
//
// Google
//
} else if ($video_player == "GOOGLE") {
$movie = $video_flash_site . twg_urlencode(removePrefix(removeExtension($image, "")));
$auto_param = "";
if ($video_autostart) {
$auto_param = "&autoPlay=true";
}
echo "";
// swfobjects!
echo '
';
// noscript way
$auto_param = str_replace("&" , "&" , $auto_param); // to make it w3c conform!
echo '
';
//
// mp3
//
} else if ($video_player == "MP3") {
// creation of $player is is in image.inc.php!
if (!file_exists($install_dir . 'twg_audiolist.php')) {
echo " The file 'twg_audiolist.php' was not found!. |