Yes @techapj can you add support for gfycat to oneboxer?
I had added it to onebox. It looks like for some reason just white listing it like imgur didnât worked as expected.
Definitely the first step is onebox embedding gfycat.
The next step I think would be for a plugin to do the gif -> gfycat conversion. Anyone could do this, and if gfycat support is properly added to onebox, I would do it eventually if no one else did.
I suspect it didnât get properly whitelisted in the HTML sanitizer.
It seems like there is a bug with gfycat oEmbed, it always returns CooperativeScentedAnkolewatusi in the iframe.
Various links that confirms the issue:
- https://twitter.com/SlackHQ/status/517810886975975424
- https://twitter.com/torrez/status/512033447154438144
- http://www.reddit.com/r/gfycat/comments/2kq4da/bug_gfycats_oembed_does_not_work_at_all/
Removing gfycat from whitelist, until this issue is resolved.
The OpenGraph data seems to be correct, canât that be used instead of oEmbed?
Okay, added custom gfycat handler to use OpenGraph data endpoints instead of oEmbed:
Does this do the gif like embed, or does it require pressing play?
It requires pressing play. Demo pic:
This is because if gifs without sound autoplay, then gifs with sound (could) autoplay tooâŠ
gyphy gifs donât have sound because they are converted from gifs.
The whole point is not to embed a video, but to use video like a gif.
That means the gif should loop (yes I know not all gifs loop) and auto play. At the very least, it should loop until the user presses stop.
I understand @rikingâs concern, but in this case it is totally safe to whitelist autoplay+loop for oneboxed Gifly GIF-videos as they do not have sound.
Note that Imgur also does not support sound, but as a precaution oneboxed GIF-videos are muted by default:
<video id="video" autoplay="autoplay" muted="muted" preload="auto" loop="loop" poster="//i.imgur.com/YfPjduYh.jpg">
(...)
</video>
We should simply do the same for Gfycat.
Doesnât look like this is working?
The gem needs to be updated.
@zogstrip can you please bump onebox version and update the gem?
I believe this is now handled with @vinothkannans recent PR.
The xxxxtra large Gif was (eventually, pending background tasks) replaced with image placeholder. @vinothkannans does the tooltip work now so I can mouse over this kind of random looking generic image placeholder and get a plain English explanation of what happened?
Letâs see if this is still working: