Storyteller Brightcove Module#
Introduction#
The Storyteller SDK supports Brightcove analytics as a separate module. This module is designed to work with the Brightcove to provide analytics for videos.
Setup#
To setup the module additional dependency needs to be added and the module needs to be initialized and included in Storyteller.modules
maven {
url = uri("https://storyteller.mycloudrepo.io/public/repositories/storyteller-sdk")
}
Then add the following reference to your version catalog file:
storyteller-brightcove = { module = "com.storyteller.brightcove:analytics", version.ref = "1.2.0" }
And finally reference this in your build.gradle:
implementation(libs.storyteller.brigthcove)
To use the module Storyteller SDK version should be set to 10.6.3 or higher.
Now initialize the module as follows:
val configuration = StorytellerBrightcoveModuleConfiguration(
accountId = "your-account-id",
playerName = "your-player-name",
source = "your-source",
destination = "your-destination-url",
)
val storytellerBrigthcoveModule = StorytellerBrightCoveModule(configuration)
fun initializeStoryteller() {
Storyteller.modules = listOf(storytellerBrigthcoveModule)
//initialize code
}