I downloaded this promising module, but I couldn't get it to work in Drupal 5.1. I included this code:
[video source:http://www.youtube.com/watch?v=51E4s9Hhb14]
And that's exactly what I am shown, the code, not the video. I'm using Full HTML as input format, I gave your filter the highest position (-10) in my filter order list. I also tried echoing the code in PHP as input format, but it didn't work...
Could you take a look at what I did, or include a working line of input here?

Thanks,

Ludo

Comments

fokkezb’s picture

Assigned: Unassigned » fokkezb
Category: bug » support
Status: Active » Closed (works as designed)

You probably still need to choose a default video site by going to the input filter settings. In the next version I will fall back to youtube if none is set.

skullJ’s picture

Hey,it was hard for me to find the "input filter settings"!

Just notice this to your module content to help the other people ::

Administer › Site configuration › Input formats › Configure

Thank you

manifactura’s picture

Hi
Can you make more clear of how does this filter works?
I want to embed some googlevideos but i havent managed to get it work.
What should I do?
I made the appropriate input format but nothing.
Thanks

Anonymous’s picture

Just go to

Administer › Site configuration › Input formats › Configure

As said above, and enable the video filter on your input format.

Once done, just use the following as an example

[video:6HOnpHSgMvw]

directly putting the id in there. It worked for me on the youtube videos, i haven't checked the other ones yet.

magickz’s picture

Version: 5.x-1.x-dev » 6.x-2.0

if I try your example I get the following message:

<!-- VIDEO FILTER - INVALID CODEC IN: [video:6HOnpHSgMvw] -->

but if I try to insert something like this: [video:http://youtube.com/watch?v=Wa2CV9se3_I] I just have a white space in my blogentry.

If I have a look in the html source of the page in my browser I can see


< object type="application/x-shockwave-flash" width="420" height="301" data="http://www.youtube.com/v/Wa2CV9se3" >
< param name="movie" value="http://www.youtube.com/v/Wa2CV9se3" / >
< param name="wmode" value="transparent" / >
< /object >

here I can recognize that the "_I" is truncated from the URL...

does anybody have an idea how to get this working in drupal 6.1?

lance.hart’s picture

Any youtube with a _ in the id wasn't showing but all the others were. Hopefully the author will fix but here's the easy fix.

Line 11 of video_filter.codecs.inc

Change:

'regexp' => '/youtube\.com\/watch\?v=([a-z0-9]+)/i',

To:

'regexp' => '/youtube\.com\/watch\?v=([_a-z0-9]+)/i',

The regex wasn't allowing the underscores. Hope that helps!!

-Lance

CaldwellOne’s picture

I think what people are looking for is this.. this only works if you put the tag [video:video-URL-here.com]. So if you just put the url http://www.youtube.com/watch?v=5EVcYyhZAq0 It doesn't work. it just shows the link. You need to put the video tag like below... So follow the instructions above to turn the module on and that will allow you to embed videos by putting in links like the one below...

[video:http://www.youtube.com/watch?v=5EVcYyhZAq0]

Hope this clears things up...

Valery Landon’s picture

and please how do you link to a video you have upload on your website localy?

shedevches’s picture

Hi there,

I've just installed this and following this thread, it seems I have to set the default to YouTube, however I cannot find this option?

When I go to Home » Administer » Site configuration » Input formats

And click on "Configure" » Filtered HTML / or / Full HTML

I check the box next to Video Filter / Substitutes [video:URL] with embedded HTML.

Save - Then go to "Configure"

There are only 3 options to change:

URL filter (72 characters)
Video filter (400 width, 400 height)
Autoplay yes/no

I'm expecting, from the comments on this post, there to be a YouTube, GodTube, etc option here but there isn't..

Please tell me I'm looking in the wrong place and where I should be looking for the option to make YouTube the default?

shedevches’s picture

Did I put too much info? :)

I just wanna find out where to set "YouTube" if it's not in the Input formats options?

SarnXero’s picture

I think you just have to configure the default filter and select the video filter

that worked for me

creating a new filter did not work

TheresaM’s picture

here's a site that will help load videos from your local website, just input the (your web address,file path loocation, ect,,, ), generate the code then copy the code into a node. This allowed me to play flash video files locally without having the SWF tools available for drupal six

http://cit.ucsf.edu/embedmedia/step1.php

pracha’s picture

Thanks for your information.........