Commit 69445d67 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Change default video codec to VP9.

parent 7062ba10
...@@ -170,14 +170,13 @@ nobody will be able to join the group. The following fields are allowed: ...@@ -170,14 +170,13 @@ 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 - `redirect`: if set, then attempts to join the group will be redirected
to the given URL; most other fields are ignored in this case; 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 - `codecs`: this is a list of codecs allowed in this group. The default
is `["vp8", "opus"]`. is `["vp9", "opus"]`.
Supported video codecs include: Supported video codecs include:
- `"vp8"` (compatible with all supported browsers); - `"vp8"` (legacy, supported by all browsers);
- `"vp9"` (better video quality, but incompatible with Safari); - `"vp9"` (compatible with all recent browsers);
- `"av1"` (even better video quality, only supported by some browsers, - `"av1"` (experimental, buggy in many browsers);
recording is not supported, SVC is not supported);
- `"h264"` (incompatible with Debian and with some Android devices, SVC - `"h264"` (incompatible with Debian and with some Android devices, SVC
is not supported). is not supported).
......
...@@ -371,7 +371,7 @@ func APIFromCodecs(codecs []webrtc.RTPCodecParameters) (*webrtc.API, error) { ...@@ -371,7 +371,7 @@ func APIFromCodecs(codecs []webrtc.RTPCodecParameters) (*webrtc.API, error) {
func APIFromNames(names []string) (*webrtc.API, error) { func APIFromNames(names []string) (*webrtc.API, error) {
if len(names) == 0 { if len(names) == 0 {
names = []string{"vp8", "opus"} names = []string{"vp9", "opus"}
} }
var codecs []webrtc.RTPCodecParameters var codecs []webrtc.RTPCodecParameters
for _, n := range names { for _, n := range names {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment