Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ying_123 committed Jun 10, 2023
1 parent 21a7813 commit d2f581d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ const hls2mp4 = new Hls2Mp4({
outputType?: 'mp4' | 'ts';

}, (type, progress) => {
// type = 0 => load FFmpeg
// type = 1 => parse m3u8
// type = 2 => downloading ts
// type = 3 => merge ts
// type = 0 => parse m3u8
// type = 1 => downloading ts
// type = 2 => merge ts
});

const buffer = await hls2mp4.download('your m3u8 url')
Expand Down

0 comments on commit d2f581d

Please sign in to comment.