Errors with the new client

Hi,

I promised to test the new refactored client with Apache Cordova. Unfortunately I have not yet been able to proceed that far. I have encountered several errors with the new client.

  1. Multiple “stream-added” events for a stream

My application waits for the event after it has published its own stream. After that the app sets the maxBW of the stream.

With the new client I may get the event for the same stream several times. Does not happen every case. I’ll try to get it to happen every time.

  1. Setting the maxBW (audio) does not work with Firefox

This is from Firefox console:

DEBUG: Updating with SDP renegotiation 300 300 erizo.js:100:17
ERROR: message: DOMException [InvalidStateError: "Calling SetLocal without first calling CreateOffer/Answer is not supported."
code: 11
nsresult: 0x8053000b] in baseStack at updateSpec erizo.js:100:17
Return code: error

Works with Chromium/Chrome. I have not tried this with Firefox earlier, but should work if I am not mistaken.

  1. Strange problems with playback

The Chromium complains:

[1:15:0724/174907.493159:ERROR:adm_helpers.cc(62)] Failed to query stereo recording.

And the logging from Licode shows:

[erizo-0ebf171a-c168-c96a-17df-be3692415b46] 2017-07-24 17:52:08,491 - DEBUG [0x7f2096375700] WebRtcConnection - id: 530798383936320260, unknownSSRC: 2147483700, localVideoSSRC: 0, localAudioSSRC: 320999042
[erizo-0ebf171a-c168-c96a-17df-be3692415b46] 2017-07-24 17:52:09,549 - DEBUG [0x7f2096375700] WebRtcConnection - id: 530798383936320260, unknownSSRC: 2177761282, localVideoSSRC: 0, localAudioSSRC: 320999042
[erizo-0ebf171a-c168-c96a-17df-be3692415b46] 2017-07-24 17:52:10,142 - DEBUG [0x7f2096375700] WebRtcConnection - id: 530798383936320260, unknownSSRC: 2147483702, localVideoSSRC: 0, localAudioSSRC: 320999042

and so on. No playback.

I do not know whether these issues are due to changes to the client or in the background system.

I do not have similar issues with my production system, which is V2. I will have a look at V3 in order to find if some of the problems are there with the older erizoClient.

I will dig a little deeper soon. I am open for ideas.

The first type of bugs has now been fixed (subscription failed in some cases). I’ll dig a little bit more soon.

I hope that with the use of adapter.js would allow seamless integration with mobile clients. By using Apache Cordova, in this case.