dsjoes Posted January 27, 2011 Share Posted January 27, 2011 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 https://forums.phpfreaks.com/topic/225884-media-player-in-php/ Share on other sites More sharing options...
BlueSkyIS Posted January 27, 2011 Share Posted January 27, 2011 have you viewed source to see if the file name comes through okay? are there HTML and BODY tags? also, copy the source and paste into a plain HTML doc (remove php from the equation) to make sure your HTML syntax is okay. Link to comment https://forums.phpfreaks.com/topic/225884-media-player-in-php/#findComment-1166197 Share on other sites More sharing options...
dsjoes Posted January 27, 2011 Author Share Posted January 27, 2011 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 https://forums.phpfreaks.com/topic/225884-media-player-in-php/#findComment-1166231 Share on other sites More sharing options...
dsjoes Posted January 28, 2011 Author Share Posted January 28, 2011 anyone Link to comment https://forums.phpfreaks.com/topic/225884-media-player-in-php/#findComment-1166487 Share on other sites More sharing options...
BlueSkyIS Posted January 28, 2011 Share Posted January 28, 2011 <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 https://forums.phpfreaks.com/topic/225884-media-player-in-php/#findComment-1166548 Share on other sites More sharing options...
dsjoes Posted January 28, 2011 Author Share Posted January 28, 2011 i have got it working it is the classid this one dosen't work clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6 but the old one does CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 i got them from this http://www.w3schools.com/media/media_playerref.asp any reason why the new one won't work? Link to comment https://forums.phpfreaks.com/topic/225884-media-player-in-php/#findComment-1166706 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.