> For the complete documentation index, see [llms.txt](https://docs.battle.fyi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.battle.fyi/streaming-and-broadcast/obs.md).

# OBS Setup

How to add Battle Trade as a browser source in OBS Studio.

## Step 1: Add a Browser Source

In OBS, click the **+** button in the Sources panel and select **Browser**. Name it something like "Battle Trade Overlay".

## Step 2: Set the URL

Point it to your lobby's broadcast URL:

```
https://battle.fyi/broadcast/[your-lobby-id]
```

## Step 3: Configure resolution

Set the browser source to **1920x1080**. The broadcast view is designed for this resolution. For 4K displays, use the wall view at `/lobby/[id]/wall`.

## Step 4: Scene switching

Set up multiple OBS scenes for different moments:

| Scene          | View           | When                                      |
| -------------- | -------------- | ----------------------------------------- |
| Pre-show       | Stage view     | Before the battle starts, countdown timer |
| Active round   | Broadcast view | During live trading                       |
| Between rounds | Leaderboard    | Elimination announcements, standings      |
| Post-match     | Stage view     | Final results, winner reveal              |

## Tips

* The broadcast overlay is **transparent-friendly**. You can layer it on top of other content.
* All data updates in real time. No need to refresh the browser source.
* Use the admin panel in a separate window to control rounds and trigger volatility events while streaming.
* The commentator Cast view shows extra stats that aren't visible to spectators. Good for a second monitor.


---

# 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:

```
GET https://docs.battle.fyi/streaming-and-broadcast/obs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
