RtcEngineExt

The derived interface class from RtcEngine.

createAgoraRtcEngine

Creates one RtcEngine object.

RtcEngine createAgoraRtcEngine() {
  return impl.RtcEngineImpl.create();
}

Details

Currently, the Agora RTC SDK v6.x supports creating only one RtcEngine object for each app.

Returns

One RtcEngine object.

createAgoraRtcEngineEx

Creates one RtcEngineEx object.

RtcEngineEx createAgoraRtcEngineEx() {
  return impl.RtcEngineImpl.create();
}

Details

Currently, the Agora RTC v6.x SDK supports creating only one RtcEngineEx object for each app.

Returns

One RtcEngineEx object.

getAssetAbsolutePath

Obtains the actual absolute path of the Asset through the relative path of the Asset.

Future<String?> getAssetAbsolutePath(String assetPath)

Parameters

assetPath
The flutter -> assets field configured in the pubspec.yaml file.

Returns

The actual path of the Asset.

getMediaPlayerCacheManager

Gets one MediaPlayerCacheManager instance.

MediaPlayerCacheManager getMediaPlayerCacheManager()

Before calling any APIs in the MediaPlayerCacheManager class, you need to call this method to get a cache manager instance of a media player.

Call timing

Make sure the RtcEngine is initialized before you call this method.

Restrictions

The cache manager is a singleton pattern. Therefore, multiple calls to this method returns the same instance.

Returns

The MediaPlayerCacheManager instance.