With the recent release of Firefox Version 58, I have encountered a no audio issue using sipML5, I suspect it has to do with the change they did where they completely removed mozSrcObejct and they recommend to use SrcObeject instead:
The prefixed version of HTMLMediaElement.srcObject has been removed; make sure code is updated to use the standard srcObject instead of mozSrcObject (bug 1183495).
I'm using the SIPml-api.js from doubango and there I see that they use this property in these two functions:
attachMediaStream = function (a, b) {
console.log("Attaching media stream");
a.mozSrcObject = b;
a.play();
return a
};
reattachMediaStream = function (b, a) {
console.log("Reattaching media stream");
b.mozSrcObject = a.mozSrcObject;
b.play()
}
My question would be, how can I replace the prefixed mozsrcObject to use the standard srcObject, I tried just eliminating he prefix but that didn't work, any help would be appreciated.
Note that with Firefox version the original js from sipML5 works without a problem, and the console logs and webrtc logs looks the same.