Producing with producer paused

Sorry if this is covered already in the docs, but I couldn’t find it myself.

I want to start the producer (both on the server and client side) as paused and resume it at a later stage. For this there’s the useful ProducerOptions.paused param on the server (mediasoup). But I couldn’t find a similar parameter on the client side (mediasoupclient and libmediasoupclient).

There is though the possibility to call producer.pause() in mediasoup-client afterwards. Should I just use this instead?

That’s not possible in WebRTC PeerConnection API. You can set track.enabled = false; before calling transport.produce() with it, and later call producer.resume().