setCacheDir
Sets the storage path for cached media files.
virtual int setCacheDir(const char *path) = 0;
Note: Make sure to initialize IRtcEngine before calling this method.
Parameters
- path
- The absolute path to store cached media files.
Note: Ensure the directory exists and is writable.
Return Values
- 0: Success.
- < 0: Failure. See MEDIA_PLAYER_REASON.