# Media Layer

### Live Streaming (Trading-grade)

Pumpkin supports:

* audio
* video
* screen sharing
* OBS ingest
* multi-host participation (up to 9)
* gifts (single and multi-recipient)
* real-time trading bullet comments

{% @mermaid/diagram content="

flowchart LR
OBS\[OBS Ingest] --> ING\[Ingest Service]
ING --> LL\[Low-Latency Delivery]
HOST\[Hosts/Guests] --> SFU\[WebRTC SFU]
SFU --> LL
LL --> VIEW\[Viewers]
VIEW --> BUS\[Realtime Bus: chat/trades/gifts]" %}

#### Why this matters for live trading

A live trading room is interactive: viewers ask questions, follow trades, watch guests debate, and react instantly. Low-latency and multi-host capacity are core requirements—not optional media features.

### Recording & Replay

Pumpkin records sessions and indexes them with event markers so users can replay the market narrative, not just watch a video.

{% @mermaid/diagram content="flowchart LR
LIVE\[Live Room] --> REC\[Recording Pipeline]
LIVE --> EVT\[Trading + Room Events]
EVT --> IDX\[Marker Indexer]
REC --> REP\[Replay Player]
IDX --> REP" %}

Markers can include:

* strategy publish moments
* entry/exit events
* stop updates
* funding events
* liquidation risk warnings
* major chat highlights


---

# Agent Instructions: 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.pumpkin.xyz/product/media-layer.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.
