I would like to display the thumbnails of the youtube videos on my website. I guess I have to use the API provided by youtube. Can anybody explain or direct me how to do that? Thank you.

Comments

yaph’s picture

You can request that API key in your youtube account.
Then you can issue REST queries like

http://www.youtube.com/api2_rest?method=youtube.videos.get_details&video_id=XXXXXXXXXX&dev_id=XXXXXXXXXXX

This will return an XML file with information about the video with the ID XXXXXXXXXX, including example the path to the thumbnail.

Take a look at the amazontools module.

vksidharth’s picture

sorry, i didnt understand properly........ can u able to explain better....... sorry

MrEricSir’s picture

erinc’s picture

ice241985’s picture

I downloaded the youtube module to drupal so that I might use it as a way to upload videos on my site using youtube. I got my developer key and the module appears in my admin area, but how to I make a page that contains a place where users can go and upload their videos using this module?

vm’s picture

investigate the video_upload.module which already does all the work and uploads video from your site directly to youtube then back to your site for display.

ice241985’s picture

I have the module video upload field enabled. Do I have to create a profile for my website on youtube in order for this to work?

vm’s picture

yes you need an account on youtube and a developer api key

ice241985’s picture

Now that I have both an account for my website on Youtube and a developer key, How do I get the videos uploaded to my website also posted on my youtube account? I can not figure out how to make the two websites communicate with each other. Any suggestions?

vm’s picture

please read the included INSTALL.txt for step by step on setting up the module.

ice241985’s picture

It finally uploaded to YouTube now Thank you. Would you happen to know why my website was able to upload a to YouTube and it shows up on the channel, yet on my site it still says the video is processing? Is there anything I could do to remedy this?

vm’s picture

No idea. It seems to be working correctly on my site, but I don't link to the video until it is completely processed by youtube.

ice241985’s picture

Well, perhaps you could help me with my other problem.

I was also wondering if there was a way to control where your video uploads. What I mean is that I have a link to the upload form. Upon upload it promotes the video to the home page and nowhere else. I would like to have a separate page where users can go to look up the videos. Is there a way to make it so those videos automatically upload to that page?

ice241985’s picture

Could you post a link to your site? Maybe that way I could see what it is supposed to look like when it processes and/or see the proper coding that is allowing such a communication.

vm’s picture

I cannot. uploading of video is only for a specific role on the site.

I suggest if you are having issues with the module to file an issue in the issue queue of the module. All I can tell you is that I am not having the issue you discuss.

Have you tried with another video? Have you checked youtube.com's TOS to ensure whatever you uploaded is allowed. ie: proper, extensions, proper length so on so forth.

ice241985’s picture

In the video field settings I have these options. The last selection in the list is what I have checked right now, (aka. append...). Could this be what's causing my problem?

Default Video Title Synchronization:
*Synchronize (overwrite default)
*Don't Synchronize (keep default)
*Append node title to default

Default Video Description Synchronization:
*Synchronize (overwrite default)
*Don't Synchronize (keep default)
*Append Description to default

Default Video Keyword Synchronization:
*Synchronize (overwrite default)
*Don't Synchronize (keep default)
*Append Taxonomy (if applicable) to default keywords

navdeep_gupta@rediffmail.com’s picture

Hi
I am using Drupal Version 6.20. After installing " YouTube API module " When i update the database I am getting Error below

************************************************
Bridge module to the YouTube video provider's public API.
This version is incompatible with the 6.20 version of Drupal core.
*************************************************

It seems that YouTube API module doesn't support 6.20 version of Drupal core.

Can anybody tell me How can i overcome this problem?
or Is there any latest Version which support 6.20 version of Drupal core.
Thanks
Navdeep

vm’s picture

module specific issues should be reported in the issue queue of the module itself located on the project page.