This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
Expo 视频缩略图
一个允许你从视频文件生成图片作为缩略图的库。
Android
iOS
tvOS
Included in Expo Go
已弃用: Video Thumbnails 库已弃用,推荐改用
expo-video中的generateThumbnailsAsync。expo-video-thumbnails不再接收补丁,并将在 SDK 56 中移除。
expo-video-thumbnails 允许你从视频文件生成一张图片作为缩略图。
安装
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
用法
视频缩略图
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.