i have a field for oembed and it works for vimeo but not youtube for some reason. what could be wrong?

Comments

Anonymous’s picture

Category: bug » support
Status: Active » Needs review

It's likely that your regular expressions for YouTube are not catching the URL. YouTube uses a lot of different URLs for videos. Use this list to populate the schema of the YouTube provider defintion.

http://*youtube.com/watch*
http://*.youtube.com/v/*
https://*youtube.com/watch*
https://*.youtube.com/v/*
http://youtu.be/*
http://*.youtube.com/user/*
http://*.youtube.com/*#*/*
http://m.youtube.com/watch*
http://m.youtube.com/index*
http://*.youtube.com/profile*
http://*.youtube.com/view_play_list*
http://*.youtube.com/playlist*

anewday’s picture

I tried the above, it's still not working.

patoshi’s picture

when i render youtube via the link field, it just outputs this as text:

YouTube - Broadcast Yourself.

with the link going to just this: http://www.youtube.com/watch

jacobpov’s picture

I'm having the same issue now.

patoshi’s picture

not working so im just using this for now: http://drupal.org/project/video_embed_field

jacobpov’s picture

any updates on this issue ?

patoshi’s picture

nope!.. im just using that other module for now as this isnt working.

patoshi’s picture

same problem with the latest update for youtube. All it shows is

YouTube - Broadcast Yourself.

with the link going to just this: http://www.youtube.com/watch

For some reason it just strips everything after the word "watch" in the url. But I did do a test on the test page on the oembed configuration page, and it works there. So im not sure whats wrong.

Anonymous’s picture

This is fixed in http://drupalcode.org/project/oembed.git/commit/47cb640 and will appear in the 7.x-0.x dev release soon.

Anonymous’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

IWasBornToWin’s picture

Status: Closed (fixed) » Active

Not sure how this was fixed? I'm not able to get any type of youtube video to play in the body of a node via wsiywig. The only thing it does is create an image of the video from you tube and add that image to my media library. It then inserts a link to the image in the body of the node.

I've enabled the oembed filters in wysiwig profiles, dones the tests, added all the list of urls, etc. Everything works except that real need--embedding the video. Any suggestions?

bryancasler’s picture

oembed is generating the follow unworking link for a youtube URL

http://www.youtube.com/embed/3b2YdY8dC7E?fs=1&feature=oembed

This is the actual link: http://www.youtube.com/watch?v=3b2YdY8dC7E

Update: seems to be a problem with my chrome browser. Screenshot: http://snpr.cm/cZ808v.png

jjclint’s picture

I'm using the latest dev and most url schemes for youtube videos still don't work with oEmbed, so far I've managed to display videos only with the following url schemes:
/watch?v=
/playlist?list
(I'm using the test function to confirm this)

All that is being said even though I have all the url schemes mentioned in #1 written for the youtube provider.

It might be worth mentioning that I'm using a file field to embed the videos to (rather than just embedding them in the body) but as I've said it doesn't even work in the oEmbed test mode.

darri’s picture

I have this exact same issue embedding youtube videos in WYSIWYG CKEditor via the Media module. A preview image appears instead of the video. Been looking for a solution for about 4 hours with no luck. Have tried everything. Now resorting to importing Embedly into the page and letting it do its work directly on links, but would prefer to use the Media module as I'm using that elsewhere on the site in file fields (i.e. not via CKEditor), where it works perfectly well.

Can anyone describe the precise setup required to embed youtube videos using WYSIWYG CKEditor that uses the Media module? I've tried oEmbed and Media:Youtube, both outputting an image instead of a video.

darri’s picture

Issue summary: View changes

updated

FreeXenon’s picture

I am also having an issue with this.
No Youtube videos are functioning.

devin carlson’s picture

Version: 7.x-0.x-dev » 7.x-1.x-dev
Issue summary: View changes
Status: Active » Fixed

This is fixed per #10.

The other reported issues should now be fixed in oEmbed 7.x-1.x with #2159303: Remove WYSIWYG special casing and #2128389: Provided a default display configuration.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.