File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to play videos like youtube on a website, using php...?

 
Punit Jain
Ranch Hand
Posts: 1012
2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone tell me, how can i play videos like youtube on a website, using php??
 
Robin Nixon
Author
Ranch Hand
Posts: 48
Android Eclipse IDE PHP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's PHP Recipe 27 from my book, The Web Developer's Cookbook:



This recipe takes the YouTube ID of a video and the parameters required to display it to your requirements. The default dimensions are 480 x 385. The recipe accepts these arguments:

• $id A YouTube video ID such as “VjnygQ02aW4”
• $width The display width
• $height The display height
• $high If set to 1 enable high quality display, if available
• $full If set to 1 enable the video to play in full screen mode
• $auto If set to 1 start the video playing automatically on page load

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic