mpeg

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element struct {
	R      io.ReadSeeker
	N      int64
	Offset int64
	Id     string

	Version int32
	Flags   int32
	// contains filtered or unexported fields
}

func (*Element) Next

func (e *Element) Next() (*Element, error)

func (*Element) ParseFlags

func (e *Element) ParseFlags() error

func (*Element) Skip

func (e *Element) Skip() error

type FragmentedTrack

type FragmentedTrack struct {
	Track
}

type Parser

type Parser struct {
	*Element
	// contains filtered or unexported fields
}

func New

func New(rs io.ReadSeeker, length int64) *Parser

Creates a new Parser

func (*Parser) Parse

func (p *Parser) Parse() (core.Playable, error)

Returns a playable, will also implement playseekable if possible

type StandardTrack

type StandardTrack struct {
	Track
}

type Track

type Track struct {
	Tracks   []TrackEntry
	Root     *Element
	Metadata map[string]interface{}
}

func (Track) Chan

func (t Track) Chan() <-chan core.Packet

func (Track) Close

func (t Track) Close() error

func (Track) Pause

func (t Track) Pause(bool)

func (Track) Play

func (t Track) Play()

type TrackEntry

type TrackEntry struct {
	Id      uint32
	Handler string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL