Oneboxing media.ccc.de videos

I’d love to be able to onebox videos like this one on ccc.de. Doesn’t currently work or I haven’t figured out how.

<iframe width="1024" height="576" src="https://media.ccc.de/v/33c3-8349-hacking_the_world/oembed" frameborder="0" allowfullscreen></iframe>

https://media.ccc.de/v/33c3-8349-hacking_the_world#video&t=1601

I think you can’t do that because it is an <iframe> and they are not supported by Discourse.

But there is a plugin that you can install to whitelist iframes and add it in your post.

Ping @simon

Yes, that plugin works. It’s not a great solution because it requires people to fork the plugin and add regular expressions for the iframes they wish to whitelist to a javascript file.

I’m wondering if there could be a general iframe onebox, that would return a webpage as an iframe if given a URL something like this:

https://media.ccc.de/v/33c3-8349-hacking_the_world/oembed?iframe_onebox=true

It would be useful for integrating WordPress sites with Discourse forums.

2 Likes