setCacheDir abstract method
Sets the storage path for media files to be cached.
This method must be called after initializing RtcEngine.
pathThe absolute path for storing cached files. Make sure the specified directory exists and is writable.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions. < 0: Failure. See MediaPlayerReason.
Implementation
Future<void> setCacheDir(String path);