Skip to content

Conversation

filipi87
Copy link
Contributor

@filipi87 filipi87 commented Oct 14, 2025

  • Refactoring p2p docker example to use SmallWebRTCRequestHandler and tricke ice.
  • Refactoring p2p voice agent example to use SmallWebRTCRequestHandler and tricke ice.
  • Refactoring p2p pipecat-cloud example to use tricke ice.

@filipi87 filipi87 marked this pull request as ready for review October 15, 2025 12:20
transport: new SmallWebRTCTransport({
waitForICEGathering: true,
}),
transport: new SmallWebRTCTransport(),
Copy link
Contributor Author

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) {
Copy link
Contributor

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.

Copy link
Contributor Author

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()
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants