-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: oEmbed support #7496
Comments
It prevents leaking the Client IP to the potentially untrusted service |
Ok that was my guess. Last random thought: we could also get the resource to embed in the server and pass it to the client, however it is only feasible with photos which have direct URL, oEmbed for videos only gives you some html code to inject. And to be fair videos is the main use case, not photos :) |
Up ! I have 2 working prototypes:
|
Hey @MatMaul - thinking about the client privacy issue, does your prototype involve hitting noembed.com/the oembed-compatible service from the client directly, or have you been making modifications to the URL-preview stuff? |
I have prototypes for both, one which fetches the embedding code server side and one completely client side. |
I think this is essentially going to be implemented by matrix-org/synapse#7920. |
I'm very interested in this. Note we want to use it for internal systems and its important that its done client side using an iframe embed inside the client for a few reasons:
I totally get the security angle, but the way we've mitigate that before is there is an explicit admin setting which whitelists which oembed urls can be shown. @MatMaul can you share a PR for both variants? |
This sort of change is up to the server and not us. Synapse has some oEmbed support these days, and matrix-media-repo fully supports it. |
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:
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.
The text was updated successfully, but these errors were encountered: