react-native-create-thumbnail
react-native-create-thumbnail copied to clipboard
fix(ios): use precise time tolerance for thumbnail generation
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.