getMediaPlayerCacheManager function

MediaPlayerCacheManager getMediaPlayerCacheManager(
  1. RtcEngine rtcEngine
)

Gets one MediaPlayerCacheManager instance.

When you successfully call this method, the SDK returns a media player cache manager instance. The cache manager is a singleton pattern. Therefore, multiple calls to this method returns the same instance. Make sure the RtcEngine is initialized before you call this method.

Returns The MediaPlayerCacheManager instance.

Implementation

MediaPlayerCacheManager getMediaPlayerCacheManager(RtcEngine rtcEngine) {
  return MediaPlayerCacheManagerImpl.create(rtcEngine);
}