Documentation ¶
Index ¶
- Variables
- func CopyFile(dst av.Muxer, src av.Demuxer) (err error)
- func CopyPackets(dst av.PacketWriter, src av.PacketReader) (err error)
- func Create(url string) (muxer av.MuxCloser, err error)
- func Open(url string) (demuxer av.DemuxCloser, err error)
- type HandlerDemuxer
- type HandlerMuxer
- type Handlers
- func (hndl *Handlers) Add(fn func(*RegisterHandler))
- func (hndl *Handlers) Create(uri string) (muxer av.MuxCloser, err error)
- func (hndl *Handlers) FindCreate(uri string) (handler RegisterHandler, muxer av.MuxCloser, err error)
- func (hndl *Handlers) NewAudioDecoderParam(codec av.AudioCodecData) (dec av.AudioDecoder, err error)
- func (hndl *Handlers) NewAudioEncoder(typ av.CodecType) (enc av.AudioEncoder, err error)
- func (hndl *Handlers) Open(uri string) (demuxer av.DemuxCloser, err error)
- type RegisterHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHandlers = &Handlers{}
DefaultHandlers default
Functions ¶
func CopyPackets ¶
func CopyPackets(dst av.PacketWriter, src av.PacketReader) (err error)
CopyPackets CopyPackets
Types ¶
type HandlerDemuxer ¶
HandlerDemuxer struct
type HandlerMuxer ¶
HandlerMuxer struct
func (*HandlerMuxer) WriteHeader ¶
func (hndl *HandlerMuxer) WriteHeader(streams []av.CodecData) (err error)
WriteHeader func
func (*HandlerMuxer) WriteTrailer ¶
func (hndl *HandlerMuxer) WriteTrailer() (err error)
WriteTrailer func
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
Handlers struct
func (*Handlers) FindCreate ¶
func (hndl *Handlers) FindCreate(uri string) (handler RegisterHandler, muxer av.MuxCloser, err error)
FindCreate FindCreate
func (*Handlers) NewAudioDecoderParam ¶
func (hndl *Handlers) NewAudioDecoderParam(codec av.AudioCodecData) (dec av.AudioDecoder, err error)
NewAudioDecoderParam NewAudioDecoderParam
func (*Handlers) NewAudioEncoder ¶
NewAudioEncoder NewAudioEncoder
type RegisterHandler ¶
type RegisterHandler struct { Ext string ReaderDemuxer func(io.Reader) av.Demuxer WriterMuxer func(io.Writer) av.Muxer URLMuxer func(string) (bool, av.MuxCloser, error) URLDemuxer func(string) (bool, av.DemuxCloser, error) URLReader func(string) (bool, io.ReadCloser, error) Probe func([]byte) bool AudioEncoder func(av.CodecType) (av.AudioEncoder, error) AudioDecoder func(av.AudioCodecData) (av.AudioDecoder, error) ServerDemuxer func(string) (bool, av.DemuxCloser, error) ServerMuxer func(string) (bool, av.MuxCloser, error) CodecTypes []av.CodecType }
RegisterHandler struct
Click to show internal directories.
Click to hide internal directories.