I have a question about the multiple threads about the client

83 views
Skip to first unread message

不死神鬼

unread,
Apr 22, 2021, 11:07:07 PM4/22/21
to UniMRCP
I found that in the client , only one channel can be used in a session. So, Can you help me to solve the problem how to implement multi-threaded operation in the client ? thanks a lot

Arsen Chaloyan

unread,
May 5, 2021, 9:20:21 PM5/5/21
to UniMRCP
You can create a channel per media resource in the scope of a single session and have as many concurrent sessions as you need. The UniMRCP project is implemented based on event-driven architecture. The main thread of the client library receives requests from and passes back responses to the application by means of async events.

The architecture of your application may differ. The key point is you should process responses asynchronously without blocking the callbacks of the client.

On Thu, Apr 22, 2021 at 8:07 PM 不死神鬼 <renkail...@126.com> wrote:
I found that in the client , only one channel can be used in a session. So, Can you help me to solve the problem how to implement multi-threaded operation in the client ? thanks a lot

--
You received this message because you are subscribed to the Google Groups "UniMRCP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unimrcp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/unimrcp/c009092c-e366-442f-89b5-a7c858743af8n%40googlegroups.com.


--
Arsen Chaloyan
Author of UniMRCP
http://www.unimrcp.org

不死神鬼

unread,
May 5, 2021, 10:16:33 PM5/5/21
to UniMRCP

Do you have any relevant sample codes? There is no related operation in the demo code. Thank you

Arsen Chaloyan

unread,
May 7, 2021, 8:40:47 PM5/7/21
to UniMRCP
Reply all
Reply to author
Forward
0 new messages