[asterisk-dev] How about to support multi video tracks of the webrtc sfu?

Xiemin Chen chenxiemin at gmail.com
Sun Nov 25 09:19:13 CST 2018


It just workd with the two user's video-conference which both of them have
two video track separately. Now each one can see other's video and screen
sharing.

For the test purpose, I just hard code the to_channel mapping in
the bridge_channel_handle_write() then everything seems go fine.

Indeed, the code cannot run out-of-the-box and I want to know your ideas
about, anything difficult to have the correct mapping of the to_channel
vector? Or do I have any extra points missed to know its difficulty?

[image: image.png]

[image: image.png]

Sincerely
Xiemin

Joshua C. Colp <jcolp at digium.com> 于2018年11月19日周一 下午11:59写道:

> On Mon, Nov 19, 2018, at 11:54 AM, Xiemin Chen wrote:
> > I just made it works with multi video tracks of the echo stream demo by a
> > few lines of source code change in apps/app_stream_echo.c:
> >
> > 249c249
> > <                       // continue;
> > ---
> > >                       continue;
> > 278c278
> > <               } while (0);
> > ---
> > >               } while (--n);
> >
> >
> > Mean while I have a little change in native client code to have two video
> > tracks in one stream at the same time.
> >
> > So I think it's not a lot of code change if needs to do this task. I want
> > to know your ideas, thanks very much.
>
> The stream echo application is much simpler than the SFU, as it only has
> to do basic renegotiation/mapping. The code that the SFU relies upon is
> more complex as it has to keep track of the different streams and their
> mappings across all of the channels. This was done with a single source in
> mind, and the mapping process (and stream names) reflect that. I don't
> think the code will work out of the box, and until someone dives in there's
> no telling what needs to be really changed.
>
> --
> Joshua C. Colp
> Digium - A Sangoma Company | Senior Software Developer
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - US
> Check us out at: www.digium.com & www.asterisk.org
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> Astricon is coming up October 9-11!  Signup is available at:
> https://www.asterisk.org/community/astricon-user-conference
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20181125/e8f1f78a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 39676 bytes
Desc: not available
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20181125/e8f1f78a/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 196034 bytes
Desc: not available
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20181125/e8f1f78a/attachment-0003.png>


More information about the asterisk-dev mailing list