Hi BertSimons, i'm near the solution now!!!
I'm tryng now to display directly the video in the player (the code you send display the thumbnail and the link).
I'm working on this
[code]<div id="image">
<p id="player">
<?php
$images = getImageStatistic($_zp_gallery->getNumImages(), "latest");
$x = 1;
foreach ($images as $image) {
if (is_null($image->getVideoThumb())){$x=$x-1;}else{
$imageURL = getURL($image);
echo "<script type=\"text/javascript\">";
echo "var so = new SWFObject(\"/video/zp-core/flvplayer.swf\",\"player\",\"320\",\"240\",\"7\");";
echo "so.addParam(\"allowfullscreen\",\"true\");";
echo "so.addVariable(\"file\",\"".$imageURL ."\");";
echo "so.addVariable(\"displayheight\",\"310\");";
echo "so.write(\"player\");";
echo "</script>";
}
if ($x++ >=1) {
break;
}
}
?>
</div>[/code]
I took the code in the html result page of a video.
It should work fine.
The player is displayed, but when i click to start the movie, it doesn't load it.
Looking on the code, i found the problem.
[code]$imageURL[/code] returns this path \video\videoname\video.flv but the correct path of the video is \video\albums\videoname\video.flv
it losts \albums\.
What can i do?
thank you!!!