Hosted preview
Hosted media relays
Warning
Hosted media relays are being built. This page describes the plan for the private preview, and the details will change. Everything on the other pages works today with the open source SDK alone.
A hosted media relay is a media relay that the n0.computer team runs for you. Your publishers push broadcasts to it, and your viewers read them from it. You write your application on the open source SDK, and we operate the servers.
What it adds to the SDK
| You need | With the SDK alone | With hosted media relays |
|---|---|---|
| A stream between two devices | Works, directly over iroh | The same. No media relay is involved |
| Viewers in browsers | You run a media relay. It works on a network you control | We run media relays that browsers on the internet can reach |
| A large audience | Limited by the publisher’s uplink | The publisher sends once, and the media relay serves every viewer |
| Private streams | You write the policy and issue the tokens | Only people you give a token to can read or publish |
How it will work
- We give you access to a project. A project owns its broadcasts and its keys.
- Your publishers push broadcasts to a hosted media relay, as in Publish through a media relay. The media relay accepts them because they present a token from your project.
- Your backend gives each viewer a token that says which broadcasts the viewer may watch, and for how long.
- Viewers read the broadcasts from the media relay, in a browser or with the SDK.
The media relay checks every token, and your backend decides who gets one. Access control explains tokens. The media relay that refuses everyone without a token is not in the open source media relay yet. Today the media relay lets anyone read every broadcast on it by default.
What is not there yet
- A dashboard and an API for creating projects and tokens. During the preview, we set these up with you by hand.
- Recording, and output to other streaming services.
- Media relays in more than one region.
Ask for access
The preview is by invitation. If you are in it, your contact at n0.computer sends you what you need to connect. To ask for access, talk to the n0.computer team.
Until then, start with the Quickstart. An application built on the SDK needs only a media relay’s endpoint id and a token to move to hosted media relays.
Where to go next
- iroh relays and media relays explains what a media relay does and what it can see.
- Publish through a media relay pushes broadcasts to a media relay you run.