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

How to understand func NewMediaPlaylist(winsize uint, capacity uint) (*MediaPlaylist, error) correctly? #219

Open
http600 opened this issue Oct 30, 2024 · 0 comments

Comments

@http600
Copy link

http600 commented Oct 30, 2024

When I check the m3u8 file

#EXTM3U
#EXT-X-VERSION:4
#EXT-X-PLAYLIST-TYPE:EVENT
#EXT-X-ALLOW-CACHE:NO
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-TARGETDURATION:1
#EXT-X-PROGRAM-DATE-TIME:2023-05-21T12:40:52.518Z
#EXTINF:1.000
c508d7dc32bf0a1277f0f9a69672848b95e72a3498c5edcb289b9d82f479c626_00000.ts
#EXT-X-PROGRAM-DATE-TIME:2023-05-21T12:40:53.518Z
#EXTINF:1.000
c508d7dc32bf0a1277f0f9a69672848b95e72a3498c5edcb289b9d82f479c626_00001.ts
#EXT-X-PROGRAM-DATE-TIME:2023-05-21T12:40:54.518Z
#EXTINF:1.000
c508d7dc32bf0a1277f0f9a69672848b95e72a3498c5edcb289b9d82f479c626_00002.ts
#EXT-X-PROGRAM-DATE-TIME:2023-05-21T12:40:55.518Z
...

I would like to take the first three Segments into []*m3u8.MediaSegment, then build a new MediaPlayList out of it, there are no such things like winsize, capacity, how am I supposed to assign the value?

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

No branches or pull requests

1 participant