Documentation ¶
Index ¶
- Variables
- type Demuxer
- type FlvTagBody
- func (tag *FlvTagBody) AACPacketType() uint8
- func (tag *FlvTagBody) CodecID() uint8
- func (tag *FlvTagBody) CompositionTime() int32
- func (tag *FlvTagBody) IsKeyFrame() bool
- func (tag *FlvTagBody) IsSeq() bool
- func (tag *FlvTagBody) ParseMediaTagHeader(b []byte, isVideo bool) (n int, err error)
- func (tag *FlvTagBody) SoundFormat() uint8
- type FlvTagHeader
- type Reader
- type ReaderConf
- type Writer
- type WriterConf
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FlvHeader = []byte{0x46, 0x4c, 0x56, 0x01, 0x05, 0x00, 0x00, 0x00, 0x09} FlvFirstPreTagSize = []byte{0x00, 0x00, 0x00, 0x00} FlvFirstHeader = append(FlvHeader, FlvFirstPreTagSize...) )
View Source
var (
ErrAvcEndSEQ = fmt.Errorf("avc end sequence")
)
View Source
var ErrHeader = errors.New("read flv header error")
View Source
var ErrInvalidAudioData = fmt.Errorf("invalid audio data")
View Source
var ErrInvalidVideoData = fmt.Errorf("invalid video data")
View Source
var ErrPreDataLen = errors.New("read flv pre data len error")
Functions ¶
This section is empty.
Types ¶
type FlvTagBody ¶
type FlvTagBody struct {
// contains filtered or unexported fields
}
func (*FlvTagBody) AACPacketType ¶
func (tag *FlvTagBody) AACPacketType() uint8
func (*FlvTagBody) CodecID ¶
func (tag *FlvTagBody) CodecID() uint8
func (*FlvTagBody) CompositionTime ¶
func (tag *FlvTagBody) CompositionTime() int32
func (*FlvTagBody) IsKeyFrame ¶
func (tag *FlvTagBody) IsKeyFrame() bool
func (*FlvTagBody) IsSeq ¶
func (tag *FlvTagBody) IsSeq() bool
func (*FlvTagBody) ParseMediaTagHeader ¶
func (tag *FlvTagBody) ParseMediaTagHeader(b []byte, isVideo bool) (n int, err error)
ParseMediaTagHeader, parse video, audio, tag header
func (*FlvTagBody) SoundFormat ¶
func (tag *FlvTagBody) SoundFormat() uint8
type FlvTagHeader ¶
type Reader ¶
type Reader struct { FlvTagHeader FlvTagHeader // contains filtered or unexported fields }
type ReaderConf ¶
type ReaderConf func(*Reader)
func WithReaderBuffer ¶
func WithReaderBuffer(size int) ReaderConf
type WriterConf ¶
type WriterConf func(*Writer)
func WithWriterBuffer ¶
func WithWriterBuffer(size int) WriterConf
Click to show internal directories.
Click to hide internal directories.