Auto extend media playlist, expose winsize, set winsize 0 on VoD #70
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are three related commits here all addressing issues.
Expose setter and getter for media playlist winsize
0f55de0 fixes #53 and finishes #22, this exposes two new methods for a media playlist,
SetWinSet()
andWinSize()
which sets and gets the winsize respectively.Auto extend media playlist when decoding without a media playlist
78a4147 fixes #5, when decoding a playlist using the
Decode()
orDecodeFrom()
functions (not the equivalent methods on a Master/Media Playlist), the decode function would create a new media playlist with a winsize of 8 and capacity of 1024. If the playlist was >1024 segments, the remaining segments would be dropped.This auto extends the playlist in this case (not when using the media playlist decode methods) but doubling its size each time. In no other cases are playlists extendable.
Set winsize 0 on VoD/EVENT playlist when decoding without media playlist
25316cc addresses #53, related to the previously mention commit 78a4147, this also changes the winsize from 8 to 0 for VoD and EVENT playlists to display in full.