This commit is contained in:
aler9 2021-07-31 18:25:47 +02:00
parent 9819ae43e8
commit 5ab989250d
4 changed files with 5 additions and 17 deletions

View file

@ -107,7 +107,7 @@ type hlsRemuxer struct {
ctx context.Context
ctxCancel func()
path readPublisherPath
path *path
ringBuffer *ringbuffer.RingBuffer
lastRequestTime *int64
muxer *hls.Muxer

View file

@ -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
}

View file

@ -68,7 +68,7 @@ type rtmpConn struct {
ctx context.Context
ctxCancel func()
path readPublisherPath
path *path
ringBuffer *ringbuffer.RingBuffer // read
}

View file

@ -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
}