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
const url = 'https://example.com/xrpc/place.stream.playback.getLiveSegment?streamer=example&track=example&seg=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/xrpc/place.stream.playback.getLiveSegment?streamer=example&track=example&seg=example'Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”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.
Responses
Section titled “Responses”Success
Media typevideo/mp4
Bad Request
