Quote:
Originally Posted by Deyth
|
Ok, I worked up a solution that I have tested for the above 3 links.
1. Remove your existing youtube definitions.
2. Import the AME definition attached to this post. I have modified the default version to do what we need it to do (I will also update the default for next AME release to this version).
3. Change the plugin above code to this:
PHP Code:
if ($ameinfo['key'] == "youtube" && $ameinfo['zone'] == "post")
{
if (strpos($ameinfo['url'], "fmt=22"))
{
$ameinfo['width'] = "640";
$ameinfo['height'] = "480";
$p1 .= "&hd=1";
}
elseif (strpos($ameinfo['url'], "fmt=18"))
{
$ameinfo['width'] = "560";
$ameinfo['height'] = "380";
}
}
Now, the only embed code I could get a different formatting code on was IF it had fmt=22 in the URL. I am not sure what fmt=18 does.
This will basically deal with youtube links as normal, however if the URL contains fmt=18, it will make the video appear a little bigger. If the URL contains fmt=22 then it appears even bigger than that in HD.
Anyhoo, tested with your 3 links above and seems to work.
HTHs