Skip to content

Commit

Permalink
fix: sfu whip resource tries to set properties of undefined when no a…
Browse files Browse the repository at this point in the history
…udio
  • Loading branch information
friday committed Dec 6, 2023
1 parent 7789d20 commit 618b8c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/server/src/whip/sfu/sfuWhipResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ export class SfuWhipResource implements WhipResource {
];
}

edgeEndpointDesc.audio.ssrcs = [];
if (offerAudio) {
edgeEndpointDesc.audio.ssrcs = [];
}
edgeEndpointDesc.video.streams = [];
edgeEndpointDesc['bundle-transport'].dtls.setup = 'active';

Expand Down

0 comments on commit 618b8c8

Please sign in to comment.