配合修改等待关键帧逻辑

This commit is contained in:
langhuihui
2021-02-10 22:30:46 +08:00
parent e6df0a20c0
commit 1069b4c097
3 changed files with 17 additions and 3 deletions

View File

@@ -293,7 +293,7 @@ func run() {
pli := "42001f"
if stream := engine.FindStream(streamPath); stream != nil {
<-stream.WaitPub
<-stream.VideoTracks[0].WaitFirst
pli = fmt.Sprintf("%x", stream.VideoTracks[0].SPS[1:4])
}
if !strings.Contains(offer.SDP, pli) {