PHP Video Plugin

PHP Video Plugin

[ad_1]

To get this product on 50 p.c contact me on this link

 

LIVE PREVIEWBUY FOR $6

This video plugin can take a YouTube or Vimeo url and return an array of information corresponding to a thumbnail picture, title, size, tags, views, and so on. It may even robotically embed the video into the web page. It makes use of the newer iframe embed methodology which provides html5 assist to each YouTube & Vimeo video which suggests they are often play on cell units corresponding to iPhone and Android.

Requires PHP 5.2+ with JSON assist.

Embed Video

Embedding a video is tremendous straightforward. Just enter a YouTube or Vimeo url and optionally available dimensions like so:

echo $video->embed('http://www.youtube.com/watch?v=AZW9NYX6JZA', '630', '350');

Result

PHP Video Plugin - 1

Video Info

To pull the data for a video all you might want to do is move the url of the video you’re occupied with. The operate will robotically decide the sort and return an array of related information.

$data = $video->data('http://www.youtube.com/watch?v=AZW9NYX6JZA');

// Information returned from a YouTube hyperlink
$data['video_id']
$data['published']
$data['updated']
$data['title']
$data['info']
$data['user']
$data['comments']
$data['category']
$data['duration']
$data['category']
$data['tags']
$data['thumb_1']
$data['thumb_2']
$data['thumb_3']
$data['thumb_large']
$data['favorites']
$data['views']

YouTube Thumbnails

PHP Video Plugin - 2

YouTube Data

Video id: AZW9NYX6JZA
Published date: 2009-04-09T18:59:13.000Z
Last up to date: 2011-01-26T09:01:46.000Z
Title: St Vincent – “Actor Out Of Work”
Info: Check out the primary single “Actor Out Of Work” from St. Vincent’s latest album Actor. Buy her magnificent new album right here: beggarsgroupusa.com
User: 4ADRecords
Comments: 574
Category: Check out the primary single “Actor Out Of Work” from St. Vincent’s latest album Actor. Buy her magnificent new album right here: beggarsgroupusa.com
Duration: 150
Category: Check out the primary single “Actor Out Of Work” from St. Vincent’s latest album Actor. Buy her magnificent new album right here: beggarsgroupusa.com
Tags: St. Vincent, Actor Out Of Work, Actor, 4AD, Sufjan Stevens, Polyphonic Spree
Favorited: 4219
Views: 483931

While the operate will robotically decide in case your video is from YouTube or Vimeo, the respective API’s every return barely totally different information. We’ve already seen what data you will get again from a YouTube video, now right here’s an instance of the info returned from Vimeo:

$data = $video->data('http://vimeo.com/14173983');

// Information return from a Vimeo hyperlink
$data['video_id']
$data['status']
$data['title']
$data['info']
$data['mobile_url']
$data['thumb_small']
$data['thumb_med']
$data['thumb_large']
$data['user']
$data['user_url']
$data['user_thumb_small']
$data['user_thumb_medium']
$data['user_thumb_large']
$data['user_thumb_huge']
$data['likes']
$data['plays']
$data['comments']
$data['duration']
$data['width']
$data['height']
$data['tags']
$data['embed']

Vimeo Thumbnails

PHP Video Plugin - 3

Vimeo Data

Video id: 14173983
Title: Joshua Tree Under the Milky Way

Info: Timelapse video of the Perseid Meteor Shower and the galactic core of the Milky Way as seen from Joshua Tree National Park.

These had been taken between August 12 and August 15, 2010.

For extra images and phrases: http://photography.evosia.com/2010/08/13/under-the-milky-way-in-joshua-tree-national-park/

Website: http://www.evosia.com
Facebook:http://www.facebook.com/evosiastudios
Twitter: http://twitter.com/evosia

Gear: 5D Mk II, EF 16-35mm L. Settings: f/2.8, 6400 ISO, 20 second exposures.

Music is Samskeyti by Sigur Ros
Likes: 2501
Plays: 572653
Comments: 261
Duration: 65
Width: 640
Height: 360
Tags: Perseid Meteor Shower, Milky Way, timelapse, joshua tree nationwide park, canon 5d Mk II

Vimeo User Info

User: Henry Jun Wah Lee
User url: http://vimeo.com/evosia

PHP Video Plugin - 4

More Files From the PHP Plugin Suite


Bitly


Image Plugin


Map + Weather Plugin


Twitter Plugin


Weather Plugin

pose css

[ad_2]

To get this product on 50 p.c contact me on this link

 

Source

Pomento
Logo
Register New Account
Compare items
  • Total (0)
Compare
0
Shopping cart