Conversation
Basic CLI demo: - Connects to a mediasoup-demo server via WS. - Produces audio and video. - Consumes remote participants media (no rendering). - Creates DataProducer|DataConsumer. - Prints the received messages via DataChannel. Sets the foundations for a more elaborated app. NOTE: This is merely a testing app so we can test the library agains our demo.
|
If it prints messages received via DataChannel why am I not seeing the "Hello xxx" message? |
Sorry, do you mean that you have created a built-in demo server in Rust within this PR? |
"[data] Welcome mediasoupclient-demo! |
What 😀?? No, this demo app resides in libmediasoupclient repo for the reasons given. It connects to the existing mediasoup-demo via WS, as browsers do. |
|
A tip: never review a big PR on mobile. |
Basic CLI demo:
As an example, this is the output you'll see when running the app:
Sets the foundations for a more elaborated app.
NOTE 1: This is merely a testing app so we can test the library against our demo.
NOTE 2: The demo is inside the libmediasoupclient repo on purpose, so we can run the app and test the library as we develop it.
Once this is merged, we can remove mediasoup-broadcaster-demo which is unmaintained and most probably not working, and use this app instead, which connects as a regular user.
NOTE 3: I may probably stick to
Listenercallback pattern all around. In some places I'm passing callbacks in constructor arguments, and in some other I'm passing the parent object to the child doesparent.onFooBar()which is not nice.