This package is a utility to record player events from an AVPlayer
and feed them into Brightcove analytics.
At app launch, set up the Brightcove Module with your data by creating StorytellerBrightcoveModuleConfiguration
:
let brightcoveConfiguration = StorytellerBrightcoveModuleConfiguration(
account: "<account ID>",
playerName: "Video Player", // optional
source: "<source>",
destination: "<destination>"
)
The next step is to create a StorytellerBrightcoveModule
and add it to the modules
array on the Storyteller
object:
Storyteller.modules.append(StorytellerBrightcoveModule(configuration: brightcoveConfiguration))