From e4682ff283b6c18991e9cbafae10f9330fd64233 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 1 Sep 2023 16:00:09 +0200 Subject: [PATCH] Revert "Change default video codec to VP9." This reverts commit 69445d67f5a05c4d1eeedad041373ca75199bdea. --- README | 9 +++++---- group/group.go | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README b/README index c297f05..a2c0e2b 100644 --- a/README +++ b/README @@ -173,13 +173,14 @@ nobody will be able to join the group. The following fields are allowed: - `redirect`: if set, then attempts to join the group will be redirected to the given URL; most other fields are ignored in this case; - `codecs`: this is a list of codecs allowed in this group. The default - is `["vp9", "opus"]`. + is `["vp8", "opus"]`. Supported video codecs include: - - `"vp8"` (legacy, supported by all browsers); - - `"vp9"` (compatible with all recent browsers); - - `"av1"` (experimental, buggy in many browsers); + - `"vp8"` (compatible with all supported browsers); + - `"vp9"` (better video quality, but incompatible with Safari); + - `"av1"` (even better video quality, only supported by some browsers, + recording is not supported, SVC is not supported); - `"h264"` (incompatible with Debian and with some Android devices, SVC is not supported). diff --git a/group/group.go b/group/group.go index dacbe85..b60fce0 100644 --- a/group/group.go +++ b/group/group.go @@ -379,7 +379,7 @@ func APIFromCodecs(codecs []webrtc.RTPCodecParameters) (*webrtc.API, error) { func APIFromNames(names []string) (*webrtc.API, error) { if len(names) == 0 { - names = []string{"vp9", "opus"} + names = []string{"vp8", "opus"} } var codecs []webrtc.RTPCodecParameters for _, n := range names {