Documentation ¶
Index ¶
Constants ¶
View Source
const (
PAGE_HEAD_LENGTH = 282
)
Variables ¶
View Source
var (
CapturePattern [4]byte = [4]byte{'O', 'g', 'g', 'S'}
)
Functions ¶
Types ¶
type AudioParam ¶
type DemuxState ¶
type DemuxState int
const ( DEMUX_PAGE_HEAD DemuxState = iota DEMUX_PAGE_PAYLOAD )
type Demuxer ¶
type Demuxer struct { OnPage func(page *oggPage) OnPacket func(streamId uint32, granule uint64, packet []byte, lost int) OnFrame func(streamId uint32, cid codec.CodecID, frame []byte, pts uint64, dts uint64, lost int) // contains filtered or unexported fields }
func NewDemuxer ¶
func NewDemuxer() *Demuxer
func (*Demuxer) GetAudioParam ¶
func (demuxer *Demuxer) GetAudioParam() *AudioParam
func (*Demuxer) GetVideoParam ¶
func (demuxer *Demuxer) GetVideoParam() *VideoParam
Click to show internal directories.
Click to hide internal directories.