Skip to content

Commit

Permalink
fix kind
Browse files Browse the repository at this point in the history
  • Loading branch information
shinyoshiaki committed Jan 6, 2025
1 parent bd44ccd commit 4e82be1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/webrtc/src/nonstandard/navigator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ export class MediaDevices extends EventTarget {
readonly getUdpMedia = ({
port,
codec,
kind,
}: {
port: number;
codec: ConstructorParameters<typeof RTCRtpCodecParameters>[0];
kind: "audio" | "video";
}) => {
const track = new MediaStreamTrack({
kind: "audio",
kind,
codec: new RTCRtpCodecParameters(codec),
});

Expand Down

0 comments on commit 4e82be1

Please sign in to comment.