> For the complete documentation index, see [llms.txt](https://developer.singular.live/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.singular.live/software-development-kits/overlay-sdk/use-case-examples.md).

# Use case examples

### Send notifications from the overlay SDK to a composition script <a href="#send-notifications-from-the-overlay-sdk-to-the-composition-script" id="send-notifications-from-the-overlay-sdk-to-the-composition-script"></a>

This example uses video.js callbacks to listen to specific player events. The Overlay SDK sends a notification to the composition script when an event occurs. The composition script then updates control nodes in the composition to trigger the indicators.

[Contact the Singular support team](/support/support-resources.md#developer-support) for a copy of the composition.

Use the player controls and watch the status indicators changing.

{% embed url="<https://codepen.io/Singular/pen/dyoXjZW?editors=1010>" %}

### Send messages from composition scripts to the overlay SDK <a href="#send-messages-from-composition-script-to-the-overlay-sdk" id="send-messages-from-composition-script-to-the-overlay-sdk"></a>

This example shows how to receive messages from a composition script to the overlay SDK.

[Contact the Singular support team](/support/support-resources.md#developer-support) for a copy of the composition.

Click on the interactive icons build within Singular to play the according clip in the video.js player.

{% embed url="<https://codepen.io/Singular/pen/NWqrBgO?editors=1010>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developer.singular.live/software-development-kits/overlay-sdk/use-case-examples.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
