How to switch stream

Hello everyone,
How I can switch stream from audio to video in peer-to-peer connection ?
I have used many ways like add new stream, create new offer but everything is not working.
If someone has a solution please help me, thanks

1 Like

Usually you’d just send both audio and video by default.
If you want the call to be audio only then you just disable the video stream.
That gives you the ability to enable the video stream ready for use on demand.