Hello,
I need join FLV with player, for this i need pass parameters from php to player.
i try
video.php
<?
$_GET[file] = "http://link/video.flv";
$_GET[image] = "http://link/image.jpg";
$url = "dirtoplayer/player.swf";
header("Content-type: application/x-shockwave-flash");
header("Content-Length: " . filesize($url));
readfile($url);
exit;
?>
With http://localhost/video.php i get the player in full, more no video.
If i provide parameters in url (http://localhost/video.php?file=video.flv&image=myimage.jpg) i get full player with video and pre load image.
I need embed with is.
<embed src="http://localhost/video.php?v=5Das0eH6" width="500" height="400" ">
As YouTube.
Thanks
You can easily do this in Firefox using a 302 Redirect. However, there's a bug in Internet Explorer that causes the wrong parameters to get sent to the Flash Player. You can work around the bug with Rewrite rules on your server.
Test Page: http://willswonders.myip.org:8074/Simple_Embed.html
Look in the page source for four links to info. about the bug.
The PHP script video.php
<?php$v = (isset($_GET['v'])) ? strval($_GET['v']) : 'LTQeAdweZ-Y';
$url = "http://willswonders.myip.org:8074/player-4.6.341.swf?image=http://img.youtube.com/vi/" . $v . "/0.jpg&file=http://www.youtube.com/watch?v=" . $v;
//print $url; exit;
header("Location: " . $url);
exit;
?>