Skip to main content

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:

AttributeTypeRequiredDescription
startfloatyesStart time in seconds
endfloatyesEnd time in seconds
typestringyesType of the annotation
labelstringnoLabel of the annotation
Single media example
m.player.callFunc("setConfig", {
...
content: {
...
annotations: [
...
{
start: 0,
end: 10,
type: "intro"
}
...
],
...
}
...
})