Improve Diaspora Oembed integration

Showing 1-4 of 4 messages
Improve Diaspora Oembed integration Saul Henriques 4/17/12 4:26 PM
Diaspora oembed integration is very poor in my opinion, let's improve it ? 

what's my idea:

1- when a user paste the youtube or vimeo link in the share box, generate a thumbnail and get the original video title
2- when a user share show the thumbnail, video title, and user status, immediately no need to refresh the page like happen right now 


what do you think ?
Re: Improve Diaspora Oembed integration Sean Tilley 4/17/12 5:34 PM
IANAD, but I'm not sure either of those actually have very much to do with oEmbed in and of itself. Those are more related to some possible AJAX magic to make some elements automatically update.
Re: Improve Diaspora Oembed integration Saul Henriques 4/18/12 9:11 AM
Yeah, is about that that i'm talking about "ajax magic" simple thing :)

Quarta-feira, 18 de Abril de 2012 1:34:25 UTC+1, Sean Tilley escreveu:
Re: Improve Diaspora Oembed integration Raven24 4/18/12 9:47 AM

On Wednesday, April 18, 2012 6:11:58 PM UTC+2, Saul Henriques wrote:
Yeah, is about that that i'm talking about "ajax magic" simple thing :)

well, even the ajax magic would have to get a server-side endpoint IMHO.

I don't think we should fetch oembed twice (once to show to the user while writing the post and a second time by the server to store in the DB)
and also, we are not allowing just any oembed provider (they need to have https), so in order *not* to keep two lists of allowed providers, we should just let the server do the fetching and let it store in DB as soon as a link gets entered in the publisher (some Javascript magic).
This could then produce a nice JSON response, which we can include in the publisher as preview.

... almost as easy said as done ;)