API Key, where to get it?
elvis2 - March 28, 2007 - 09:38
| Project: | Video CCK |
| Version: | 5.x-1.x-dev |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Excuse my ignorance, but, I signed up with YouTube, went to http://youtube.com/my_profile_dev then was given an Developer ID, on the same page. Is that all is needed to use Video CCK? I have set up the settings (video cck) and made a content type just to add videos. All works but when visiting the page with video it does not show anything...
What am I missing?
Thanks

#1
Sorry, wrong site url..
http://wehavediabetes.org/videos/type-1-diabetes
#2
You currently only need the YouTube API key if you plan to display thumbnails from YouTube in place of videos, which you would do manually from the Display Fields section, for instance, for Teasers, or by creating a View.
Regardless, it sounds like you've set everything up correctly.
Could you post the link to the video you're trying to display? I have learned recently that some of the providers, such as Google, and presumably YouTube, don't host their videos on the same servers, which means that I need to tweak the regex expressions to accomodate those possibilities.
Thanks,
Aaron
#3
Hi aaron,
Here is the link to the site I put the video on:
http://wehavediabetes.org/videos/childrens-congress-2005
And here is the youtube link I inserted on the node form:
http://youtube.com/watch?v=XMhU0gDvYYw
BTW, the text box won't support the embedded code from youtube, for this video it is:
The text box cuts the code off...
Also, I do not want thumbnails, so if I remove the setting for that I assume the videos should show?
Thanks
#4
Hi again,
I removed the youtube settings but the video is still not showing... Does the video_cck rely on any other modules besides the core CCK module?
Thanks
#5
Hi aaron,
it seems the module is out outputing the embedded code correctly. If you go to the content templates section then choose to modify teaser or body, you will see in the right box that there is no "embed" code in there. So, I just setup a node-video.tpl with the embed code and used the variables that are available. The downside, this is only for youtube.... By the way, the embed code you have in the youtube.inc file, doesn't allow you to play the video on the website it is being watched from, when you click play it takes you to youtube. If you modify the embed code a bit you can get it to where it will play on the site being watched from. Here is what I have in my node-video.tpl:
field_test[0]['value']?>">field_test[0]['value']?>" type="application/x-shockwave-flash" wmode="transparent" height="247" width="300">
Thanks
#6
oppps, code didn't show correctly:
<object height="247" width="300"><param name="movie" value="http://www.youtube.com/v/<?=$node->field_test[0]['value']?>"></param><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/<?=$node->field_test[0]['value']?>" type="application/x-shockwave-flash" wmode="transparent" height="247" width="300"></embed></object>#7
odd. works fine for me at http://drupalhub.org/ -- i'm just inserting the url for the youtube, and the module's taking care of display. no customization here.
#8
assuming things are working now. if not, make sure you update to the latest version and run update.php.