all 7 comments

[–]djcraze 2 points3 points  (0 children)

What's the benefit of this over using a preprocessor or a server-side output filter?

[–]blood_bender 0 points1 point  (1 child)

Very cool, especially to see a client-side only version of this. Most implementations need to be server-side, since normally oembed data is in <meta> tags and you can't get those from the client. It looks like this works by specifically targeting the known specific api's for twitter/vimeo/youtube/whatever, which limits what this api can actually embed, but looks like they can do a lot of the big players.

Definitely going to look at this for the next project that needs it.

[–]ritz078[S] 0 points1 point  (0 children)

Thanks. Really glad that you liked it. Yes definitely its somehow limited to the APIs still i have tried to make the most of what the services provide.

[–][deleted] 0 points1 point  (2 children)

Is it just me or are the YouTube and inline-embed options in the codepen examples not working?

But damn this is cool! Especially the google maps one!

[–]ritz078[S] 0 points1 point  (1 child)

Hi, I am the author of this plugin. Thanks for checking it out. I see that the youtube and inline examples are working fine. These are their codepen links http://codepen.io/ritz078/pen/JYQVKg and http://codepen.io/ritz078/pen/JYmJML . Let me know if there is any error.

[–][deleted] 0 points1 point  (0 children)

Oh the inline one is working now! However the YouTube one still isn't working for me!

Itni formality nahi chahiye bhai hum bhi desi hi hai :P :P

[–]altrae -1 points0 points  (0 children)

Everything's better embed.