react-native-create-thumbnail icon indicating copy to clipboard operation
react-native-create-thumbnail copied to clipboard

fix(ios): use precise time tolerance for thumbnail generation

Open Kavakliyski opened this issue 10 months ago • 0 comments

Summary

Sets requestedTimeToleranceBefore and requestedTimeToleranceAfter to kCMTimeZero to ensure thumbnails are generated at the exact requested timestamp.

Problem

Without explicit tolerance settings, AVAssetImageGenerator snaps to the nearest keyframe, which can result in thumbnails from significantly different timestamps than requested.

Solution

Configure zero tolerance to force precise frame extraction.

Kavakliyski avatar Feb 01 '26 16:02 Kavakliyski