get_thumb

Function : get_thumb File : functions_videos.php Since : v2.x

This function is used to get thumbnails of a video.

This function will get all video thumbnails and list them in array, you can single thumbnail using incremental number or all thumbnails in an array or just count how many thumbnails are available. This function has few limitations that we will try to cover in upcoming updates.

Usage

get_thumb($vdetails,$num=’default’,$multi=false,$count=false,$return_full_path=true,$return_big=true,$size=Null);

Uses

  • default_thumb();

  • MyQuery->get_video_details();

paramater marked with * is required

Examples

<?php

	//set your videoid, it can also bevideokey
	$vid = 1236;
	$vdetails = get_video_details($vid);
	$default_thumb = get_thumb($vdetails);
	$second_thumb = get_thumb($vdetails,2);
	$all_thumbs = get_thumb($vdetails,NULL,true);
	$count_thumbs = get_thumb($vdetails,NULL,false,true);

	echo '<pre>';
	var_dump($default_thumb);
	var_dump($second_thumb);
	var_dump($all_thumbs);
	var_dump($count_thumbs);
	echo '</pre>';
?&gt

Last updated