First, thanks for this! It's very cool.
Second, has anyone already figured out how to get it to work with videos that are hosted with gallery2? I use gallery2 on my site to host the videos so I'd like to be able to embed them in the forum posts too.
You need to actually parse the gallery page to get to the actual content. You can see an example if you go to this video on my site:
http://www.baue.org/images/galleries...3Edge.mov.html
Obviously one other thing that needs to be fixed is to search for .mov.html (or wmv.html), but that's pretty easy. The harder part is parsing the page to figure out that the actual video is
http://www.baue.org/images/galleries...2-4/E3Edge.mov.
It would be even cooler if you could also parse the actual width and height, but I don't think you specify that dynamically with AME, can you?