Is audio/media stream required? or can you utilize WebRTC SDK in a headless manner?

I am looking to implement a server-side application using code authorization and a "virtual" agent that will answer calls, ACD conference multiple conversations, and then disconnect from the conversation. Reviewing the WebRTC SDK documentation it is hard to tell if having an actual media stream is a requirement. Looking at gdemo org it seems something similar is being used to act as the demo agent. Is this running in selenium driver or would the above be possible?

1 Like

Hey!

An audioStream is required to accept sessions using the SDK, but not required to initialize the SDK. If a default stream is not passed in during the SDK initialization or one isn't provided when trying to accept a session, the SDK will try to request media and attach it to the session as seen here..

You may be able to create a fake media stream and pass it in as a default. Ultimately, if a default isn't provided and a stream isn't present when trying to accept a session the SDK will try to spin one up automatically.

Also, we're aware the SDK documentation has fallen a bit behind and isn't the most clear and are in the process of improving it.

Hope that helps clear things up a bit!

-Zach

thanks! I will try to send a fake media stream via browserless/chrome and see how that goes. thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.