expo-video
Version:
A cross-platform, performant video component for React Native and Expo with Web support
35 lines • 1.37 kB
TypeScript
/**
* Returns whether the current device supports Picture in Picture (PiP) mode.
*
* @returns A `boolean` which is `true` if the device supports PiP mode, and `false` otherwise.
* @platform android
* @platform ios
*/
export declare function isPictureInPictureSupported(): boolean;
/**
* Clears all video cache.
* > This function can be called only if there are no existing `VideoPlayer` instances.
*
* @returns A promise that fulfills after the cache has been cleaned.
* @platform android
* @platform ios
*/
export declare function clearVideoCacheAsync(): Promise<void>;
/**
* Sets desired video cache size in bytes. The default video cache size is 1GB. Value set by this function is persistent.
* The cache size is not guaranteed to be exact and the actual cache size may be slightly larger. The cache is evicted on a least-recently-used basis.
* > This function can be called only if there are no existing `VideoPlayer` instances.
*
* @returns A promise that fulfills after the cache size has been set.
* @platform android
* @platform ios
*/
export declare function setVideoCacheSizeAsync(sizeBytes: number): Promise<void>;
/**
* Returns the space currently occupied by the video cache in bytes.
*
* @platform android
* @platform ios
*/
export declare function getCurrentVideoCacheSize(): number;
//# sourceMappingURL=VideoModule.d.ts.map