Documentation ¶
Index ¶
- Constants
- Variables
- func GetSupportCodec() []rawmedia.DataType
- 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 (selfConn *Conn) Close() (err error)
- func (selfConn *Conn) NetConn() net.Conn
- func (selfConn *Conn) Prepare() (err error)
- func (selfConn *Conn) ReadPacket() (pkt av.Packet, err error)
- func (selfConn *Conn) RxBytes() uint64
- func (selfConn *Conn) Streams() (streams []av.CodecData, err error)
- func (selfConn *Conn) TxBytes() uint64
- func (selfConn *Conn) WriteHeader(streams []av.CodecData) (err error)
- func (selfConn *Conn) WritePacket(pkt av.Packet) (err error)
- func (selfConn *Conn) WriteStreamsHeader(streams []*rawmedia.Stream) (err error)
- func (selfConn *Conn) WriteTrailer() (err error)
- type EventCode
- type RtmpClient
- func (rc *RtmpClient) Close()
- func (rc *RtmpClient) Init(url string, streams []*rawmedia.Stream, OnEvent func(eCode EventCode)) error
- func (rc *RtmpClient) Sendpacket(pkt av.Packet) (err error)
- func (rc *RtmpClient) Serve()
- func (rc *RtmpClient) SetMediaDir(mediaDir rawmedia.MediaDir)
- func (rc *RtmpClient) StartPublish()
- func (rc *RtmpClient) StopPublish()
- func (rc *RtmpClient) WritePacket(packet rawmedia.Packet) error
- type Server
Constants ¶
View Source
const FlvTimestampMax = 0xFFFFFF
Variables ¶
View Source
var CodecTypes = flv.CodecTypes
View Source
var Debug bool
Functions ¶
func GetSupportCodec ¶
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 (*Conn) WriteStreamsHeader ¶
func (*Conn) WriteTrailer ¶
type RtmpClient ¶
type RtmpClient struct {
// contains filtered or unexported fields
}
func NewRtmpClient ¶
func NewRtmpClient() *RtmpClient
func (*RtmpClient) Close ¶
func (rc *RtmpClient) Close()
func (*RtmpClient) Sendpacket ¶
func (rc *RtmpClient) Sendpacket(pkt av.Packet) (err error)
func (*RtmpClient) Serve ¶
func (rc *RtmpClient) Serve()
func (*RtmpClient) SetMediaDir ¶
func (rc *RtmpClient) SetMediaDir(mediaDir rawmedia.MediaDir)
func (*RtmpClient) WritePacket ¶
func (rc *RtmpClient) WritePacket(packet rawmedia.Packet) error
Click to show internal directories.
Click to hide internal directories.