支持rtmp拉流

This commit is contained in:
yangjiechina
2023-11-27 16:57:04 +08:00
parent 8485f6c857
commit b88be46bb7
3 changed files with 52 additions and 19 deletions

View File

@@ -82,6 +82,10 @@ func (r *ringBuffer) Size() int {
}
func (r *ringBuffer) All() ([]interface{}, []interface{}) {
if r.size == 0 {
return nil, nil
}
if r.head < r.tail {
return r.data[r.head:], r.data[:r.tail]
} else {