Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
453 B

package hls
import (
"time"
)
// MuxerVariant is a muxer variant.
type MuxerVariant int
// supported variants.
const (
MuxerVariantMPEGTS MuxerVariant = iota
MuxerVariantFMP4
MuxerVariantLowLatency
)
type muxerVariant interface {
close()
writeH264(ntp time.Time, pts time.Duration, nalus [][]byte) error
writeAAC(ntp time.Time, pts time.Duration, au []byte) error
file(name string, msn string, part string, skip string) *MuxerFileResponse
}