This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
Expo VideoThumbnails
一个库,允许你从视频文件生成图片以用作缩略图。
Android
iOS
tvOS
Included in Expo Go
Recommended version:
~57.0.2
警告 已弃用: 视频缩略图库已被弃用,建议使用来自
expo-video的generateThumbnailsAsync。expo-video-thumbnails不再接收补丁,并将在 SDK 56 中移除。
expo-video-thumbnails 允许你从视频文件生成一张作为缩略图的图片。
安装
🌐 Installation
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
用法
🌐 Usage
Video Thumbnails
应用接口
🌐 API
import * as VideoThumbnails from 'expo-video-thumbnails';
Methods
Create an image thumbnail from video provided via sourceFilename.
Returns:
Promise<VideoThumbnailsResult>Returns a promise which fulfils with VideoThumbnailsResult.