mediamtx/internal/playback/muxer.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

18 lines
334 B
Go

package playback
import "github.com/bluenviron/mediacommon/pkg/formats/fmp4"
type muxer interface {
writeInit(init *fmp4.Init)
setTrack(trackID int)
writeSample(
dts int64,
ptsOffset int32,
isNonSyncSample bool,
payloadSize uint32,
getPayload func() ([]byte, error),
) error
writeFinalDTS(dts int64)
flush() error
}