Add type assertion for codec param (#165)
This commit is contained in:
parent
f795b52103
commit
70d5bf5794
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ const ActiveRoom = ({ roomName, userChoices, onLeave }: ActiveRoomProps) => {
|
|||
const keyProvider = new ExternalE2EEKeyProvider();
|
||||
|
||||
const roomOptions = React.useMemo((): RoomOptions => {
|
||||
let videoCodec: VideoCodec | undefined = codec ?? 'av1';
|
||||
let videoCodec: VideoCodec | undefined = (codec as VideoCodec) ?? 'av1';
|
||||
if (e2eeEnabled && (videoCodec === 'av1' || videoCodec === 'vp9')) {
|
||||
videoCodec = undefined;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue