Docs
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:

OptionTypeDefaultDescription
backgroundPlaybackbooleanfalseAdds iOS UIBackgroundModes → audio. Required for audio playback when the app is backgrounded.
pictureInPicturebooleanfalseAdds 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

VariableRequiredDescription
EXPO_PUBLIC_MOVIIE_PUBLISHABLE_KEYPublishable key (mvi_pub_*) from your Moviie organization settings. Used by MoviieClient.getPlayback.

On this page