mediamtx/internal/core/reader.go
2023-10-14 22:52:10 +02:00

16 lines
380 B
Go

package core
import (
"github.com/bluenviron/mediamtx/internal/asyncwriter"
"github.com/bluenviron/mediamtx/internal/stream"
)
// reader is an entity that can read a stream.
type reader interface {
close()
apiReaderDescribe() apiPathSourceOrReader
}
func readerMediaInfo(r *asyncwriter.Writer, stream *stream.Stream) string {
return mediaInfo(stream.MediasForReader(r))
}