Frontend and APIs for SRS.
Still under development, don't use it as nothing is provided to viewer.
We recommend deploying via Vercel.
We provide reverse apis for token verification, so you need to create a database to store the stream tokens.
Edge Config is for temporary use, its content is exposed directly to backend administrator. Will be changed in a future release.
If you're using Vercel, simply connect the Edge Config database to the project. Vercel will automatically create the variable.
Example:
{
app: 'live',
token: '?token=', // token prefix
streams: [
{
name: 'john-doe',
token: 'token-here',
},
],
}Client:
server -> rtmp://serverdomain/live
stream key -> john-doe?token=token-here
Manually add http_hooks in your .conf file
http_hooks {
enabled on;
on_publish https://frontdomain/api/publish;
on_hls https://frontdomain/api/publish;
}
URL to Edge Config database.
URL to SRS API.
Example: http://serverdomain:1985/api/v1