Consumer plays audio automatically.

HI
I built the mediasoup client library using msvc2017, windows 10.
And created client side audio consumer like below.

mediasoupclient::Consumer *consumer =
this->recvTransport->Consume(
this, ConsumerId, prodId, “audio”,
&response[“rtpParameters”]);

If I do this, the audio plays automatically…on windows 10.
I want to stop this.
Is this my fault or something else?
Thanks

That’s default behavior in libwebrtc which depends on each platform. You can override it by passing a PeerConnectionFactory to the transport constructor.

thanks much