phpretard
asked on
How can I buffer and or stream wmv files?
I thought the code below would work but all that happen is a media player pops up and nothing plays.
Whe I view the source all varialbles are in place the video just wont play.
Also is there something I can add to this to make it MAC compatible?
Whe I view the source all varialbles are in place the video just wont play.
Also is there something I can add to this to make it MAC compatible?
<?
$media=$_GET['media'];
$title=$_GET['title'];
$id=$_GET['id'];
$site="http://www.mywebsite.com/pages/portfolios/images/television/";
$source=$site.$media;
?>
<html>
<head>
<title><? echo $title; ?></title>
<style>
body {
margin:3px;
}
</style>
</head>
<body>
<CENTER>
<div id="video">
<OBJECT ID="MediaPlayer" WIDTH="400" HEIGHT="320" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="<? echo $source; ?>">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<PARAM name="autostart" VALUE="true">
<EMBED TYPE="application/x-mplayer2" SRC="<? echo $source; ?>" NAME="MediaPlayer"
WIDTH="400" HEIGHT="320" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>
</div>
</CENTER>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER