Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLS changes #20

Merged
merged 2 commits into from May 1, 2017
Merged

HLS changes #20

merged 2 commits into from May 1, 2017

Conversation

ericxtang
Copy link
Member

This change is related to how HLS is treated in LPMS.

  • We add a buffer cap limit, so it doesn't just keep adding HLS segments
  • HLSBuffers can now generate playlists from its segments
  • Add methods to synchronously read HLS from a VideoStream

@ericxtang ericxtang requested a review from dob May 1, 2017 04:29
Copy link
Member

@dob dob left a comment

Choose a reason for hiding this comment

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

Nice work. Do you want to remove the lpms binary file from the repo? (https://help.github.com/articles/removing-files-from-a-repository-s-history/)

}

func NewHLSBuffer() *HLSBuffer {
Copy link
Member

Choose a reason for hiding this comment

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

Should we just leave this method and invoke the new method with a default capacity?

Copy link
Member Author

Choose a reason for hiding this comment

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

Golang doesn't have method overload, which makes things a little annoying to maintain (cannot just add a new param in the constructor without changing existing code). Not sure what's the best practice here. I can add a "NewHLSBufferWithCap", but maybe it's good to enforce the cap for this case (following the same pattern as grafov/m3u8).

@ericxtang
Copy link
Member Author

Also removed lpms binary

Copy link
Member

@dob dob left a comment

Choose a reason for hiding this comment

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

🚢

@ericxtang ericxtang merged commit bc57245 into master May 1, 2017
@ericxtang ericxtang deleted the hlsFix branch May 1, 2017 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants