Quickstart
Get streaming in 5 minutes.
Step 1
Get API Key
Register at Dashboard to get your API key.
Step 2
Get Live Channels
bash
curl "https://stream-api-production-f4f7.up.railway.app/api/channels" \
-H "X-API-Key: YOUR_API_KEY"Returns list of live and upcoming channels with EPG IDs.
Step 3
Get Stream URL
bash
curl "https://stream-api-production-f4f7.up.railway.app/api/stream/EPG_ID?ch=CHANNEL_ID" \
-H "X-API-Key: YOUR_API_KEY"Response:
json
{
"manifest": "https://..../index.mpd",
"drm": {
"server": "https://stream-api-production-f4f7.up.railway.app/drm/license",
"headers": {
"X-DRM-Ticket": "...",
"X-DRM-Token": "..."
}
}
}Step 4
Play with Shaka Player
javascript
const player = new shaka.Player(videoElement);
player.configure({
drm: {
servers: { 'com.widevine.alpha': response.drm.server },
advanced: {
'com.widevine.alpha': {
headers: response.drm.headers
}
}
}
});
await player.load(response.manifest);