I’m trying to implement network quality in the front-end using React, but I only receive the event upon connecting and no more after that. I have configured the server according to the documentation, and I believe the problem lies on the client-side.
I’m only receiving this log: “Now my network quality level is 0. Before was undefined”, and I don’t receive any more.
I’m using OpenVidu 2.28.0, PRO version.
In my code, I implemented it like this:
mySession.on(‘networkQualityLevelChanged’, event => {
if (event.connection.connectionId === mySession.connection.connectionId) {
console.log("Now my network quality level is " + event.newValue + ". Before was " + event.oldValue);
} else {
console.log("Network quality level of connection " + event.connection.connectionId
+ " is " + event.newValue + ". Previous one was " + event.oldValue);
}
});