-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for #EXT-X-I-FRAMES-ONLY
Handles I-frames-only `segments`, providing a basis for the creation of trick-play functionality. **parse-stream.js** - add match statement for parsing the `EXT-X-I-FRAMES-ONLY` tag - add test case **parser.js** - add a property `iFramesOnly` to the `manifest` - add a function to validate the minimum version required - trigger a `warn` event if the minimum version required is not supported or undefined, as required by the specification - add test case https://datatracker.ietf.org/doc/html/rfc8216#section-4.3.3.6 - update `README.md` documentation
- Loading branch information
Showing
7 changed files
with
168 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
module.exports = { | ||
allowCache: true, | ||
dateRanges: [], | ||
iFramesOnly: true, | ||
mediaSequence: 0, | ||
playlistType: 'VOD', | ||
segments: [ | ||
{ | ||
duration: 2.002, | ||
timeline: 0, | ||
uri: '001.ts' | ||
}, | ||
{ | ||
duration: 2.002, | ||
timeline: 0, | ||
uri: '002.ts' | ||
}, | ||
{ | ||
duration: 2.002, | ||
timeline: 0, | ||
uri: '003.ts' | ||
}, | ||
{ | ||
duration: 2.002, | ||
timeline: 0, | ||
uri: '004.ts' | ||
}, | ||
{ | ||
duration: 2.002, | ||
timeline: 0, | ||
uri: '005.ts' | ||
}, | ||
{ | ||
duration: 2.002, | ||
timeline: 0, | ||
uri: '006.ts' | ||
} | ||
], | ||
targetDuration: 3, | ||
endList: true, | ||
discontinuitySequence: 0, | ||
discontinuityStarts: [], | ||
version: 4 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#EXTM3U | ||
#EXT-X-VERSION:4 | ||
#EXT-X-PLAYLIST-TYPE:VOD | ||
#EXT-X-MEDIA-SEQUENCE:0 | ||
#EXT-X-TARGETDURATION:3 | ||
#EXT-X-I-FRAMES-ONLY | ||
#EXTINF:2.002, | ||
001.ts | ||
#EXTINF:2.002, | ||
002.ts | ||
#EXTINF:2.002, | ||
003.ts | ||
#EXTINF:2.002, | ||
004.ts | ||
#EXTINF:2.002, | ||
005.ts | ||
#EXTINF:2.002, | ||
006.ts | ||
#EXT-X-ENDLIST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters