Versions in this module Expand all Collapse all v0 v0.1.0 May 11, 2020 Changes in this version + const AAC_RAW + const AAC_SEQHDR + const AVC_EOS + const AVC_NALU + const AVC_SEQHDR + const FRAME_INTER + const FRAME_KEY + const MetadatAMF0 + const MetadataAMF3 + const SOUND_11Khz + const SOUND_16BIT + const SOUND_22Khz + const SOUND_44Khz + const SOUND_5_5Khz + const SOUND_8BIT + const SOUND_AAC + const SOUND_ALAW + const SOUND_MONO + const SOUND_MP3 + const SOUND_MULAW + const SOUND_NELLYMOSER + const SOUND_NELLYMOSER_16KHZ_MONO + const SOUND_NELLYMOSER_8KHZ_MONO + const SOUND_SPEEX + const SOUND_STEREO + const TAG_AUDIO + const TAG_SCRIPTDATAAMF0 + const TAG_SCRIPTDATAAMF3 + const TAG_VIDEO + const VIDEO_H264 + var PLAY = "play" + var PUBLISH = "publish" + type Alive interface + Alive func() bool + type AudioPacketHeader interface + AACPacketType func() uint8 + SoundFormat func() uint8 + type CalcTime interface + CalcBaseTimestamp func() + type Closer interface + Close func(error) + Info func() Info + type CodecParser interface + Parse func(*Packet, io.Writer) error + type Demuxer interface + Demux func(*Packet) (ret *Packet, err error) + type GetWriter interface + GetWriter func(Info) WriteCloser + type Handler interface + HandleReader func(ReadCloser) + HandleWriter func(WriteCloser) + type Info struct + Inter bool + Key string + UID string + URL string + func (info Info) IsInterval() bool + func (info Info) String() string + type Muxer interface + Mux func(*Packet, io.Writer) error + type Packet struct + Data []byte + Header PacketHeader + IsAudio bool + IsMetadata bool + IsVideo bool + StreamID uint32 + TimeStamp uint32 + type PacketHeader interface + type RWBaser struct + BaseTimestamp uint32 + LastAudioTimestamp uint32 + LastVideoTimestamp uint32 + PreTime time.Time + func NewRWBaser(duration time.Duration) RWBaser + func (rw *RWBaser) Alive() bool + func (rw *RWBaser) BaseTimeStamp() uint32 + func (rw *RWBaser) CalcBaseTimestamp() + func (rw *RWBaser) RecTimeStamp(timestamp, typeID uint32) + func (rw *RWBaser) SetPreTime() + type ReadCloser interface + Read func(*Packet) error + type SampleRater interface + SampleRate func() (int, error) + type VideoPacketHeader interface + CodecID func() uint8 + CompositionTime func() int32 + IsKeyFrame func() bool + IsSeq func() bool + type WriteCloser interface + Write func(*Packet) error