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

# WebRTC and WHEP

> Sub-second playback for people who are in the session.

Use WebRTC when the viewer has to answer, bid, or react while the picture is still happening. WHEP is the playback side for players that already speak it. Browsers publish the other direction over [WHIP](/publish/webrtc).

Opus, AV1, and H.264 are the codecs on this path. On a healthy network, glass-to-glass latency stays under half a second. Tune the encoder and the player buffer before you chase the server.

Issue a short-lived key for play, the same way you do for publish. When the appointment ends, the key ends. See [Security](/security).

<Card title="Publish from the browser" icon="monitor" href="/publish/webrtc">
  The matching ingest for a two-way session.
</Card>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.