1
0
Fork 0
forked from External/mediamtx

add additional environment variables to custom commands (#1414) (#2356)

new variables: MTX_CONN_TYPE, MTX_CONN_ID, MTX_SOURCE_TYPE, MTX_SOURCE_ID, MTX_READER_TYPE, MTX_READ_ID
This commit is contained in:
Alessandro Ros 2023-09-16 21:41:49 +02:00 committed by GitHub
parent ed77560811
commit 64d9060560
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 359 additions and 162 deletions

View file

@ -312,8 +312,8 @@ func (s *udpSource) runReader(pc net.PacketConn) error {
}
// apiSourceDescribe implements sourceStaticImpl.
func (*udpSource) apiSourceDescribe() pathAPISourceOrReader {
return pathAPISourceOrReader{
func (*udpSource) apiSourceDescribe() apiPathSourceOrReader {
return apiPathSourceOrReader{
Type: "udpSource",
ID: "",
}