twilio-video.js icon indicating copy to clipboard operation
twilio-video.js copied to clipboard

participant.networkQualityLevel Returns Null When Connect to a Room with Audio and Video Off

Open funayamateppei opened this issue 1 year ago • 1 comments

connect(token, {
          networkQuality: {
            local: 1,
            remote: 1,
          },

We are currently monitoring the participantConnected event and using participant.on("networkQualityLevelChanged", () => {function}) to retrieve participant.networkQualityLevel.

When entering a room with both Video and Audio turned off, participant.networkQualityLevel returns NULL. However, once either Video or Audio is turned on within the room, networkQualityLevel can be obtained.

Is there a way to retrieve the networkQualityLevel of the participant when both Video and Audio are turned off upon entering the room? Additionally, even if both Video and Audio are turned off again after they have been enabled, can we still capture networkQualityLevelChanged events and retrieve the networkQualityLevel?

Software versions:

  • [x] Browser(s): Chrome v118.0.5993.117
  • [x] twilio-video.js: v2.27.0

funayamateppei avatar Nov 01 '23 02:11 funayamateppei

Having the same problem here. What is the expected way to work with the network quality API here?

swapnonil-b avatar Nov 05 '23 09:11 swapnonil-b