[libnice] architecture to support multiple media streams
Philip Withnall
philip at tecnocode.co.uk
Sun Oct 18 07:38:28 PDT 2015
Yes, it can!
On Sat, 2015-10-17 at 18:18 -0700, tom chen wrote:
> Hello,
>
> I am wondering whether one main loop can serve several agents? It
> seems Yes from code tests\test-fullmode.c.
> I am asking because I need to support multiple (up to 8) media
> streams concurrently. So I would like to create multiple agents form
> each. But I would like to have 1 main loop to process events from all
> of these agents.
>
> Please let me know if this architecture is feasible and libnice can
> support multiple candidates gathering, negotiating etc
> simultaneously.
>
> Tom
>
> Main()
> {
> . . . . . . . . . . .
> global_mainloop = g_main_loop_new (NULL, FALSE);
>
> /* Note: impl limits ...
> * - no multi-stream support
> * - no IPv6 support
> */
>
> /* step: create the agents L and R */
> #if USE_RELIABLE
> lagent = nice_agent_new_reliable (g_main_loop_get_context
> (global_mainloop),
> NICE_COMPATIBILITY);
> ragent = nice_agent_new_reliable (g_main_loop_get_context
> (global_mainloop),
> NICE_COMPATIBILITY);
> #else
> lagent = nice_agent_new (g_main_loop_get_context (global_mainloop),
> ç agent 1
> NICE_COMPATIBILITY);
> ragent = nice_agent_new (g_main_loop_get_context (global_mainloop),
> ç agent 2
>
> NICE_COMPATIBILITY);
> #endif
> }
> _______________________________________________
> nice mailing list
> nice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/nice
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/nice/attachments/20151018/f6a7cd0b/attachment.sig>
More information about the nice
mailing list