Annotations Configuration
Annotations are essential for videos as they provide additional information, context, and interactivity to enhance the viewer's understanding and engagement. Annotations can be in the form of text, graphics, or interactive elements overlaid on the video, allowing content creators to convey key messages, highlight important details, or provide links to related resources. Annotations can also serve as a call-to-action, encouraging viewers to subscribe, like, or share the video, or guiding them towards other videos or content within a series. By using annotations strategically, video creators can enrich the viewing experience, increase viewer retention, and encourage desired actions, making annotations a valuable tool for enhancing the effectiveness and impact of video content.
To add annotations to your configuration, you need to use the following configuration:
Attribute | Type | Required | Description |
---|---|---|---|
start | number | yes | Start time in seconds |
end | number | yes | End time in seconds |
type | string | yes | Type of the annotation |
label | string | no | Label of the annotation |
val luraConfiguration = LuraConfiguration(
...
content = LuraContent(
annotations = listOf<LuraAnnotation>(
LuraAnnotation(
start = 0,
end = 10,
type = "intro"
)
)
...
),
...
)
playerView = findViewById(R.id.lura_player_view)
player = LuraPlayer(context = this, playerView = playerView)
player.setConfig(luraConfiguration)