Skip to content

Fetch a single live HLS segment, or a track's init segment, from the in-memory live window. `seg` is `init` for the EXT-X-MAP init segment, otherwise the segment's media-sequence number; a cosmetic `.m4s` suffix is accepted (and ignored) so ffmpeg-based HLS players will fetch it. HTTP Range is honored. Segments are the verbatim signed canonical .m4s, so provenance travels with playback.

GET
/xrpc/place.stream.playback.getLiveSegment
curl --request GET \
--url 'https://example.com/xrpc/place.stream.playback.getLiveSegment?streamer=example&track=example&seg=example'
streamer
required

The streamer: a DID or a Bluesky handle (resolved to its DID).

string

The streamer: a DID or a Bluesky handle (resolved to its DID).

track
required

Track ID (stringified u32 matching the MUXL container).

string

Track ID (stringified u32 matching the MUXL container).

seg
required

init for the track’s init segment, or the segment’s media-sequence number. A trailing .m4s is accepted and ignored.

string

init for the track’s init segment, or the segment’s media-sequence number. A trailing .m4s is accepted and ignored.

sid

The playback session from the media playlist that referenced this segment; required on this route, and it gates pre-live segments.

string

The playback session from the media playlist that referenced this segment; required on this route, and it gates pre-live segments.

Success

Media typevideo/mp4

Bad Request

Media typeapplication/json
object
error
required
One of:
string
Allowed value: StreamNotLive
message
required
string

Example

{
"error": "StreamNotLive"
}