getMaxCacheFileSize

Gets the maximum total storage size for cached media files.

long getMaxCacheFileSize();

You can call the setMaxCacheFileSize method to set the maximum total storage size for cached media files based on your actual scenario.

Return Values

  • > 0: Success. Returns the maximum total storage size for cached media files (in bytes).
  • < 0: Failure. See MediaPlayerReason.