The Storyteller SDK supports Brightcove analytics as a separate module. This module is designed to work with the Brightcove to provide analytics for videos.
Legacy integration: Do not add this module to a new application. The Brightcove analytics artifact is not published on Maven Central and depends on legacy Storyteller distribution through CloudRepo or MyGet. Both repositories will be sunset with the SDK 12.0.0 release. Existing users can keep the dependency temporarily while migrating; contact Storyteller Support before adopting or changing this integration.
Existing applications that already resolve the module from CloudRepo or MyGet can keep the dependency temporarily. Do not add either legacy repository to a new integration. The module must be initialized and included in Storyteller.modules.
Then add the following reference to your version catalog file:
The exclude removes the Brightcove module's legacy transitive SDK dependency. Keep your app's main Storyteller SDK dependency on the current com.getstoryteller:sdk coordinate.
To use the module Storyteller SDK version should be set to 10.6.3 or higher.
Now initialize the module as follows:
{"slug": "storyteller-brightcove", "page_title": "Storyteller Brightcove Module", "page_url": "StorytellerBrightcove/", "canonical_url": "/android/StorytellerBrightcove/", "markdown": "# Storyteller Brightcove Module\n\n## Introduction\n\nThe Storyteller SDK supports Brightcove analytics as a separate module. This module is designed to work with the Brightcove to provide analytics for videos.\n\n> **Legacy integration:** Do not add this module to a new application. The Brightcove analytics artifact is not published on Maven Central and depends on legacy Storyteller distribution through CloudRepo or MyGet. Both repositories will be sunset with the SDK `12.0.0` release. Existing users can keep the dependency temporarily while migrating; contact Storyteller Support before adopting or changing this integration.\n\n### Setup\n\nExisting applications that already resolve the module from CloudRepo or MyGet can keep the dependency temporarily. Do not add either legacy repository to a new integration. The module must be initialized and included in `Storyteller.modules`.\n\nThen add the following reference to your version catalog file:\n\n```toml\nstoryteller-brightcove = { module = \"com.storyteller.brightcove:analytics\", version.ref = \"1.2.0\" }\n```\n\nAnd finally reference this in your `build.gradle`:\n\n```groovy\nimplementation(libs.storyteller.brigthcove) {\n exclude group: \"Storyteller\", module: \"sdk\"\n}\n```\n\nThe exclude removes the Brightcove module's legacy transitive SDK dependency. Keep your app's main Storyteller SDK dependency on the current `com.getstoryteller:sdk` coordinate.\n\nTo use the module Storyteller SDK version should be set to `10.6.3` or higher.\nNow initialize the module as follows:\n\n```kotlin\nval configuration = StorytellerBrightcoveModuleConfiguration(\n accountId = \"your-account-id\",\n playerName = \"your-player-name\",\n source = \"your-source\",\n destination = \"your-destination-url\",\n)\n\nval storytellerBrigthcoveModule = StorytellerBrightCoveModule(configuration)\n\nfun initializeStoryteller() {\n Storyteller.modules = listOf(storytellerBrigthcoveModule)\n //initialize code\n}\n```\n\n## Showcase examples\n\n- [Compose \u2014 Brightcove module config (`StorytellerServiceImpl`)](https://github.com/getstoryteller/storyteller-showcase-android/blob/main/compose/app/src/main/java/com/getstoryteller/storytellershowcaseapp/data/StorytellerServiceImpl.kt#L79)\n", "copy_markdown_include_header": false, "base_path": "android", "ai_dir": "ai", "missing_payload_behavior": "empty"}