Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Add support for EXT-X-MAP and EXT-X-BYTERANGE #52

Merged
merged 3 commits into from
Oct 20, 2017

Conversation

carlanton
Copy link
Contributor

Fixes some of the byte range issues discussed in #47 + support for EXT-X-MAP.


public class ByteRange {
private final long mSubRangeLength;
private final Long mOffset;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use a primitive, see IFrameStreamInfo.getAverageBandwidth as an example.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, there is no null case for the offset. I'll refer to my comment here:

#47 (comment)

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Though I don't think it makes a functional difference, the other data classes have been using instanceof for the type check.

@Wopple
Copy link
Contributor

Wopple commented Oct 9, 2017

All in all, nice work! The offset is a little nuanced and difficult to handle, but once that gets updated this should be good to merge.

@sunglee413 sunglee413 merged commit 0c3d465 into iheartradio:master Oct 20, 2017
@yngwietiger
Copy link

yngwietiger commented Oct 24, 2018

When will this be released? I see that last release was 0.2.6 (Jan 2017). Thanks.

Or should I switch to the carlanton/m3u8-parser?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants