untangledco / streaming

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

m3u8: support writing SessionData to m3u8 format #8

Closed ollytom closed 3 months ago

ollytom commented 3 months ago

Our struct SessionData is just skipped in Encode(). At a high level what we need is to have a SessionData like:

v := SessionData{
    ID: "1234",
    Value: "5678",
    URI: "hello/hi.json",
    Language: "indonesian",
}

to be represented as a string like this:

#EXT-X-SESSION-DATA:DATA-ID="1234",VALUE="5678",URI="hello/hi.json",LANGUAGE="indonesian"