Getting your Youtube, Qik, Vimeo etc files into blogs and discussion boards is not always a walk in the park. You normally have to find a object tag for embedding the file or when it comes to images you need to get hold of the actual image files URL and wrap it in an img tag.
Wouldn't it be nice if you could just copy and paste the URL you find in the address bar of Youtube or Flickr?
oEmbed is a format for allowing an embedded representation of a URL on third party sites. The simple API allows a website to display embedded content (such as photos or videos) when a user posts a link to that resource, without having to parse the resource directly.
eEmbed has been created to help out with this. It's an open standard for requesting the correct embed code for a given URL. Basically what this would look like for the end user is that you write your text and where you want an image or video you simply paste the URL for the particular web page into the text.
On the server side we make a call to the media host's oEmbed API and ask for the correct way of embedding the particular media URL and then we display it for the user.
Example user input:
http://www.flickr.com/photos/mattiasgunneras/2717919854/
Output after oEmbed lookup at Flickr:
<img src="http://farm4.static.flickr.com/3127/2717919854_a7d5b2325e.jpg?v=0" alt="boat plane" />
Read More: