{"repo":"souvik-ghosh/react-native-create-thumbnail","free":true,"listed":false,"github":"https://github.com/souvik-ghosh/react-native-create-thumbnail","clone":"git clone https://github.com/souvik-ghosh/react-native-create-thumbnail.git","description":"iOS/Android thumbnail generator with support for both local and remote videos","language":"Java","stars":306,"topics":["react-native","thumbnails","video","android","ios"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-create-thumbnail iOS/Android thumbnail generator with storage/cache management and support for both local and remote videos. react-native-create-thumbnail is a wrapper around AVAssetImageGenerator (iOS) and MediaMetadataRetriever (Android) Getting started 1. Install library from npm or 2. Link native code With autolinking (react-native 0.60+) Pre 0.60 Usage Request Object Property Type Description --------- :-----------------------: :------------------------------------------------------------------------ url String (required) Path to video file (local or remote) timeStamp Number (default 0 ) Thumbnail timestamp (in milliseconds) format String (default jpeg ) Thumbnail format, can be one of: jpeg , or png maxWidth Number (default 512 ) Max thumbnail width in px maxHeight Number (default 512 ) Max thumbnail height in px dirSize Number (default 100 ) Maximum size of the cache directory (in megabytes). When this directory is full, the previously generated thumbnails will be deleted to clear about half of it's size. headers Object Headers to load the video with. e.g. { Authorization: 'someAuthToken' } cacheName String (optional) Cache name for this thumbnail to avoid duplicate generation. If specified, and a thumbnail already exists with the same cache name, it will be returned instead of generating a new one. timeToleranceMs Number (default 2000 , Only iOS) Time tolerance in ms for the system to pick the best matching video frame onlySyncedFrames Boolean (default tr","default_branch":null,"files":null,"tree":[],"storefront":"/r/souvik-ghosh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/souvik-ghosh/react-native-create-thumbnail/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}