mirror of
https://github.com/bluenviron/mediamtx
synced 2025-02-24 15:46:55 +00:00
parent
37514ee850
commit
6ea299fc56
@ -820,10 +820,7 @@ func (c *rtmpConn) runPublish(ctx context.Context, u *url.URL) error {
|
||||
|
||||
// apiReaderDescribe implements reader.
|
||||
func (c *rtmpConn) apiReaderDescribe() interface{} {
|
||||
return struct {
|
||||
Type string `json:"type"`
|
||||
ID string `json:"id"`
|
||||
}{"rtmpConn", c.uuid.String()}
|
||||
return c.apiSourceDescribe()
|
||||
}
|
||||
|
||||
// apiSourceDescribe implements source.
|
||||
|
@ -432,17 +432,7 @@ func (s *rtspSession) onPause(ctx *gortsplib.ServerHandlerOnPauseCtx) (*base.Res
|
||||
|
||||
// apiReaderDescribe implements reader.
|
||||
func (s *rtspSession) apiReaderDescribe() interface{} {
|
||||
var typ string
|
||||
if s.isTLS {
|
||||
typ = "rtspsSession"
|
||||
} else {
|
||||
typ = "rtspSession"
|
||||
}
|
||||
|
||||
return struct {
|
||||
Type string `json:"type"`
|
||||
ID string `json:"id"`
|
||||
}{typ, s.uuid.String()}
|
||||
return s.apiSourceDescribe()
|
||||
}
|
||||
|
||||
// apiSourceDescribe implements source.
|
||||
|
Loading…
Reference in New Issue
Block a user