IT Community - Software Programming, Web Development and Technical Support

How to play the videos in PHP

This is a discussion on How to play the videos in PHP within the PHP Programming forums, part of the Web Development category; Hi all, I want to play the video in PHP. How i can play? Thanks, vani...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 04-09-2008, 10:35 PM
Vani Sri Vani Sri is offline
D-Web Trainee
 
Join Date: Aug 2007
Posts: 32
Vani Sri is on a distinguished road
Default How to play the videos in PHP

Hi all,

I want to play the video in PHP.
How i can play?

Thanks,
vani
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 04-10-2008, 08:39 PM
ursklakshmanan ursklakshmanan is offline
D-Web Trainee
 
Join Date: Aug 2007
Posts: 14
ursklakshmanan is on a distinguished road
Default Re: How to play the videos in PHP

Hi Vani,
lets Try this or search google using keyword as play video using parameter

<OBJECT

ID="mediaPlayer"

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="yourfilehere.mp3">

<PARAM NAME="animationatStart" VALUE="true">

<PARAM NAME="transparentatStart" VALUE="true">

<PARAM NAME="autoStart" VALUE="true">

<PARAM NAME="showControls" VALUE="true">

</OBJECT>
__________________
regards
K.Lakshmanan
[Web developer]
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 04-11-2008, 06:18 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,165
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: How to play the videos in PHP

hi,
I think if you want to play a video like MPEG or any other video format from your own server, then u need to have the player either in Flash or any.
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 04-16-2008, 07:41 PM
Vani Sri Vani Sri is offline
D-Web Trainee
 
Join Date: Aug 2007
Posts: 32
Vani Sri is on a distinguished road
Default Re: How to play the videos in PHP

Hi Lakshmanan and Jeyaseelansarc,

I got the result by using the following lines,

<object id="MediaPlayer1" width="180" height="200"
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" align="middle">
<param name="FileName" value="file.wmv">
<param name="ShowStatusBar" value="True">
<param name="DefaultFrame" value="mainFrame">
<param name="autostart" value="false">
<embed type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
src="file.wmv"
autostart="false"
align="middle"
width="276"
height="244"
defaultframe="rightFrame"
showstatusbar="true">
</embed>
</object>

Thanks & regards,
vani
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 08-07-2008, 10:42 PM
suman suman is offline
D-Web Trainee
 
Join Date: Aug 2008
Posts: 20
suman is on a distinguished road
Default Re: How to play the videos in PHP

Quote:
Originally Posted by Vani Sri View Post
Hi Lakshmanan and Jeyaseelansarc,

I got the result by using the following lines,

<object id="MediaPlayer1" width="180" height="200"
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" align="middle">
<param name="FileName" value="file.wmv">
<param name="ShowStatusBar" value="True">
<param name="DefaultFrame" value="mainFrame">
<param name="autostart" value="false">
<embed type="application/x-mplayer2"
pluginspage = "http://www.microsoft.com/Windows/MediaPlayer/"
src="file.wmv"
autostart="false"
align="middle"
width="276"
height="244"
defaultframe="rightFrame"
showstatusbar="true">
</embed>
</object>
thanks for improve my PHP beginner knowledge
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 08-22-2008, 05:12 AM
sureshbabu sureshbabu is offline
D-Web Programmer
 
Join Date: Jul 2007
Location: India
Posts: 99
sureshbabu is on a distinguished road
Send a message via AIM to sureshbabu Send a message via MSN to sureshbabu Send a message via Yahoo to sureshbabu Send a message via Skype™ to sureshbabu
Default Re: How to play the videos in PHP

how to capture/record vedio/audio using php?
__________________
Thanks
Regards
Sureshbabu Harikrishnan
+91 9884320017
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 12-28-2008, 09:31 PM
Shirley1874 Shirley1874 is offline
D-Web Trainee
 
Join Date: Aug 2008
Location: United States
Posts: 8
Shirley1874 is on a distinguished road
Default Re: How to play the videos in PHP

Quote:
Originally Posted by Vani Sri View Post
Hi all,

I want to play the video in PHP.
How i can play?

Thanks,
vani
I don't know what format is your video, but I suggest you use flash. Because Adobe Flash Player, the embedded plugin that is in 98% of all internet browsers. That means if you use Flash technology, you can make most of internet users see your video.
You can convert your video to flash video (.flv), then make a flash video player (actually a .swf file) to control the playback of the .flv file, and embed the flash video player to your website with HTML code.
The HTML code for embedding .swf file to web is just like this:
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"  width="432" height="330" title="game">
      <param name="movie" value="/flash/yourflash.swf" />
      <param name="quality" value="high" />
      <embed src="/flash/game.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="432"  height="330"></embed>
    </object>
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 01-14-2009, 03:59 AM
leveup leveup is offline
D-Web Trainee
 
Join Date: Jan 2009
Posts: 8
leveup is on a distinguished road
Default Re: How to play the videos in PHP

Thanks for all your post
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 01-19-2009, 05:55 PM
best_links best_links is offline
D-Web Trainee
 
Join Date: Dec 2008
Posts: 3
best_links is on a distinguished road
Default Re: How to play the videos in PHP

thanks for providing PHP code it really works for me as a beginner.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Play Youtube videos into my Flash video player oxygen Flash Actionscript Programming 3 04-22-2009 04:54 PM
media player not playing videos in web design. suman Web Design Help 1 08-19-2008 11:47 PM
Play MP3 file using C# oxygen C# Programming 0 07-19-2007 11:08 PM
How to create Real 3D videos that can be viewed with 3D Goggles on TV? itbarota Game Development 1 07-19-2007 12:02 AM
How to create Real 3D videos that can be viewed with 3D Goggles on TV? itbarota Game Development 0 07-17-2007 10:53 PM


All times are GMT -7. The time now is 12:48 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0