split readPublisher into reader and publisher

This commit is contained in:
aler9
2021-07-31 20:46:06 +02:00
parent 1a7f26ce29
commit eee64a1450
12 changed files with 579 additions and 574 deletions

View File

@@ -1,26 +1,13 @@
package core
import (
"github.com/aler9/gortsplib"
)
// source is an entity that can provide a stream, statically or dynamically.
type source interface {
IsSource()
}
type sourceExternal interface {
IsSource()
IsSourceExternal()
// sourceStatic is an entity that can provide a static stream.
type sourceStatic interface {
source
IsSourceStatic()
Close()
}
type sourceExtSetReadyRes struct{}
type sourceExtSetReadyReq struct {
Tracks gortsplib.Tracks
Res chan sourceExtSetReadyRes
}
type sourceExtSetNotReadyReq struct {
Res chan struct{}
}