Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit a83fa5c

Browse files
authored
Add AV1 to video codec enumeration. (#464)
* Add AV1 to video codec enumeration. AV1(AV1X) encoder is only available on Chrome >= 90. * Add trailing comma.
1 parent 11dd65a commit a83fa5c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sdk/base/codec.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ export const VideoCodec = {
9191
VP9: 'vp9',
9292
H264: 'h264',
9393
H265: 'h265',
94+
AV1: 'av1',
95+
// Non-standard AV1, will be renamed to AV1.
96+
// https://bugs.chromium.org/p/webrtc/issues/detail?id=11042
97+
AV1X: 'av1x',
9498
};
9599

96100
/**

0 commit comments

Comments
 (0)