Video Filter appears not to work with youtube links that contain styling in them. For example, [video:http://www.youtube.com/v/sfyB7S-bgeM&hl=en&fs=1&color1=0x402061&color2=0x9461ca&border=1] does not work. However, [video:http://www.youtube.com/watch?v=sfyB7S-bgeM] does work.

Is it possible for Video Filter to support youtube links like my first example? If not, does/will Video Filter incorporate colors and borders in the parameters? For instance: [video:url color:X border:X]?

Thanks!

Comments

portulaca’s picture

subscribing

blackdog’s picture

Sure, the module could support both Youtube link styles, and we could probably get styling support in there too. If someone has a patch, that's awesome, otherwise I'll take a look sometime later this week/next week.

jmrivero’s picture

Version: 6.x-2.4 » 6.x-3.0-beta1
Component: Miscellaneous » Code
Category: feature » bug

The problem with the first url is that the pattern does not fit the regular expression used to detect youtube videos, this regexp looks for "youtube.com/watch?v" so "youtube.com/v/" wont be take as a youtube video.
I tryed to fix this adding another regexp in an array for the youtube codec but i must be missing something because i cant get the module to use the regexp for "youtube.com/v/".

jmrivero’s picture

Title: Youtube Links with Styling Do Not Work » Youtube Links with youtube.com/v/ Do Not Work
blackdog’s picture

Status: Active » Postponed (maintainer needs more info)

How do you get a URL like youtube.com/v/XXX? I don't see any options for that on youtube.com.

jmrivero’s picture

When you link your Youtube account with your facebook account and click on the Like button under the youtube video sends a link like youtube.com/v/xxxx.
This type of URL is for the full screen player, if you open a link like it it will not load the whole youtube page but only the player.

Example:
http://www.youtube.com/v/-CrQ9xiMfb4?version=3&feature=autoshare&autoplay=1

jmrivero’s picture

Status: Postponed (maintainer needs more info) » Active
colincalnan’s picture

Hi,

I've created a patch here http://drupal.org/node/1192166 that allows you to use the Share short links that YouTube creates at http://youtu.be. This is a nice workaround for the new /v rather than ?v structure and also for any videos that need to be embedded from playlists/accounts.

jmrivero’s picture

Nice patch. In my case I have no control on what url is used since Im taking it stright from Facebook users streams as they publish it.

blackdog’s picture

Version: 6.x-3.0-beta1 » 6.x-3.x-dev
Category: bug » feature
Status: Active » Fixed

I've added support for URL's like http://www.youtube.com/v/sfyB7S now in both 6.x & 7.x.

Courtney.B’s picture

Thanks! :)

Status: Fixed » Closed (fixed)

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