-
Hello, I'm trying to connect to a QUIC server and open two simultaneous streams:
For each handlers (streamAudioCallback and streamVideoCallback) I have something like:
I open the streams when I get a This doesn't work, and I can't receive correctly without crashing (without any stacks). Is there any example available to handle multiple streams (in a single thread or multiple one) ? What is the best way to implement it ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
What does your connection event handler for peer stream started look like? Having a callstack for the crash would help too. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply @nibanks . The crash was due to the QUIC_CONNECTION_EVENT_PEER_STREAM_STARTED that I deleted from the connection handler because in the sample project it was only on the server side, so I thought it was useless for the client. This works when only one stream is opened, but when I add the second stream (and thus a second handler), it looks like only one callback is called (streamAudioCallback).
What is the real purpose of |
Beta Was this translation helpful? Give feedback.
You need to set callback handlers for streams your peer creates. The streams you create in StreamOpen are ones you create.