Skip to main content

serve_segment

Function serve_segment 

Source
pub async fn serve_segment<W: AsyncWrite + Unpin>(
    req: HttpRequest,
    writer: ResponseWriter<W>,
    ring: &SegmentRing,
    sequence: u64,
) -> Result<ResponseWriter<W>>
Expand description

Serve an HLS media segment (.m4s / .ts), optionally a byte range.