mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-28 14:02:02 -08:00
* playback: support serving streams in standard MP4 format * sort samples by DTS * update readme
12 lines
244 B
Go
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
|
|
}
|