Documentation
¶
Index ¶
- Constants
- Variables
- func Handler(h *avutil.RegisterHandler)
- func ParseURL(uri string) (u *url.URL, err error)
- func SplitPath(u *url.URL) (app, stream string)
- type Conn
- func (conn *Conn) Close() (err error)
- func (conn *Conn) GetMetaData() flvio.AMFMap
- func (conn *Conn) LocalAddr() net.Addr
- func (conn *Conn) NetConn() net.Conn
- func (conn *Conn) Prepare() (err error)
- func (conn *Conn) ReadPacket() (pkt av.Packet, err error)
- func (conn *Conn) RemoteAddr() net.Addr
- func (conn *Conn) RxBytes() uint64
- func (conn *Conn) SetIdleTimeout(d time.Duration) error
- func (conn *Conn) SetMetaData(data flvio.AMFMap)
- func (conn *Conn) SetReadIdleTimeout(d time.Duration) error
- func (conn *Conn) SetWriteIdleTimeout(d time.Duration) error
- func (conn *Conn) Streams() (streams []av.CodecData, err error)
- func (conn *Conn) TxBytes() uint64
- func (conn *Conn) WriteHeader(streams []av.CodecData) (err error)
- func (conn *Conn) WritePacket(pkt av.Packet) (err error)
- func (conn *Conn) WriteTrailer() (err error)
- type DialOptions
- type Server
- func (s *Server) Close()
- func (s *Server) HandleNetConn(netconn net.Conn) (err error)
- func (s *Server) ListenAndServe() error
- func (s *Server) ListenAndServeTLS(certFile, keyFile string) error
- func (s *Server) Serve(listener net.Listener) error
- func (s *Server) ServeTLS(listener net.Listener, certFile, keyFile string) error
Constants ¶
View Source
const FlvTimestampMax = 0xFFFFFF
Variables ¶
View Source
var CodecTypes = flv.CodecTypes
View Source
var Debug bool
View Source
var ErrServerClosed = errors.New("server closed")
Functions ¶
func Handler ¶
func Handler(h *avutil.RegisterHandler)
Types ¶
type Conn ¶
type Conn struct {
URL *url.URL
OnPlayOrPublish func(string, flvio.AMFMap) error
// contains filtered or unexported fields
}
func DialTimeout ¶
func (*Conn) GetMetaData ¶
func (*Conn) RemoteAddr ¶
func (*Conn) SetMetaData ¶
func (*Conn) WriteTrailer ¶
type DialOptions ¶
type Server ¶
type Server struct {
Addr string
TLSConfig *tls.Config
HandlePublish func(*Conn)
HandlePlay func(*Conn)
HandleConn func(*Conn)
MaxProbePacketCount int
SkipInvalidMessages bool
DebugChunks func(conn net.Conn) bool
ConnectionIdleTimeout time.Duration
// contains filtered or unexported fields
}
func (*Server) ListenAndServe ¶
func (*Server) ListenAndServeTLS ¶
Click to show internal directories.
Click to hide internal directories.