i created an iframe now, and it loads me the player, but this "<?php echo $post['video']; ?>" doesn`t seem to work, so i dont get my video_name from my database to the player. without an iframe it all works, but i need the iframe because the flashing effect goes away then!
the structure:
index.php
<?php
include_once("blog_list.php");
?>
blog_list.php
...
<?php
if(empty($post['video'])){
}
else{
if(isset($post['videoplayer'])){
$videoplayer = $post['videoplayer'];
if($videoplayer == '1'){
include('vid_player.php');
}
else{
include('vid_player2.php');
}
}
else{
}
}
?>
...
vid_player.php
!important
<iframe class="ytplayerborder" width="560" height="315" frameborder="0" src="vid_player_iframe.php" allowfullscreen>
</iframe>
vid_player_iframe.php
!important
<object width="560" height="315"> <param name="movie" value="http://fpdownload.adobe.com/strobe/Flas ... f"></param>
<param name="flashvars" value="src=http://localhost/<?php echo $post['video']; ?>&poster=http://localhost/images/<?php echo $post['videopic']; ?>&scaleMode=stretch"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://fpdownload.adobe.com/strobe/Flas ... ayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="315" flashvars="src=http://localhost/<?php echo $post['video']; ?>&poster=http://localhost/images/<?php echo $post['videopic']; ?>&scaleMode=stretch"></embed>
</object>
i figured out that the $post variable is undefined, and i already tried all kinda things out, but failed..
ideas, please?