新增获取所有插件信息的API接口

This commit is contained in:
dexter
2022-06-07 19:12:02 +08:00
parent 8f86407c94
commit 86ca05b24c
6 changed files with 45 additions and 18 deletions

View File

@@ -260,7 +260,9 @@ func (s *Subscriber) PlayBlock() {
if vp.IFrame && s.Video.decConfChanged() {
s.sendVideoDecConf()
}
spesic.OnEvent(vp)
if !s.Config.IFrameOnly || vp.IFrame {
spesic.OnEvent(vp)
}
s.Video.ring.MoveNext()
} else {
if s.Video.Track.IDRing.Value.Sequence != s.Video.First.Sequence {
@@ -273,7 +275,9 @@ func (s *Subscriber) PlayBlock() {
if ctx.Err() != nil {
return
}
spesic.OnEvent(vp)
if !s.Config.IFrameOnly || vp.IFrame {
spesic.OnEvent(vp)
}
if fast := time.Duration(vp.AbsTime-s.Video.First.AbsTime)*time.Millisecond - time.Since(startTime); fast > 0 {
time.Sleep(fast)
}