修复内置鉴权,音频轨道因IDR锁环并发问题,增加Internal配置,mp4重放能力

This commit is contained in:
langhuihui
2023-04-29 21:57:40 +08:00
parent 2eea5c3706
commit da92a2238f
12 changed files with 50 additions and 35 deletions

View File

@@ -115,7 +115,6 @@ type TrackPlayer struct {
// Subscriber 订阅者实体定义
type Subscriber struct {
IO
IsInternal bool //是否内部订阅,不放入订阅列表
Config *config.Subscribe
TrackPlayer `json:"-" yaml:"-"`
}
@@ -384,7 +383,7 @@ func (s *Subscriber) PlayBlock(subType byte) {
func (s *Subscriber) onStop() {
if !s.Stream.IsClosed() {
s.Info("stop")
if !s.IsInternal {
if !s.Config.Internal {
s.Stream.Receive(s.Spesific)
}
}