diff --git a/track.go b/track.go new file mode 100644 index 0000000..e4bb9b9 --- /dev/null +++ b/track.go @@ -0,0 +1,27 @@ + +package mp4 + +import ( + "github.com/nareix/mp4/atom" + "io" +) + +const ( + H264 = 1 + AAC = 2 +) + +type Track struct { + Type int + SPS []byte + PPS []byte + TrackAtom *atom.Track + r io.ReadSeeker + + sample *atom.SampleTable + sampleIndex int + chunkGroupIndex int + chunkIndex int + sampleIndexInChunk int +} +