Discussions

Ask a Question
Back to All

Clarification on WebRTC Stream Setup Steps and Stream Creation Endpoints

Hello,

I have a few questions regarding the WebRTC stream setup:

The documentation states:

“Create and Initiate a WebRTC stream connection, following the 3 steps in the Streams API documentation.”

However, below that, it lists four steps:

Create a new WebRTC Stream (For source_url, use the same Agent's image URL)

Start a WebRTC stream

Submit network information

Send messages

These steps seem slightly different from the 3 steps described in the Streams API documentation.
Should I follow both sets of instructions, or is one superseding the other?

In the Create a new stream step, there are two endpoints mentioned:

https://api.d-id.com/agents/{agentId}/streams

https://api.d-id.com/talks/streams

What is the difference between these two endpoints?
Do I need to create both, or is only one of them required depending on the use case?

Thank you in advance!