getExternalLibraries static method
Returns enabled external libraries by FFmpeg.
Implementation
static Future<List<String>> getExternalLibraries() async {
try {
await FFmpegKitConfig.init();
return _platform.getExternalLibraries().then((externalLibraries) {
if (externalLibraries == null) {
return List.empty();
} else {
return externalLibraries.cast<String>();
}
});
} on PlatformException catch (e, stack) {
print("Plugin getExternalLibraries error: ${e.message}");
return Future.error("getExternalLibraries failed.", stack);
}
}