API Docs
    Preparing search index...

    Interface ParserOptions

    Options for the parser function.

    interface ParserOptions {
        uri?: string;
    }
    Index

    Properties

    Properties

    uri?: string

    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'