untangledco / streaming

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

scte35: support decoding splice_schedule command type #28

Open ollytom opened 1 month ago

ollytom commented 1 month ago

We support encoding splice_schedule commands (see packEvents), but we don't support decoding them yet. For consistency, we could have two functions, unpackEvent and unpackEvents in command.go after packEvent.

We'll need accompanying tests in command_test.go. For example, a test could encode then decode the same splice_schedule command then test equality of the returned []Event.