getSafParameter static method

Future<String?> getSafParameter(
  1. String uriString,
  2. String openMode
)

Converts the given Structured Access Framework Uri into an saf protocol url opened with the given open mode.

Note that this method is Android only. It will fail if called on other platforms. It also requires API Level ≥ 19. On older API levels it returns an empty url.

Implementation

static Future<String?> getSafParameter(
    String uriString, String openMode) async {
  try {
    await init();
    return _platform.ffmpegKitConfigGetSafParameter(uriString, openMode);
  } on PlatformException catch (e, stack) {
    print("Plugin getSafParameter error: ${e.message}");
    return Future.error("getSafParameter failed.", stack);
  }
}