Closed MrAliSalehi closed 6 months ago
The sofphone sample has examples of putting audi and video streams on and off hold see here.
is there any way to do it from the MediaStreamTrack? and I thought SIPAgent wasn't for webrtc stuff, interesting
Whoops, you're correct. Disregard the softphone & SIP agent angle.
You can't do if from the MediaStreamTrack, instead you can do if from the IVideoSource or IAudioSource, that get connected to the MediaStreamTrack, using their Pause and Resume methods. See here for how that connection is made.
Only works for your locally added streams. For remote streams it is theoretically possible to send a new SDP offer with the sendrecv attribute set to sendonly but that behaviour has not been extensively tested with this library.
Hi There I'm looking for a way to simulate the
Mute
andStop
options in my MediaStream, something like this:this code was taken from a similar implementation of WebRtc in CPP and was translated into C#, as a simple prototype
any Ideas? Thanks!