mediamtx/internal/playback/mp4/sample.go
Alessandro Ros 4157f490fa
playback: support serving streams in standard MP4 format (#3213)
* playback: support serving streams in standard MP4 format

* sort samples by DTS

* update readme
2024-04-14 19:29:29 +02:00

12 lines
244 B
Go

package mp4
// Sample is a sample of a Track.
type Sample struct {
Duration uint32
PTSOffset int32
IsNonSyncSample bool
PayloadSize uint32
GetPayload func() ([]byte, error)
offset uint32 // filled by sortSamples
}