I have noticed a strange little bug with the VBulletin editor that accounts for some of the 'Error: unsupported media type.2' errors when using the 'M' button within the VBulletin editor to wrap media tags around a url. If the url is the only thing in the editor window and you highlight the url, then click the 'M' button to wrap the media tags around the url, it does not work properly. What happens is, a space and a return are added after the first media tag, then the url appears, followed by another return, then the last media tag. When this happens, anymedia does not recognize the url as a supported media type.
Below, I have pasted an example of what I'm talking about although below it won't look quite the same as it does in the vbulletin editor. This is not an issue with Anymedia because the same thing happens with any other type of tags. If you select all the text below, you will see the extra space after the first media tag, followed by a return, the media url, followed by another return, then the last media tag.
[MEDIA]
http://youtube.com/watch?v=QOCDoKsXjP0
[/MEDIA]
The next thing I discovered is that if there is at least one return after the url in the editor window, when you highlight the url and click the 'M' button, the media tags are properly wrapped around the url with no extra spaces or returns as shown in the example below. It's a strange little quirk. It seems as though if you paste the link in the editor window, then add at least one return, everything works ok.
Has anyone else noticed this? I'm using VBulletin 3.6.4 with VBadvanced.
[MEDIA]http://youtube.com/watch?v=QOCDoKsXjP0[/MEDIA]