VdoPreCacheManager

Manager class responsible for caching video data. This class uses a singleton pattern to manage video pre-caching.

Parameters

context

The application context used to avoid memory leaks.

Types

Link copied to clipboard
object Companion

Companion object that provides a singleton instance of VdoPreCacheManager and allows configuration of caching behavior.

Functions

Link copied to clipboard
fun cacheVideo(mediaId: String)

Caches the video with the given media ID.

fun cacheVideo(mediaId: String, customPlayerId: String?)

Caches the video with the given media ID and optional custom player ID.

fun cacheVideo(mediaId: String, customPlayerId: String?, languageCode: String?)

Caches the video with the given media ID, custom player ID, and optional language code.

Link copied to clipboard

Clears the cached video data.