Hi,
I am using Google Video search , in class reference its mentioned that
I can access author and viewCount property on result object of video
search. But I am unable to do so , it returns undefined, all other
properties I am able to access.
I was checking the below program in code labs , it alerts the title of
first video but not the author !!!! any idea why??
/
********************************************************************************************/
// How to set the result order of a video search.
google.load('search', '1');

function OnLoad() {

  // Create a video searcher
  videoSearch = new google.search.VideoSearch();
  videoSearch.setSearchCompleteCallback(this, searchComplete, null);
  videoSearch.execute("funny");
}
function searchComplete()
{
  alert("Title"+videoSearch.results[1].title+" author
"+videoSearch.results[1].author);
}

google.setOnLoadCallback(OnLoad);

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to