Livepeer.com routes your live streams go to the nearest available datacenter to ensure your streamers and livestream viewers have a consistent, high quality experience with the minimum latency Livepeer.com can provide. These global URLs are the best option for nearly all Livepeer.com users.
These are the Livepeer.com ingest and playback URLs:
rtmp://rtmp.livepeer.com/live/{stream-key}
https://cdn.livepeer.com/hls/{playbackId}/index.m3u8
The global RTMP ingest and playback URL pair above auto detects livestreamer and viewer locations to provide the optimal Livepeer.com experience. Some Livepeer.com users forgo the global ingest and playback URLs and select a regional URL pair to have more nuanced control over how their stream is routed through Livepeer.com's infrastructure.
While more control can be helpful, there are downsides to forgoing the global ingest and playback URLs and selecting a regional URL pair.
rtmp://rtmp.livepeer.com/live/
.
Additionally, very distant livestream viewers will have a more latent
experience than if the stream was ingested via the global ingest URL.If you decide to opt out of the global ingest and playback URLs and select a regional URL pair, here's what you need to know.
rtmp://{region}-rtmp.livepeer.com/live/{stream-key}
.https://{region}-cdn.livepeer.com/hls/{playbackId}/index.m3u8
.An RTMP ingest and playback URL pair references hardware in different parts of the world. Each region is three letters, the airport code of the server location. Use the ingest and playback URL pair in the region closest to your broadcaster.
For any stream session, you must use the RTMP ingest URL and playback URL pair from the same region.
You can get the base URL pair for the regional ingest point nearest to you by
calling https://livepeer.com/api/ingest
. For example:
curl "https://livepeer.com/api/ingest"
And you should get results like this:
[{ingest: "rtmp://{nearbyRegion}-rtmp.livepeer.com/live",playback: "https://{nearbyRegion}-cdn.livepeer.com/hls"}];
At times, you will want to use a base URL pair of a region different from the
one closest to you. You can get a list of all base URL pairs by calling
https://livepeer.com/api/ingest?first=false
. For example:
curl "https://livepeer.com/api/ingest?first=false"
And you should get a result similar to this:
[{"ingest":"rtmp://{region-1}-rtmp.livepeer.com/live","playback":"https://{region-1}-cdn.livepeer.com/hls","base":"https://{region-1}-cdn.livepeer.com"},{"ingest":"rtmp://{region-2}-rtmp.livepeer.com/live","playback":"https://{region-2}-cdn.livepeer.com/hls","base":"https://{region-2}-cdn.livepeer.com"},{"ingest":"rtmp://{region-3}-rtmp.livepeer.com/live","playback":"https://{region-3}-cdn.livepeer.com/hls","base":"https://{region-3}-cdn.livepeer.com"}]
Next, learn how to setup a CNAME for the Livepeer.com global ingest URL.