UNPKG

bitmovin-player-react-native

Version:

Official React Native bindings for Bitmovin's mobile Player SDKs.

36 lines (35 loc) 1.14 kB
import { ConfigPlugin } from 'expo/config-plugins'; import Features from './Features'; /** * Expo Config Plugin for Bitmovin Player. * This plugin configures the Bitmovin Player for both iOS and Android platforms. * It accepts a player license key and feature flags to customize the player's behavior. * @param config - The Expo config object. * @param options - An object containing the player license key and feature flags. * @returns The modified Expo config object with Bitmovin Player configurations. * * @example * // app.config.js * module.exports = { * plugins: [ * [ * 'bitmovin-player-react-native', * { * playerLicenseKey: 'YOUR_BITMOVIN_PLAYER_LICENSE_KEY', * featureFlags: { * airPlay: true, * backgroundPlayback: true, * googleCastSDK: { android: '21.3.0', ios: '4.8.1.2' }, * offline: true, * pictureInPicture: true, * }, * }, * ] * ] * }; */ declare const withBitmovinConfig: ConfigPlugin<{ playerLicenseKey: string; featureFlags: Features; }>; export default withBitmovinConfig;