untangledco / streaming

Media streaming and broadcast systems in Go
https://twitch.tv/untangledco
ISC License
82 stars 5 forks source link

m3u8: split source files by m3u8 structure; master, media #17

Closed ollytom closed 2 months ago

ollytom commented 2 months ago

There's two distinct categories of playlists that we deal with: master and media playlists. Having that be obvious in the code by having them as separate files would be clearer than what we've got now. Every time I work on something, I'm working on either master or media, but I always get lost when I try to find what I'm looking for.

2 files: master.go and m3u8.go. Types Rendition, Variant, SessionData, Key put into master.go. Common types stay in m3u8.go.