You could manually add media BBCodes and for the more obtuse ones, muck around with templates for those that need additional assets... or you could just use this add-on!
Well supported, and easy to use. The kitchen sink of XenForo media BBcodes. Highly recommended.