removeCacheByUri abstract method

Future<void> removeCacheByUri(
  1. String uri
)

Deletes a cached media file.

The cached media file currently being played will not be deleted.

  • uri The URI (Uniform Resource Identifier) of the media file to be deleted.

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. < 0: Failure. See MediaPlayerReason.

Implementation

Future<void> removeCacheByUri(String uri);