Skip to content

RFC: oEmbed support #7496

@MatMaul

Description

@MatMaul

https://oembed.com/
I was thinking about implementing oEmbed support.

I don't really know if I should just fully implement that in the client or prefetch embedding data in Matrix server.

URL previews use a Matrix service to fetch the preview, is it for client privacy reasons ?
Does it really apply to embedding use cases since a call to the provider will be made anyway to fetch the embedded resource ?

If we involve the server, we can prefetch oembed url or the full oembed properties.

From my point of view I think we should:

  • prefetch the oembed url in the url preview service and add it in a property of the answer (og:oembed for example), I think it makes sense since the preview service needs to fetch and parse the original url anyway
  • fetch the oembed url from the client and get final image URL or html code to embed the video player, and inject it in the discussion thread.

We can also call the oembed url directly in the url preview service and put oembed properties in the preview response.
I don't think it is a great idea however, we don't gain much client privacy since we will embed the resource anyway, and we may want to adjust some maxheight/maxwidth parameter that depend on the client.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions