support KLV tracks (#808)

Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
This commit is contained in:
Yaroslav Molochko
2025-07-06 20:56:52 +03:00
committed by GitHub
parent ff94dc956b
commit e02c447868
17 changed files with 705 additions and 0 deletions

17
pkg/format/klv_test.go Normal file
View File

@@ -0,0 +1,17 @@
package format
import (
"testing"
"github.com/pion/rtp"
"github.com/stretchr/testify/require"
)
func TestKLVAttributes(t *testing.T) {
format := &KLV{
PayloadTyp: 96,
}
require.Equal(t, "KLV", format.Codec())
require.Equal(t, 90000, format.ClockRate())
require.Equal(t, true, format.PTSEqualsDTS(&rtp.Packet{}))
}