mirror of
https://github.com/expo/config-plugins.git
synced 2026-11-13 20:28:07 -10:00
### @config-plugins/ffmpeg-kit-react-native [1.0.2](https://github.com/expo/config-plugins/compare/@config-plugins/[email protected]...@config-plugins/[email protected]) (2022-03-22)
### Other chores
* **ffmpeg-kit-react-native:** update plugin to use `AndroidConfig.Version.withBuildScriptExtMinimumVersion` ([#60](https://github.com/expo/config-plugins/issues/60)) ([c3a375b](https://github.com/expo/config-plugins/commit/c3a375b292d6405be7b3277d10ab4f8dbb006047))
config-plugins/ffmpeg-kit-react-native
Config plugin to auto configure ffmpeg-kit-react-native when the native code is generated (expo prebuild).
Expo installation
Tested against Expo SDK 44. Most packages worked on iOS. Not all packages have been tested on Android.
This package cannot be used in the "Expo Go" app because it requires custom native code. First install the package with yarn, npm, or
expo install.
yarn add ffmpeg-kit-react-native @config-plugins/ffmpeg-kit-react-native
After installing this npm package, add the config plugin to the plugins array of your app.json or app.config.js:
{
"expo": {
"plugins": ["@config-plugins/ffmpeg-kit-react-native"]
}
}
Next, rebuild your app as described in the "Adding custom native code" guide.
API
The plugin provides props for extra customization. Every time you change the props or plugins, you'll need to rebuild (and prebuild) the native app. If no extra properties are added, defaults will be used.
package(string): Package to use. Options are: min, min-gpl, https, https-gpl, audio, video, full, full-gpl. Learn more.ios.package(string): Specify an iOS only package.android.package(string): Specify an Android only package.
Example
{
"expo": {
"plugins": [
[
"@config-plugins/ffmpeg-kit-react-native",
{
"package": "min",
"ios": {
"package": "video"
}
}
]
]
}
}
Important Notes
- This plugin changes the minimum deployment target on iOS to
12.1(from12) and Android to24(from21) which may break other packages in your app! - Changing the "package" field on iOS will require re-running
pod installafter updating withexpo prebuild -p ios --no-install. - Most of the modifications in this plugin are dangerous meaning it's highly likely that something may break over time. The plugin is heavily unit-tested to attempt to prevent breaking though.