• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Punit Jain
Ranch Hand
Posts: 1014
2
  • 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
  • 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

 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic