Consumer plays audio automatically.

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

mediasoupclient::Consumer *consumer =
this, ConsumerId, prodId, “audio”,

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

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