I have a need to access the WebRTC media stream created by the genesys-cloud-webrtc-sdk library. Is it possible to do with this library? Or do I need to use the purecloud-streaming-client-webrtc-sessions library in conjunction?
Do you have any examples of how I might access the stream? For example, to write it to a file.
Sorry about the delay. With the holidays and PTOs we have a backlog of requests. I am going to reach out to the dev group and see if I can get some clarification on your question.
purecloud-streaming-client-webrtc-sessions is dead so definitely don't use that. For accessing the media stream in the sdk, there are a few options. First, you can provide you own stream either as a default audioStream for the entire sdk here, or you can provide your own stream to individual sessions here. Alternatively you can get access the media stream on the session directly after the session has been accepted (calling sdk.acceptSession(...)). This isn't technically supported so it could change at any time without a major version release (not likely, nor do we have any plans to do so). That stream can be found at session._outboundStream. I hope this helps.