Versions in this module Expand all Collapse all v0 v0.0.4 Jan 6, 2023 Changes in this version + var DefaultHandlers = &Handlers + 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 struct + func (self *HandlerDemuxer) Close() error + type HandlerMuxer struct + func (self *HandlerMuxer) Close() (err error) + func (self *HandlerMuxer) WriteHeader(streams []av.CodecData) (err error) + func (self *HandlerMuxer) WriteTrailer() (err error) + type Handlers struct + func (self *Handlers) Add(fn func(*RegisterHandler)) + func (self *Handlers) Create(uri string) (muxer av.MuxCloser, err error) + func (self *Handlers) FindCreate(uri string) (handler RegisterHandler, muxer av.MuxCloser, err error) + func (self *Handlers) NewAudioDecoder(codec av.AudioCodecData) (dec av.AudioDecoder, err error) + func (self *Handlers) NewAudioEncoder(typ av.CodecType) (enc av.AudioEncoder, err error) + func (self *Handlers) Open(uri string) (demuxer av.DemuxCloser, err error) + type RegisterHandler struct + AudioDecoder func(av.AudioCodecData) (av.AudioDecoder, error) + AudioEncoder func(av.CodecType) (av.AudioEncoder, error) + CodecTypes []av.CodecType + Ext string + Probe func([]byte) bool + ReaderDemuxer func(io.Reader) av.Demuxer + ServerDemuxer func(string) (bool, av.DemuxCloser, error) + ServerMuxer func(string) (bool, av.MuxCloser, error) + UrlDemuxer func(string) (bool, av.DemuxCloser, error) + UrlMuxer func(string) (bool, av.MuxCloser, error) + UrlReader func(string) (bool, io.ReadCloser, error) + WriterMuxer func(io.Writer) av.Muxer