mirror of
https://github.com/Monibuca/plugin-rtmp.git
synced 2026-04-22 22:57:04 +08:00
fix: seqhead will reset timestamp
This commit is contained in:
@@ -23,7 +23,11 @@ func (av *AVSender) sendSequenceHead(seqHead []byte) {
|
|||||||
runtime.Gosched()
|
runtime.Gosched()
|
||||||
}
|
}
|
||||||
defer av.writing.Store(false)
|
defer av.writing.Store(false)
|
||||||
av.WriteTo(RTMP_CHUNK_HEAD_12, &av.chunkHeader)
|
if av.firstSent {
|
||||||
|
av.WriteTo(RTMP_CHUNK_HEAD_8, &av.chunkHeader)
|
||||||
|
} else {
|
||||||
|
av.WriteTo(RTMP_CHUNK_HEAD_12, &av.chunkHeader)
|
||||||
|
}
|
||||||
av.sendChunk(seqHead)
|
av.sendChunk(seqHead)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user