What is the method to inform AudioBridge that I have changed Audio Input and Output device?

As per following workflow, I have joined in a AudioBridge room and audio call is established.
MyApp → JanusServer: join_message
JanusServer → MyApp: joined_event
MyApp → JanusServer: SendOffer (configure_message_with_offer_sdp)
JanusServer → MyApp: ok_with_answer_sdp
JanusServer → MyApp: webrtc_up
JanusServer → MyApp: media_on

BUT now I want to change my audio input and output device and want to inform it to AudioBridge.
How to do it? What is the json payload for it? What flow I need to perform?

You don’t need a renegotiarion to change input devices, just use replaceTrack.

So need to send replacetrack message with new sdp to Janus?

No. I said renegotiation is NOT needed, and a new SDP is a renegotiation. Please look for replaceTrack (which is a browser API, not a message) to learn more.

I am using cross-platform SipSorcery.Net webrtc library for .Net. Right now it has no replaceTrack method. That’s why I am asking if there is any janus way like we can do publish-unpublish for videoroom.

Publish/unpublish can be replicated by just closing the PeerConnection and creating it again, but that does mean leaving and rejoining. If that stack supports renegotiations to change an audio device, then you can renegotiate in the AudioBridge by sending the new SDP in a request like “configure”.