Jump to content

Play a avi or mpg video with PHP?


jamesxg1

Recommended Posts

Just need the viewer to have the proper video codec.

<object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="320" height="256" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="sample.mov">
<param name="autoplay" value="true">
<param name="loop" value="false">
<param name="controller" value="true">
<embed src="sample.mov" width="320" height="256" autoplay="true" loop="false" controller="true" pluginspage="http://www.apple.com/quicktime/"></embed>
</object>

 

That's what I was affraid of. LOL! Is there any possible way be it js, ajax, jquery, flash ect that I could show the viewer the video regardless of his/her codecs?

 

 

SORRY FOR THE BAD GRAMMER.

 

Many thanks,

 

James.

The best way forward when it comes to playing media through a web page is flash!, if you were to to your avi or mpg file and convert it to a .flv file, then find yourself a basic media player tutorial for flash and there you have a fully customized media player.......then just use ya php echo to display your swf embed file containing the video.

 

Why is it you want to use php to display a video?

Everything is based on some type of codec. ie. flash, qt, divx, etc. Flash being most popular as almost all browsers have it built in so no codec install required.

 

js, jq or ajax is just a method of outputting the embed code and has nothing to do with playing the actual video.

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.