Skip to content

Commit

Permalink
Ignore #EXT-X-INDEPENDENT-SEGMENTS so that it is not added to Fragmen…
Browse files Browse the repository at this point in the history
…t tagList
  • Loading branch information
robwalch committed Dec 14, 2023
1 parent 54b8b11 commit 37efcfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/loader/m3u8-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const LEVEL_PLAYLIST_REGEX_SLOW = new RegExp(
/#(EXTM3U)/.source,
/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/
.source,
/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/
/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION|INDEPENDENT-SEGMENTS): *(\d+)/
.source,
/#EXT-X-(DISCONTINUITY|ENDLIST|GAP)/.source,
/(#)([^:]*):(.*)/.source,
Expand Down Expand Up @@ -499,6 +499,7 @@ export default class M3U8Parser {
case 'VERSION':
level.version = parseInt(value1);
break;
case 'INDEPENDENT-SEGMENTS':
case 'EXTM3U':
break;
case 'ENDLIST':
Expand Down

0 comments on commit 37efcfd

Please sign in to comment.