Manual negotiation and plan-b support

This commit is contained in:
David Zhao
2021-04-16 00:56:25 -07:00
parent 04f6b61ae1
commit 93d10b2640
16 changed files with 231 additions and 64 deletions
+3 -3
View File
@@ -6,13 +6,13 @@ import (
"github.com/stretchr/testify/assert"
)
func TestPackTrackId(t *testing.T) {
func TestPackStreamId(t *testing.T) {
packed := "PA_123abc|uuid-id"
pId, trackId := UnpackTrackId(packed)
pId, trackId := UnpackStreamID(packed)
assert.Equal(t, "PA_123abc", pId)
assert.Equal(t, "uuid-id", trackId)
assert.Equal(t, packed, PackTrackId(pId, trackId))
assert.Equal(t, packed, PackStreamID(pId, trackId))
}
func TestPackDataTrackLabel(t *testing.T) {