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>

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

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.