getCacheDir
Gets the storage path for media files to be cached.
virtual int getCacheDir(char* path, int length) = 0;
If you do not call setCacheDir to set the storage path for media files to be cached before calling this method, it returns the default storage path used by the SDK.
Parameters
- path
- An output parameter. The storage path for media files to be cached.
- length
- The maximum length of the
pathstring for the cache file storage path.
Return Values
- 0: The method call succeeds.
- < 0: The method call fails. See MEDIA_PLAYER_REASON.