Package com.inmobi.media.videoPlayer
Class VideoLoaderHelperKt
-
- All Implemented Interfaces:
public final class VideoLoaderHelperKt
-
-
Method Summary
Modifier and Type Method Description final static VideoLoadStatusloadData(MediaPlayer $self, List<String> urls, InMobiLogger logger)Loads video data from a list of URLs into the MediaPlayer. final static HtmlVideoLoadStatusloadData(ExoPlayer $self, List<String> urls, InMobiLogger logger, CacheManager cacheManager, Boolean useCache)Extension function to load media data from URLs using cache if available Tries each URL in sequence until one loads successfully -
-
Method Detail
-
loadData
final static VideoLoadStatus loadData(MediaPlayer $self, List<String> urls, InMobiLogger logger)
Loads video data from a list of URLs into the MediaPlayer.
This function iterates through the provided URLs, attempting to load each one until a successful load occurs. It sets up listeners for buffering updates, preparation, and errors.
- Parameters:
urls- The list of video URLs to attempt to load.logger- The InMobiLogger for logging events.- Returns:
A VideoLoadStatus indicating the success or failure of the load.
-
loadData
final static HtmlVideoLoadStatus loadData(ExoPlayer $self, List<String> urls, InMobiLogger logger, CacheManager cacheManager, Boolean useCache)
Extension function to load media data from URLs using cache if available Tries each URL in sequence until one loads successfully
-
-
-
-