mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-25 12:32:01 -08:00
hls: move constants into right file
This commit is contained in:
parent
e2f33a7495
commit
06cffc44df
2 changed files with 7 additions and 7 deletions
|
|
@ -7,13 +7,6 @@ import (
|
|||
"github.com/aler9/gortsplib"
|
||||
)
|
||||
|
||||
const (
|
||||
// an offset between PCR and PTS/DTS is needed to avoid PCR > PTS
|
||||
pcrOffset = 500 * time.Millisecond
|
||||
|
||||
segmentMinAUCount = 100
|
||||
)
|
||||
|
||||
// Muxer is a HLS muxer.
|
||||
type Muxer struct {
|
||||
primaryPlaylist *muxerPrimaryPlaylist
|
||||
|
|
|
|||
|
|
@ -11,6 +11,13 @@ import (
|
|||
"github.com/aler9/rtsp-simple-server/internal/h264"
|
||||
)
|
||||
|
||||
const (
|
||||
// an offset between PCR and PTS/DTS is needed to avoid PCR > PTS
|
||||
pcrOffset = 500 * time.Millisecond
|
||||
|
||||
segmentMinAUCount = 100
|
||||
)
|
||||
|
||||
type muxerTSGenerator struct {
|
||||
hlsSegmentCount int
|
||||
hlsSegmentDuration time.Duration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue