Eyevinn / whip

Client and Server modules for WebRTC HTTP Ingestion Protocol (WHIP)
Apache License 2.0
94 stars 15 forks source link

fix: sfu whip resource tries to set properties of undefined when no audio #129

Closed friday closed 4 months ago

friday commented 11 months ago

I tried the instructions and sharing a browser tab (no audio) rather than webcam. This resulted in TypeError: Cannot set properties of undefined (setting 'ssrcs') at SfuWhipResource.setupEdgeSfu

I'm not sure if this is the right thing to check/do, rather than if (edgeEndpointDesc.audio), but it worked and it's similar to the condition on line 244.