> ## Documentation Index
> Fetch the complete documentation index at: https://docs.streampixel.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Embed a Streampixel stream into your site with a single iframe.

The fastest way to embed a Streampixel stream — drop in an iframe, configure a few attributes, and use `postMessage` to drive the stream from your frontend. No SDK required.

## Pages in this section

|                                                                                                      | What it covers                                                                    |
| ---------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
| [Basic embed](/resources/iframe-integration/basic-iframe-integration)                                | The minimum iframe markup, autoplay, fullscreen, and input handling.              |
| [Stream states](/resources/iframe-integration/stream-states)                                         | Lifecycle events (`authenticating`, `loadingComplete`, etc.) for driving your UI. |
| [Stream control commands](/resources/iframe-integration/stream-control-commands)                     | Mute, change resolution, take a screenshot — programmatic stream control.         |
| [Frontend & app communication](/resources/iframe-integration/frontend-and-application-communication) | Send and receive messages between your page and the iframe via `postMessage`.     |
| [Sample code (HTML + React)](/resources/iframe-integration/sample-code-for-html-and-react)           | Drop-in examples.                                                                 |

## Iframe vs. Web SDK

Use the **iframe** to embed quickly with minimal code, or when your frontend isn't JavaScript-based. Use the [Web SDK](/resources/web-sdk/getting-started/overview) when you need fine-grained control — custom UI, voice chat, programmatic events, or full lifecycle hooks.
