Media cache is a simple extension based on Media Loader library that help to cache video and audio files to provide a smooth and friendly user experience. If your app loads videos or audio files from internet then media cache can help you to save user’s precious data and cache video or audio so you wont have to load it again. Once a media is fully cached you can use it even if the user is offline. Lets jump into docs.
This block is triggered when loading progress is changed. You can use the values provided by this block for a better user experience
This block is triggered when there is an error while loading media
Use this block to initialize Media Loader. You need to initialize loader before using any other block.
Directory Name : Specify a name for caching folder
Max File Count : Maximum number of files that can be stored in cache folder
Max File Size : Specify maximum file size for cache file in Mbs
Max File Time Limit : No of days a file should be kept safe
Start download listener for a specific url
Stop download listener for a specific url
Pause download for a specific url
Resume download for a specific url
Get a url that will be used by Media Loader library to cache file. You can pass the resulting url from this block as a source for the media player
Get cache file path for a specific url
Check if a url is fully cached or not
You can use this extension with built in video player. You can also use it with my video player extension or atom developers video background extension.
If you like my free extensions and find them useful then you can donate to help me make more useful extensions. For further queries you can pm me.
I hope you find this extension useful. And as always I will be waiting for you super awesome reviews and suggestions.