On native clients we seem to run into a problem where too many gifs playing causes the render loop to get blocked. We need to adopt what other platforms have done, and don't play them automatically. Maybe only hover?
or play X times and then switch to on hover
What gifs do you mean? Is there some native support for providers like imgur? I just know that https://github.com/FinndropStudios/GifRocket webhook?
@Jellyfrog that would work too.
@FibreFoX so if you post a link to a gif it'll show up and start playing. These might be posted by a user, by gifRocket etc. The idea is to not have those play automatically. Just imagine someone went a little gif crazy and pasted links to 10-15 gifs. You now have all 10-15 of those gifs playing at the same time. Eating through resources that you don't necessarily want them to be. It can bog down your chat.
I'd love to see a play button just like Twitter does. Once the animation has completed it should stay in paused mode. Also it should remember that the Gif has been played already once so that it won't be played again if you enter the room or scroll around.
This should be a customizable option of the user, but not "on hover", mobile devices don't have hover, "on click"/"on tap" would be nice to have available here.
Something like this: http://rubentd.com/gifplayer/ ?
@gabrielsixel exactly. Something that wouldn't bog down the render thread.
I want to work on this issue, please someone point me where the probable changes are to be made . .
Most helpful comment
I'd love to see a play button just like Twitter does. Once the animation has completed it should stay in paused mode. Also it should remember that the Gif has been played already once so that it won't be played again if you enter the room or scroll around.