mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-26 04:52:00 -08:00
cleanup
This commit is contained in:
parent
9819ae43e8
commit
5ab989250d
4 changed files with 5 additions and 17 deletions
|
|
@ -107,7 +107,7 @@ type hlsRemuxer struct {
|
|||
|
||||
ctx context.Context
|
||||
ctxCancel func()
|
||||
path readPublisherPath
|
||||
path *path
|
||||
ringBuffer *ringbuffer.RingBuffer
|
||||
lastRequestTime *int64
|
||||
muxer *hls.Muxer
|
||||
|
|
|
|||
|
|
@ -7,20 +7,8 @@ import (
|
|||
"github.com/aler9/gortsplib"
|
||||
"github.com/aler9/gortsplib/pkg/base"
|
||||
"github.com/aler9/gortsplib/pkg/headers"
|
||||
|
||||
"github.com/aler9/rtsp-simple-server/internal/conf"
|
||||
)
|
||||
|
||||
type readPublisherPath interface {
|
||||
Name() string
|
||||
Conf() *conf.PathConf
|
||||
OnReadPublisherRemove(readPublisherRemoveReq)
|
||||
OnReadPublisherPlay(readPublisherPlayReq)
|
||||
OnReadPublisherRecord(readPublisherRecordReq) readPublisherRecordRes
|
||||
OnReadPublisherPause(readPublisherPauseReq)
|
||||
OnSourceFrame(int, gortsplib.StreamType, []byte)
|
||||
}
|
||||
|
||||
type readPublisherErrNoOnePublishing struct {
|
||||
PathName string
|
||||
}
|
||||
|
|
@ -73,7 +61,7 @@ type readPublisherDescribeReq struct {
|
|||
}
|
||||
|
||||
type readPublisherSetupPlayRes struct {
|
||||
Path readPublisherPath
|
||||
Path *path
|
||||
Stream *gortsplib.ServerStream
|
||||
Err error
|
||||
}
|
||||
|
|
@ -87,7 +75,7 @@ type readPublisherSetupPlayReq struct {
|
|||
}
|
||||
|
||||
type readPublisherAnnounceRes struct {
|
||||
Path readPublisherPath
|
||||
Path *path
|
||||
Err error
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ type rtmpConn struct {
|
|||
|
||||
ctx context.Context
|
||||
ctxCancel func()
|
||||
path readPublisherPath
|
||||
path *path
|
||||
ringBuffer *ringbuffer.RingBuffer // read
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ type rtspSession struct {
|
|||
pathManager *pathManager
|
||||
parent rtspSessionParent
|
||||
|
||||
path readPublisherPath
|
||||
path *path
|
||||
setuppedTracks map[int]*gortsplib.Track // read
|
||||
onReadCmd *externalcmd.Cmd // read
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue