Optional adaptationConfigures adaptation logic.
Optional advertisingConfigures advertising functionality. A default AdvertisingConfig is set initially.
Optional analyticsConfigures analytics functionality.
Optional bufferConfigures buffer settings. A default BufferConfig is set initially.
Optional licenseBitmovin license key that can be found in the Bitmovin portal.
If a license key is set here, it will be used instead of the license key found in the Info.plist and AndroidManifest.xml.
Configuring the player license key from source code:
const player = new Player({
licenseKey: '\<LICENSE-KEY-CODE\>',
});
licenseKey can be safely omitted from source code if it has
been configured in Info.plist/AndroidManifest.xml.
const player = new Player(); // omit `licenseKey`
player.play(); // call methods and properties...
Optional liveConfigures behaviour when playing live content. A default LiveConfig is set initially.
Optional mediaConfigures the media control information for the application. This information will be displayed wherever current media information typically appears, such as the lock screen, in notifications, and inside the control center.
Optional nativeOptionally user-defined string id for the native instance.
Used to access a certain native instance from any point in the source code then call
methods/properties on it.
When left empty, a random UUIDv4 is generated for it.
Accessing or creating the Player with nativeId equal to my-player:
const player = new Player({ nativeId: 'my-player' })
player.play(); // call methods and properties...
Optional networkConfigures network request manipulation functionality. A default NetworkConfig is set initially.
Optional playbackConfigures playback behaviour. A default PlaybackConfig is set initially.
Optional remoteConfigures remote playback functionality.
Optional styleConfigures the visual presentation and behaviour of the player UI. A default StyleConfig is set initially.
Optional tweaksConfigures experimental features. A default TweaksConfig is set initially.
Object used to configure a new
Playerinstance.