getMaxCacheFileSize

Gets the maximum aggregate storage size of cached media files.

virtual int64_t getMaxCacheFileSize() = 0;

You can call the setMaxCacheFileSize method to set the maximum aggregate storage size of cached media files. The default value is 1 GB.

Return Values

  • If the method call succeeds, returns the maximum aggregate storage size of cached media files (in bytes).
  • < 0: The method call fails. See MEDIA_PLAYER_REASON.