That's how it's done. You have to make sure you have the video identifier correct. It's the last part in the address bar of the video you're viewing.
For example in this video the identifier is bZYA1YQtbrY
So by wrapping that with the tags it is embedded in the post.