The flash requires at least Flash 6.
Please get it here<\/a><\/b>.<\/div><\/div>'; echo "
"; 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!.
If you use php include you have to manually configure the mp3 player
Please read howto 34 how to do this!

"; } echo '
'; echo ""; // swfobjects! echo ' '; // the noscript part! echo ''; } else if ($video_player == "FLV") { if (!isset($video_flv_buffer)) { // new variable and therefore not set be older implementations. $video_flv_buffer = 2; } $video_autostart_str = ($video_autostart) ? "true":"false"; $movie = $install_dir . "html/mediaplayer.swf"; $filedir = substr($basedir, strlen($install_dir)); $url = twg_urlencode( fixUrl (getTWGHttpRoot() . $filedir . "/" . $twg_album . "/" . getMovieName($twg_album , $image))); $video_player = "DIVX"; // need to switch to DIVX because then getTWGHttpRoot returns the full url with is needed that the image is displayed properly if autostart is off. $preview = ( fixUrl (getTWGHttpRoot() . $filedir . "/" . $twg_album . "/" . $image)); $video_player = "FLV"; echo ""; echo ' '; // noscript way - the parameters need to be connected $file = "?file=" . $url; $auto_param = "&autostart=" . $video_autostart_str; $auto_param .= "&bufferlength=" . $video_flv_buffer; $auto_param .= "&image=html/" . $preview; echo ' '; } else if ($video_player == "FLV3") { // old Player that works from Flash 6 on! $movie = $install_dir . "html/mediaplayer3.swf?"; $filedir = substr($basedir, strlen($install_dir)); $file = "file=" . twg_urlencode( fixUrl (getTWGHttpRoot() . $filedir . "/" . $twg_album . "/" . getMovieName($twg_album , $image))); $auto_param = ($video_autostart) ? "autostart=true" : "autostart=false"; echo ""; // swfobjects! echo ' '; // noscript way $auto_param = str_replace("&" , "&" , $auto_param); // to make it w3c conform! echo ' '; } else if ($video_player == "QT") { $movie = getTWGHttpRoot() . twg_urlencode($basedir . "/" . $twg_album . "/" . getMovieName($twg_album , $image)); if ($video_autostart) { $auto_param = "true"; } else { $auto_param = "false"; } echo ""; echo ''; echo ''; } else { echo ""; echo "Wrong entry '".$video_player."' in config - check \$video_player"; } echo ""; } else { echo $lang_video_disabled; } echo "
"; if ($enable_download && $video_show_dl_link && ($video_player != "GOOGLE")) { echo "
"; } ?>