Files
linsa-linsa-io/packages
Nikita 2be1e74e3b Implement chunk retrieval endpoint and enhance HLS live stream detection logic
- Add `getChunk` handler to serve specific recording chunks based on `streamId` and `index` query params
- Modify route handler to dispatch requests to either list recordings or fetch chunks
- Improve `isHlsPlaylistLive` function with:
  - Basic validation for manifest structure
  - Detection of master playlists and VOD markers
  - Segment presence check
  - Timestamp freshness validation via `#EXT-X-PROGRAM-DATE-TIME`
  - Conservative fallback using media sequence when timestamps are absent
2025-12-25 10:37:57 -08:00
..