Manage bounded UDP listeners directly in Yavsc.Api, expose secret SRT URLs in PostIt, and preserve quotas, revocation and replay. Update deployment and privacy documentation, remove relay configuration, and add real-media lifecycle regressions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
98 lines
3.4 KiB
HTTP
98 lines
3.4 KiB
HTTP
@baseUrl = https://localhost:5005
|
|
@token = REPLACE_WITH_ACCESS_TOKEN
|
|
@id = REPLACE_WITH_PODCAST_ID
|
|
|
|
### Prepare a private emission (api scope; start/stop remain manual)
|
|
POST {{baseUrl}}/api/v1/podcasts/planned
|
|
Authorization: Bearer {{token}}
|
|
Content-Type: application/json
|
|
|
|
{"title":"Concert prepare","scheduledStartAt":"2026-12-01T20:00:00+01:00","plannedDurationMinutes":90}
|
|
|
|
### Edit before start and publish a public presentation; null/empty announcement unpublishes it
|
|
PUT {{baseUrl}}/api/v1/podcasts/{{id}}/planned
|
|
Authorization: Bearer {{token}}
|
|
Content-Type: application/json
|
|
|
|
{"title":"Concert prepare","scheduledStartAt":"2026-12-01T20:00:00+01:00","plannedDurationMinutes":90,"publicAnnouncement":"Venez ecouter notre concert"}
|
|
|
|
### Public presentation only (no token, no stream)
|
|
GET {{baseUrl}}/api/v1/podcasts/announcements
|
|
|
|
### Start the prepared emission manually, retaining its identifier (owner only)
|
|
POST {{baseUrl}}/api/v1/podcasts/{{id}}/start
|
|
Authorization: Bearer {{token}}
|
|
|
|
### Create a live broadcast
|
|
POST {{baseUrl}}/api/v1/podcasts
|
|
Authorization: Bearer {{token}}
|
|
Content-Type: application/json
|
|
|
|
{"title":"Concert en direct"}
|
|
|
|
### List live broadcasts and replays
|
|
GET {{baseUrl}}/api/v1/podcasts
|
|
Authorization: Bearer {{token}}
|
|
|
|
### Read committed metadata
|
|
GET {{baseUrl}}/api/v1/podcasts/{{id}}
|
|
Authorization: Bearer {{token}}
|
|
|
|
### Upload the first complete MPEG-TS segment (file produced by LibVLC)
|
|
PUT {{baseUrl}}/api/v1/podcasts/{{id}}/segments/0?duration=4
|
|
Authorization: Bearer {{token}}
|
|
Content-Type: video/mp2t
|
|
|
|
< ./segment.ts
|
|
|
|
### Play the HLS event playlist (send Authorization on segment requests too)
|
|
GET {{baseUrl}}/api/v1/podcasts/{{id}}/index.m3u8
|
|
Authorization: Bearer {{token}}
|
|
|
|
### Read a committed segment
|
|
GET {{baseUrl}}/api/v1/podcasts/{{id}}/segments/0.ts
|
|
Authorization: Bearer {{token}}
|
|
|
|
### Finish and retain the replay
|
|
POST {{baseUrl}}/api/v1/podcasts/{{id}}/complete
|
|
Authorization: Bearer {{token}}
|
|
|
|
### Ready MP4: authenticated seek range (206; 409 until replay.state is Ready)
|
|
GET {{baseUrl}}/api/v1/podcasts/{{id}}/replay.mp4
|
|
Authorization: Bearer {{token}}
|
|
Range: bytes=0-65535
|
|
|
|
### MP4 size and range support without downloading the body
|
|
HEAD {{baseUrl}}/api/v1/podcasts/{{id}}/replay.mp4
|
|
Authorization: Bearer {{token}}
|
|
|
|
### Retry failed MP4 preparation (owner only; 202)
|
|
POST {{baseUrl}}/api/v1/podcasts/{{id}}/replay/retry
|
|
Authorization: Bearer {{token}}
|
|
|
|
### Delete an ended podcast (owner only)
|
|
DELETE {{baseUrl}}/api/v1/podcasts/{{id}}
|
|
Authorization: Bearer {{token}}
|
|
|
|
### Unknown podcast: 404
|
|
GET {{baseUrl}}/api/v1/podcasts/00000000-0000-0000-0000-000000000000
|
|
Authorization: Bearer {{token}}
|
|
|
|
### OpenAPI in development (requires an Administrator token)
|
|
GET {{baseUrl}}/openapi/podcasts.json
|
|
Authorization: Bearer {{token}}
|
|
### Activate OBS for an owned planned podcast (secret SRT ServerUrl; StreamKey is empty)
|
|
POST {{baseUrl}}/api/v1/podcasts/{{id}}/obs
|
|
Authorization: Bearer {{token}}
|
|
|
|
### OBS activation status (never returns the stream key)
|
|
GET {{baseUrl}}/api/v1/podcasts/{{id}}/obs
|
|
Authorization: Bearer {{token}}
|
|
|
|
### Revoke OBS and disconnect its publisher (allowed at consumption limit)
|
|
DELETE {{baseUrl}}/api/v1/podcasts/{{id}}/obs
|
|
Authorization: Bearer {{token}}
|
|
|
|
# Activation: 403 other owner/closed account, 404 missing emission,
|
|
# 409 already started, 413 disk full, 429 consumption limit,
|
|
# 503 OBS disabled, FFmpeg unavailable or listener/UDP port capacity reached.
|