-
Notifications
You must be signed in to change notification settings - Fork 53
Adding support for trickle ice. #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
249f014
to
6e6d2fa
Compare
transport: new SmallWebRTCTransport({ | ||
waitForICEGathering: true, | ||
}), | ||
transport: new SmallWebRTCTransport(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: need to update to use the latest version of @pipecat-ai/small-webrtc-transport
and pipecat-ai in order for it to work.
if (event.candidate) { | ||
console.log("New ICE candidate:", event.candidate); | ||
// Check if we can send ICE candidates (we have received the answer with pc_id) | ||
if (pc.canSendIceCandidates && pc.pc_id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to check for both pc.canSendIceCandidates && pc.pc_id
? pc.canSendIceCandidates
looks like it already encompasses the latter condition.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, just an extra precaution, but it shouldn’t be necessary.
) | ||
] | ||
# Initialize the SmallWebRTC request handler | ||
small_webrtc_handler: SmallWebRTCRequestHandler = SmallWebRTCRequestHandler() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is much cleaner using the nice encapsulation you've built into SmallWebRTCRequestHandler
!
Uh oh!
There was an error while loading. Please reload this page.