@lzwme/m3u8-dl
Version:
A free, open-source, and powerful m3u8 video batch downloader with multi-threaded downloading, play-while-downloading, WebUI management, video parsing, and more.
9 lines (8 loc) • 392 B
TypeScript
import type { OutgoingHttpHeaders } from 'node:http';
import type { M3u8Info } from '../types/m3u8';
/**
* 解析 m3u8 文件
* @param content m3u8 文件的内容,可为 http 远程地址、本地文件路径
* @param cacheDir 缓存文件保存目录
*/
export declare function parseM3U8(content: string, cacheDir?: string, headers?: OutgoingHttpHeaders | string): Promise<M3u8Info>;