#1310 - oEmbed support (input)

Identifier #1310
Issue type Feature request or suggestion
Title oEmbed support (input)
Status Completed
Handling member Chris Graham
Addon galleries
Description Implement an oEmbed subsystem in Composr. Support for all the main oEmbed types (image, video, etc).

Implement oEmbed support for galleries, for both oEmbed images and oEmbed videos (=anything except images).

Implement a 'comcode_link_handlers' hook for oEmbed, so that oEmbed URLs are recognised within Comcode and posted with a link box rather than just a link.

Implement a config option that defines a white-list of valid URLs to take oEmbed from. This is needed for security, as oEmbed requires a trust relationship, it provides HTML for Composr to render. Probably the white-list can be bypassed if the oEmbed endpoint isn't actually serving HTML content.

Implement a config option that defines manual oEmbed URL patterns, for when services don't advertise it. Hard-code and test support for Instagram, as this is one such service.

Test/ensure this works for Twitter images and Videos.

---

Also consider supporting doing a basic OpenGraph parse, for when oEmbed is not supported by the URL. Follow the white-list too, because webmasters may not want this for every URL pasted.

Also consider supporting image URLs with a comcode_links_handler hook that renders a thumbnail.
Steps to reproduce

Additional information Original description...

Add support to embed instagram and twitter photos and videos across galleries/news/forums

Aloha,

I happened to notice an announcement that instagram photos and videos can now be embedded across the web along with twitter photos and videos.

What would be the cost to incorporate both services into Composr galleries and news 'add' screens, and forum module, so that a user could just paste the embed code in any of those, similar to how a youtube video can be embedded?

For example, instagram gives this embed code--

<iframe src="//instagram.com/p/byrmq5pgud/embed/" width="612" height="710" frameborder="0" scrolling="no" allowtransparency="true"></iframe>
Related to

#948 - oEmbed support (output)

Funded? No
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated