This is not a bug of course. I am discussing the design.
libmediasoupclient force caller in child thread, Why not give the freedom to caller?
1 Like
c++ api same with js api is’t necessary.
libmediasoupclient uses async operations via C++ promises, expecting hence to receive all its calls from the same thread. How to provide it it’s your freedom.
onProduce function sign: std::futurestd::string OnProduce()
producerid = listener->onProducer().get();
same with
onProduce function sign: std::string OnProduce()
producerid = listener->onProduce()
here promise is useful ?
1 Like
If create a C library to wrap libmediasoupclient, it’s a problem. For example, use P/Invoke in a .Net program。