We help IT Professionals succeed at work.
Get Started

How can I buffer and or stream wmv files?

1,150 Views
Last Modified: 2013-12-07
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?
<?
$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>

Open in new window

Comment
Watch Question
IT Manager
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE