midhunhk / ae-sticker-app

stickers for whatsapp
Other
34 stars 12 forks source link

Animated WEBP support #11

Open KishorJena opened 2 years ago

KishorJena commented 2 years ago

Hi, How to enable animated webp/gif support. official sticke sample repo contains boolean flag animated for stickers but in this repo those are missing . how to implement it

midhunhk commented 2 years ago

Hello there, thanks for raising a ticket.

I haven't had the time to look into the Animated Stickers and update this app to the latest version yet. The last time I checked, Animated Stickers were not available for all regions.

https://github.com/WhatsApp/stickers/tree/main/Android Could you check that for now.

KishorJena commented 2 years ago

I have checked all files. If we ignore UI the important files which are responsible to sending stickers to WhatsApp are ContentFileParser.java StickerContentProvider.java StickerPack.java StickerPackValidator.java

there is only single flag for a pack and not each each sticker file. I tried it with React Native but I am getting error from WhatsaApp

There's a problem with this sticker pack and it can't be added to WhatsApp

midhunhk commented 2 years ago

My code base was synced with the official repo more than a year ago, so in order to incorporate the latest changes that they have made more files than those need to be modified.

I am currently trying to update on a new branch called animated. If you see the changelog, you can see how big of a change this is.

KishorJena commented 2 years ago

I played with codes and abled to add animated sticker pack to whatsapp and play icon is visible over sticker pack there on whatsapp but only tray_icon is visible and shows "some went wrong" on pack where all sticker should be shown. After testing I found that in my code I am doing something wrong while saving the FileInputStream to FileOutStream. It losing the frames and saving the first single frame. Whatsapp need frameduration of 8-10 ms. ANf in my code the frame is 1 and duration 0. Could not get the proper way to save those bitmaps yet.