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()
Details
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.