add support for vp9 and av1 (#574)

This commit is contained in:
cnderrauber
2022-03-28 22:22:48 +08:00
committed by GitHub
parent 75ca70aef7
commit 3959251837
4 changed files with 111 additions and 2 deletions
+2 -2
View File
@@ -219,12 +219,12 @@ func NewConfig(confString string, c *cli.Context) (*Config, error) {
Redis: RedisConfig{},
Room: RoomConfig{
AutoCreate: true,
// by default only enable opus and VP8
EnabledCodecs: []CodecSpec{
{Mime: webrtc.MimeTypeOpus},
{Mime: webrtc.MimeTypeVP8},
{Mime: webrtc.MimeTypeH264},
// {Mime: webrtc.MimeTypeVP9},
{Mime: webrtc.MimeTypeAV1},
{Mime: webrtc.MimeTypeVP9},
},
EmptyTimeout: 5 * 60,
},