mediamtx/internal/core/reader.go
Alessandro Ros 0943b269ab
Decode streams once and only when needed (#1218)
* split data into specialized structs

* move MPEG4-audio decoding into streamTrack

* restore video/audio synchronization in HLS muxer and RTMP server

* log decode errors

* move H264 decoding and re-encoding here from gortsplib

* add tests

* update gortsplib
2022-11-02 20:52:12 +01:00

9 lines
149 B
Go

package core
// reader is an entity that can read a stream.
type reader interface {
close()
onReaderData(data)
apiReaderDescribe() interface{}
}