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
警告 已弃用: 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.
用法
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.