Rooms
| Room ID | Type | Publishers | Subscribers | Age | Actions |
|---|
No active rooms. Create one to get started.
API Keys
Keys created during this session are shown below. The full key is only displayed once at creation time.
No keys created yet this session.
Quick Start
Minimal code to get a broadcast stream running:
// 1. Create a room (your backend)
const room = await fetch('/v1/rooms', {
method: 'POST',
headers: {
'Authorization': 'Bearer lr_your_key',
'Content-Type': 'application/json'
},
body: JSON.stringify({ room_type: 'broadcast' })
}).then(r => r.json());
// 2. Publish (streamer's browser)
const lr = new LiveRelay('https://your-server.com');
await lr.publish({
token: room.tokens.publish,
video: true,
audio: true
});
// 3. Subscribe (viewer's browser)
await lr.subscribe({
token: room.tokens.subscribe,
element: videoEl
});