mazazino Posted August 28, 2007 Share Posted August 28, 2007 Hi, I need an online video player that would play .mpeg and .wmv files..like an <EMBED> tag thing..i know there are a lot out there but i cant seem to find them lol..so can anyone help? Link to comment https://forums.phpfreaks.com/topic/67103-php-video-play/ Share on other sites More sharing options...
php_tom Posted August 28, 2007 Share Posted August 28, 2007 The following is probably too verbose, but will do the job for .wmv: <OBJECT id='mediaPlayer' width="320" height="240" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/ mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'> <param name='fileName' value="http://mydomain.com/video.wmv"> <param name='animationatStart' value='1'> <param name='transparentatStart' value='1'> <param name='autoStart' value='1'> <param name='ShowControls' value='0'> <param name='ShowDisplay' value='0'> <param name='ShowStatusBar' value='0'> <param name='loop' value='0'> <EMBED type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/ en/download/' id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='0' bgcolor='darkblue' showcontrols='0' showtracker='1' showdisplay='0' showstatusbar='0' videoborder3d='0' width="320" height="240" src="http://mydomain.com/video.wmv" autostart='1' designtimesp='5311' loop='0'> </EMBED> </OBJECT> Of course that only works if the user has WMP installed. It might play mpegs too. Or you can convert the movies to flash (FLV) with something like http://vani.bhargav.googlepages.com/movica (MOVICA) to convert your videos to FLV. Then use an FLV player like flowplayer (http://flowplayer.org/) or something. Videos are fun... Link to comment https://forums.phpfreaks.com/topic/67103-php-video-play/#findComment-336547 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.