golanggohlsrtmpwebrtcmedia-serverobs-studiortcprtmp-proxyrtmp-serverrtprtsprtsp-proxyrtsp-relayrtsp-serversrtstreamingwebrtc-proxy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
433 B
17 lines
433 B
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)) |
|
}
|
|
|