diff --git a/packages/webrtc/src/nonstandard/navigator.ts b/packages/webrtc/src/nonstandard/navigator.ts index cecadac4..bf7fe490 100644 --- a/packages/webrtc/src/nonstandard/navigator.ts +++ b/packages/webrtc/src/nonstandard/navigator.ts @@ -64,12 +64,14 @@ export class MediaDevices extends EventTarget { readonly getUdpMedia = ({ port, codec, + kind, }: { port: number; codec: ConstructorParameters[0]; + kind: "audio" | "video"; }) => { const track = new MediaStreamTrack({ - kind: "audio", + kind, codec: new RTCRtpCodecParameters(codec), });