mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-25 04:22:00 -08:00
16 lines
380 B
Go
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))
|
|
}
|