UdaraWanasinghe / webp-android

libwebp JNI bindings to encode a series of Android bitmap images to an animated WebP image.
MIT License
14 stars 0 forks source link

How to set FrameRate for WebP animate #9

Open huutho-dev opened 1 month ago

UdaraWanasinghe commented 1 month ago

You cannot directly specify the framerate; you need to provide the timestamp of each frame when adding them.

webPAnimEncoder.addFrame(timestamp, srcBitmap)
huutho-dev commented 1 month ago

Thanks for reply, What is the unit of timestamp? I'm guessing miliseconds, and set it to 10ms from the image but it doesn't work.

huutho-dev commented 1 month ago
image

I'm getting error in v1.0.7. v1.0.6 working fine