mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-12 01:35:02 +00:00
4157f490fa
* playback: support serving streams in standard MP4 format * sort samples by DTS * update readme
18 lines
334 B
Go
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
|
|
}
|