...AndroidVideoCache allows adding caching support to your VideoView/MediaPlayer, ExoPlayer or any other player with help of a single line! By default AndroidVideoCache uses MD5 of video URL as the file name. But in some cases url is not stable and it can contain some generated parts (e.g. session token). In this case caching mechanism will be broken. To fix it you have to provide your own FileNameGenerator. You can add custom headers to requests with help of HeadersInjector. Note AndroidVideoCache works only with direct urls to media file, it doesn't support any streaming technology like DASH, SmoothStreaming, HLS.