Closed (fixed)
Project:
Video Filter
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Jul 2009 at 19:55 UTC
Updated:
24 Nov 2011 at 13:31 UTC
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
Comment #1
portulacasubscribing
Comment #2
blackdog commentedSure, 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.
Comment #3
jmrivero commentedThe 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/".
Comment #4
jmrivero commentedComment #5
blackdog commentedHow do you get a URL like youtube.com/v/XXX? I don't see any options for that on youtube.com.
Comment #6
jmrivero commentedWhen 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
Comment #7
jmrivero commentedComment #8
colincalnan commentedHi,
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.
Comment #9
jmrivero commentedNice 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.
Comment #10
blackdog commentedI've added support for URL's like http://www.youtube.com/v/sfyB7S now in both 6.x & 7.x.
Comment #11
Courtney.B commentedThanks! :)