simplifing logic to enable fragment_duration_ms on configuration to be under thousands (but not below hundreds)

pull/270/head
joaop 2 years ago
parent e9ab1a6d7c
commit 306a4c878f

@ -157,7 +157,7 @@ func NewGroup(appName string, streamName string, config *Config, observer IGroup
httpflvGopCache: remux.NewGopCache("httpflv", uk, config.HttpflvConfig.GopNum, config.HttpflvConfig.SingleGopMaxFrameNum),
httptsGopCache: remux.NewGopCacheMpegts(uk, config.HttptsConfig.GopNum, config.HttptsConfig.SingleGopMaxFrameNum),
psPubPrevInactiveCheckTick: -1,
hlsCalcSessionStatIntervalSec: uint32(config.HlsConfig.FragmentDurationMs/1000) * 10,
hlsCalcSessionStatIntervalSec: uint32(config.HlsConfig.FragmentDurationMs/100),
}
g.initRelayPushByConfig()

Loading…
Cancel
Save