aspose file tools*
The moose likes PHP and the fly likes how to play videos like youtube on a website, using php...? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Languages » PHP
Bookmark "how to play videos like youtube on a website, using php...?" Watch "how to play videos like youtube on a website, using php...?" New topic
Author

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

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1001
    
    2
can anyone tell me, how can i play videos like youtube on a website, using php??
Robin Nixon
Author
Ranch Hand

Joined: Sep 20, 2011
Posts: 48

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


My latest book, The Web Developer's Cookbook, is now out: http://webdeveloperscookbook.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to play videos like youtube on a website, using php...?