Jump to content

media player in php


dsjoes

Recommended Posts

the below works in firefox but doesn't work in internet explorer is there something wrong with it

<?php  
$file = $_GET["Watch"];
echo "<OBJECT ID='MediaPlayer' WIDTH='450' HEIGHT='310' CLASSID='clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6'
STANDBY='Loading Windows Media Player components...' TYPE='application/x-oleobject'>
<PARAM NAME=".$file." VALUE='../audio/audio_files/".$file.".wmv'>
<PARAM NAME='autostart' VALUE='false'>
<PARAM NAME='ShowControls' VALUE='true'>
<PARAM NAME='ShowStatusBar' VALUE='true'>
<PARAM NAME='ShowDisplay' VALUE='false'>
<EMBED TYPE='application/x-mplayer2' SRC='../dvds/dvd_files/".$file.".wmv' NAME=".$file."
WIDTH='450' HEIGHT='310' ShowControls='1' ShowStatusBar='1'  ShowDisplay='0' autostart='0'></EMBED>
</OBJECT>";
?>

Link to comment
Share on other sites

yes it is showing that it is getting the file name and everything fine. yes it has header and body tags and no html syntax errors.

 

the folder locations are wrong in the script the first one has the wrong source folders it should be the same as the one near the bottom and it still won't play in internet explorer

Link to comment
Share on other sites

<PARAM NAME=".$file." VALUE='../audio/audio_files/".$file.".wmv'>

 

values within html tags must be quoted. the code as posted does not quote the value of the first param, name. second: the param name is not the movie file name, it is the param name, whatever it is: filename, movie, whatever. i would find some working code and see what they are using for the param name.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.