I am dealing with RTCPeerConnection ( pc ) which has an event handler named onnegotiationneeded .
" onnegotiationneeded " is triggered when a full media stream is added or removed using pc.addStream or pc.removeStream .
Is it possible to indicate inside the function onnegotiationneeded if it was executed because the stream was added or deleted? Because, reading the documents, I could not find for this state.
I am currently switching the flag when I do pc.addStream or pc.removeStream . This flag helps me inform onnegotiationneeded if it was caused by the removal of the stream or not.
But I was wondering if there is such a property given by the browser (Chrome 40 or Firefox 36) API?
javascript html5 webrtc sdp
Benny neugebauer
source share