mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-14 10:45:08 +00:00
18 lines
433 B
Go
18 lines
433 B
Go
package core
|
|
|
|
import (
|
|
"github.com/bluenviron/mediamtx/internal/asyncwriter"
|
|
"github.com/bluenviron/mediamtx/internal/defs"
|
|
"github.com/bluenviron/mediamtx/internal/stream"
|
|
)
|
|
|
|
// reader is an entity that can read a stream.
|
|
type reader interface {
|
|
close()
|
|
apiReaderDescribe() defs.APIPathSourceOrReader
|
|
}
|
|
|
|
func readerMediaInfo(r *asyncwriter.Writer, stream *stream.Stream) string {
|
|
return mediaInfo(stream.MediasForReader(r))
|
|
}
|