Separate out max layer setting (#201)

Small step on the way to making StreamAllocator prioritization of tracks.
With the new callback into StreamAllocator, the idea is to use the
max layer information to do track prioritization.

Testing:
--------
Sanity check that sample app works
This commit is contained in:
Raja Subramanian
2021-11-22 14:01:25 +05:30
committed by GitHub
parent d9219a2a67
commit 391e2f8b31
6 changed files with 108 additions and 70 deletions
+4 -4
View File
@@ -15,13 +15,13 @@ func redisClient() *redis.Client {
func TestIsValidDomain(t *testing.T) {
list := map[string]bool{
"turn.myhost.com": true,
"turn.google.com": true,
"turn.myhost.com": true,
"turn.google.com": true,
"https://host.com": false,
"turn://host.com": false,
"turn://host.com": false,
}
for key, result := range list {
service.IsValidDomain(key)
require.Equal(t, service.IsValidDomain(key), result)
}
}
}