Documentation ¶
Index ¶
- Variables
- type AuthFunc
- type Channel
- func (c *Channel) AddPlayer(w av.WriteCloser) error
- func (c *Channel) Close() error
- func (c *Channel) Closed() bool
- func (c *Channel) DelPlayer(w av.WriteCloser) error
- func (c *Channel) GenM3U8File(tsPath func(tsName string) (tsPath string)) ([]byte, error)
- func (c *Channel) GetPlayers() ([]av.WriteCloser, error)
- func (c *Channel) GetTsFile(tsName string) ([]byte, error)
- func (c *Channel) HlsPlayer() *hls.Source
- func (c *Channel) InPublication() bool
- func (c *Channel) InitHlsPlayer(conf ...hls.SourceConf) error
- func (c *Channel) InitdHlsPlayer() bool
- func (c *Channel) PushStart(pusher av.Reader) error
- type ChannelConf
- type Server
- type ServerConf
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPusherIsNil = errors.New("pusher is nil") ErrClosed = errors.New("channel closed") )
View Source
var (
ErrAppAlreadyExists = errors.New("app already exists")
)
View Source
var ErrAppNotFount = errors.New("app not found")
View Source
var ErrHlsPlayerNotInit = errors.New("hls player not init")
View Source
var ErrPusherAlreadyInPublication = errors.New("pusher already in publication")
View Source
var ErrPusherNotInPublication = errors.New("pusher not in publication")
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
func NewChannel ¶ added in v0.2.0
func NewChannel(conf ...ChannelConf) *Channel
func (*Channel) GenM3U8File ¶ added in v0.2.2
func (*Channel) GetPlayers ¶
func (c *Channel) GetPlayers() ([]av.WriteCloser, error)
func (*Channel) InPublication ¶
func (*Channel) InitHlsPlayer ¶
func (c *Channel) InitHlsPlayer(conf ...hls.SourceConf) error
func (*Channel) InitdHlsPlayer ¶
type ChannelConf ¶ added in v0.2.0
type ChannelConf func(*Channel)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewRtmpServer ¶
func NewRtmpServer(authFunc AuthFunc, c ...ServerConf) *Server
func (*Server) SetConnBufferSize ¶
type ServerConf ¶
type ServerConf func(*Server)
func WithConnBufferSize ¶
func WithConnBufferSize(bufferSize int32) ServerConf
Click to show internal directories.
Click to hide internal directories.