Vimeo video parameters (how to get parameters details from the vimeo url)

Hi friends,

For getting details of vimeo video you can use below details

 

$vm_video_url_arr = explode(‘vimeo.com/’, $_REQUEST[‘vimeoUrl’]);
$vm_video_code = $vm_video_url_arr[1];
$vm_video_info_json = @file_get_contents(“http://vimeo.com/api/v2/video/{$vm_video_code}.json”);
$vm_video_info = ( $vm_video_info_json ) ? json_decode($vm_video_info_json, true) : array();
$vm_video_id = isset($vm_video_info[0][‘id’]) ? $vm_video_info[0][‘id’] : ”;
$vm_video_title = isset($vm_video_info[0][‘title’]) ? $vm_video_info[0][‘title’] : ”;
$vm_video_description = isset($vm_video_info[0][‘description’]) ? $vm_video_info[0][‘description’] : ”;
$vm_video_duration = isset($vm_video_info[0][‘duration’]) ? $vm_video_info[0][‘duration’] :0;
$vm_video_thumb_src = isset($vm_video_info[0][‘thumbnail_medium’]) ? $vm_video_info[0][‘thumbnail_medium’] : ”;
$vm_video_result = ‘<object width=”‘ . $width .’ ” height=”‘ . $height . ‘”><param name=”wmode” value=”transparent”></param><param name=”allowfullscreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><param name=”movie” value=”http://vimeo.com/moogaloop.swf?clip_id=&#8217; . $vm_video_id . ‘&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=00adef&amp;fullscreen=1″></param><embed wmode=”transparent” src=”http://vimeo.com/moogaloop.swf?clip_id=&#8217; . $vm_video_id . ‘&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=00adef&amp;fullscreen=1″ type=”application/x-shockwave-flash” allowfullscreen=”true” allowscriptaccess=”always” width=”‘ . $width .’ ” height=”‘ . $height . ‘”></embed></object>’;

Advertisements
  1. Please let me know if you’re looking for a writer for your site. You have some really good articles and I feel I would be a good asset. If you ever want to take some of the load off, I’d absolutely
    love to write some content for your blog in exchange for a link back to
    mine. Please send me an e-mail if interested. Thank you!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Advertisements
%d bloggers like this: