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)
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

http://wehavediabetes.org/tag-it/sports-and-diabetes

#1

elvis2 - March 28, 2007 - 09:52

#2

aaron - March 28, 2007 - 16:08

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

elvis2 - March 28, 2007 - 17:18

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

elvis2 - March 28, 2007 - 17:21

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

elvis2 - March 29, 2007 - 13:44

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

elvis2 - March 29, 2007 - 13:46

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

aaron - April 5, 2007 - 15:20

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

aaron - June 15, 2007 - 20:43
Status:active» postponed (maintainer needs more info)

assuming things are working now. if not, make sure you update to the latest version and run update.php.

 
 

Drupal is a registered trademark of Dries Buytaert.