Video and screen sharing

I have a question on how the configuration might work, if there is one altogether, on how to accomplish video sharing and screen sharing at the same time in a call between two users. I am using webrtc on my frontend and even though I am sending two streams of video, it seems like asterisk is receiving just one of them, apart from the audio. Do any of you have any idea on what the configuration may be like or where to search on the documentation? All feedback is appreciated.

1 Like

You can only send one video stream to Asterisks.

To accomplish what you want to do, typically you would establish the call with the camera stream, and then switch to the desktop stream, by replacing the existing outbound stream.

Do you need some code for this, or you ok?

1 Like

Thanks a lot for the response! That is already what I have been doing, but I was interested on showing both the video and screen for the end-user so it’s more like another communication software as Google Meet or Discord. If there is no way for now, then I guess I will have to settle with that. Again, thank you very much for taking the time to respond.

I believe I did add support for multiple video streams at one point, so you’d need to actually provide SIP traces and the output of “core show channel” for each.

Hey! Since you mentioned the addition of multiple video streams support, I searched on the forum and found this issue Asterisk SFU Video Conferencing - #2 by jcolp. What ravi123 is asking for is my goal too, and at one point I also tried to add the additional track, tried to renegotiate with another streams, etc, but I have only ended with the working solution of replacing the tracks in the stream. I guess now the patch is added, but I do not really know what else to try. Could you maybe refer some more documentation on this topic or resources? Thanks in advance.

If you’re asking for documentation from the browser side, I have none. For Asterisk there is no documentation/configuration/etc beyond setting the maximum number of allowed video streams on the PJSIP endpoints.

Okay, I will try some more and see If I manage something. Thanks a lot for your time and help !

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