mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-27 09:40:27 +08:00
api: fix type of RTMPS readers (#1784)
Some checks failed
apidocs
code
mod-tidy
test32
test64
test_highlevel
Some checks failed
apidocs
code
mod-tidy
test32
test64
test_highlevel
it was wrongly set to RTMP.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user