确保有SPS

This commit is contained in:
dexter
2021-01-18 22:14:39 +08:00
parent 8fe5b192db
commit 2f2c1ad1bd
3 changed files with 64 additions and 3 deletions

View File

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