Plugin Configuration
Lura Plugins are seamlessly integrated tools developed or managed by Lura Player developers to effortlessly add functionality, such as advertisements and analytics, to Lura Player. These plugins are made to simplify the commonly used measuring and monetization tools in the industry into Lura Player.
To add Plugins, you can use the following configuration.
Attribute | Type | Description |
---|---|---|
requiredPluginsConfigurations | PLUGIN_NAME : PLUGIN_CONFIG_OBJ | Plugins |
Swift
let convivaConfig = ConvivaPluginConfiguration(customerKey: "Your customer key", gatewayUrl: "Your gateway URL", logLevel: 1, viewerId: "Your viewer ID")
let adobeConfig = AdobeExperiencePluginConfiguration(adobeAppId: "You app id", griffonUrl: nil, logLevel: 2)
let imaConfig = IMAPluginConfiguration(config: ["client": ["adTagUrl": "Your ad tag URL"]], playerViewController: self)
let playerConfig = AktaPlayerConfiguration(requiredPluginsConfigurations: [imaConfig], playerView: self.playerView, eventListener: self.eventListener)
self.player = try? AktaPlayerCreator.playerWith(configuration: playerConfig)
let aktaMedia = AktaMedia()
aktaMedia.token = "Your token"
aktaMedia.loadType = .token
self.player?.load(media: aktaMedia, completion: { [weak self] loaded, error in
if loaded {
self?.player?.play()
}
})