Browse Source

cleanup

pull/483/head
aler9 5 years ago
parent
commit
5ab989250d
  1. 2
      internal/core/hls_remuxer.go
  2. 16
      internal/core/read_publisher.go
  3. 2
      internal/core/rtmp_conn.go
  4. 2
      internal/core/rtsp_session.go

2
internal/core/hls_remuxer.go

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

16
internal/core/read_publisher.go

@ -7,20 +7,8 @@ import ( @@ -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 { @@ -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 { @@ -87,7 +75,7 @@ type readPublisherSetupPlayReq struct {
}
type readPublisherAnnounceRes struct {
Path readPublisherPath
Path *path
Err error
}

2
internal/core/rtmp_conn.go

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

2
internal/core/rtsp_session.go

@ -31,7 +31,7 @@ type rtspSession struct { @@ -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…
Cancel
Save