BbCode Media Sites...


Well-known member
Okay, lets say I have a text field with a URL to a video.

I would like to parse the URL against the bbcode media sites list and return the embed code for that video. I know I can use XenForo_Helper_Media::convertMediaLinkToEmbedHtml, but the problem this has is it doesn't return the embed code, but instead the bbcode.

How do I get the embed code?