expo-video
Version:
A cross-platform, performant video component for React Native and Expo with Web support
17 lines (12 loc) • 524 B
text/typescript
import { requireNativeModule } from 'expo-modules-core';
import type { VideoPlayer } from './VideoPlayer.types';
import type { VideoThumbnail } from './VideoThumbnail';
type ExpoVideoModule = {
VideoPlayer: typeof VideoPlayer;
VideoThumbnail: typeof VideoThumbnail;
isPictureInPictureSupported(): boolean;
setVideoCacheSizeAsync(sizeBytes: number): Promise<void>;
clearVideoCacheAsync(): Promise<void>;
getCurrentVideoCacheSize(): number;
};
export default requireNativeModule<ExpoVideoModule>('ExpoVideo');