Download OpenAPI specification:Download
This API describes how Flussonic streaming server connects to an external authorization backend to check if the user is allowed to access a stream or a VOD file.
Permanent download link to JSON schema file.
This specification does not have any external dependencies and is designed to be as minimal, as possible for reducing needs of maintaining unneeded backward compatibility.
This API is designed to be implementable by third parties.
This method describes what Flussonic sends to an authorization backend for playing session and what it awaits as a response.
{- "ad_inject": {
- "v": 2,
- "preroll": [
- "ad_vod/preroll1.mp4"
], - "midroll": [
- "ad_vod/midroll1.mp4",
- "ad_vod/midroll2.mp4"
], - "midroll_insert_by": "interval",
- "midroll_interval": 180,
- "midroll_program_id": 1
}, - "allowed_dvr_ranges": [
- {
- "opened_at": 1710010000,
- "closed_at": 1710020000
}
]
}
This method describes what Flussonic sends to an authorization backend for publishing session authorization and what it awaits as a response.
{- "name": "fake",
- "proto": "hls",
- "ip": "10.77.0.150",
- "request_type": "new_session",
- "request_number": 1,
- "session_id": "6217fd62-16da-4206-9da9-0173d7552a14",
- "stream_clients": 1,
- "total_clients": 2,
- "token": "60334b207baa",
- "duration": 2,
- "bytes": 12345,
- "qs": "token=60334b207baa",
- "user_agent": "curl%2F7.68.0",
- "referer": "hey.com",
- "host": { }
}
{- "ad_inject": {
- "v": 2,
- "preroll": [
- "ad_vod/preroll1.mp4"
], - "midroll": [
- "ad_vod/midroll1.mp4",
- "ad_vod/midroll2.mp4"
], - "midroll_insert_by": "interval",
- "midroll_interval": 180,
- "midroll_program_id": 1
}, - "allowed_dvr_ranges": [
- {
- "opened_at": 1710010000,
- "closed_at": 1710020000
}
]
}