playthecall/playthecall — pull request #99 by philss (2012-12-20 20:46:29+00:00)
Title: Embed URL from Youtube

I forgot a little detail about Youtube URLs: We need to use the "embed" format to work with iframes.
This issue is related to #95

The problem:
If we take the default URL from some Youtube video, it will not work because Youtube wants the "embed" URL.
So, when we have: `http://www.youtube.com/watch?v=EigbFw23Urw`, Youtube expects:`http://youtube.com/embed/EigbFw23Urw` to work with iframes

The solution:
I'm using FormattedURL gem to take embed URL for Youtube URLs.

PS.: I'm the author of this gem. Take a look at: https://github.com/philss/formatted_url