Options for the parser function.
Optional
Base URI for resolving relative URLs in the playlist.
If provided, all relative URIs (segment URIs, key URIs, map URIs, variant URIs, etc.) will be resolved to absolute URLs.
const pl = parser(m3u8, { uri: 'https://example.com/hls/main.m3u8' });// pl.segments[0].uri → 'https://example.com/hls/segment.ts' Copy
const pl = parser(m3u8, { uri: 'https://example.com/hls/main.m3u8' });// pl.segments[0].uri → 'https://example.com/hls/segment.ts'
Options for the parser function.