Player ExpoConfiguration
Configuration
Expo config plugin options and required environment variables.
Config plugin
Register @moviie/player-expo under expo.plugins in app.json:
{
"expo": {
"plugins": [
[
"@moviie/player-expo",
{
"backgroundPlayback": true,
"pictureInPicture": true
}
]
]
}
}Plugin options:
| Option | Type | Default | Description |
|---|---|---|---|
backgroundPlayback | boolean | false | Adds iOS UIBackgroundModes → audio. Required for audio playback when the app is backgrounded. |
pictureInPicture | boolean | false | Adds iOS UIBackgroundModes → picture-in-picture and audio. Sets Android supportsPictureInPicture and resizeableActivity on the main activity. |
After changing plugin options, run pnpm expo prebuild to apply them to the native projects.
Environment variables
| Variable | Required | Description |
|---|---|---|
EXPO_PUBLIC_MOVIIE_PUBLISHABLE_KEY | ✓ | Publishable key (mvi_pub_*) from your Moviie organization settings. Used by MoviieClient.getPlayback. |