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 library 已弃用,建议使用
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.