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
https://forums.phpfreaks.com/topic/225884-media-player-in-php/
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
https://forums.phpfreaks.com/topic/225884-media-player-in-php/#findComment-1166231
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
https://forums.phpfreaks.com/topic/225884-media-player-in-php/#findComment-1166548
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.