react-native-twilio-video-webrtc
react-native-twilio-video-webrtc copied to clipboard
onNetworkQualityLevelsChanged not triggered
Steps to reproduce
1.npm install https://github.com/blackuy/react-native-twilio-video-webrtc.git#b332f49d6aa418549733367af7bfa559caf251d0 2. set up twiliovideo 3.try to trigger onNetworkQualityLevelsChanged
Expected behaviour
onNetworkQualityLevelsChanged trigger function (from repo example)
Actual behaviour
onNetworkQualityLevelsChanged event is not triggered
My code:
<TwilioVideo
ref={twilioVideo}
onRoomDidConnect={_onRoomDidConnect}
onRoomDidDisconnect={_onRoomDidDisconnect}
onRoomDidFailToConnect={_onRoomDidFailToConnect}
onParticipantAddedVideoTrack={_onParticipantAddedVideoTrack}
onParticipantRemovedVideoTrack={_onParticipantRemovedVideoTrack}
onParticipantDisabledVideoTrack={_onParticipantDisabledVideoTrack}
onParticipantEnabledVideoTrack={_onParticipantEnabledVideoTrack}
onNetworkQualityLevelsChanged={_onNetworkLevelChanged}
/>
onNetworkQualityLevelsChanged have different color in vs code. How can i solve? How often this event is triggered?
Color is consistent here:
Maybe check this: https://www.twilio.com/docs/video/using-network-quality-api#enabling-network-quality-reporting
Also at https://www.twilio.com/docs/video/using-network-quality-api#overview
The Network Quality API is only available in Group Rooms.
I have uninstalled the library, downloaded from last commit and now on vs code the color is consistent but the event is not still triggered for me. I'll try to find a solution (platform Android)
Also not triggering for me
@zuhairnaqi and @lokk3d you have to enable it first as visible in the example:
https://github.com/blackuy/react-native-twilio-video-webrtc/blob/master/Example/index.js#L38
@umarniz yes I did enableNetwork like this while connect
twilioRef.connect({ accessToken: twilioToken, enableVideo: isVideoCall, enableNetworkQualityReporting: true });
same issue here, enableNetworkQualityReporting
is also to true
That is quite strange, I can confirm that we have been using this in production for some time and have not seen any issues with this on several thousand phones that have been tested.
The issue is most likely either not having the correct version of Twilio installed (i.e a version that doesn't support this feature) or a potential JS mismatch, e.g callback with incorrect parameters or something similar.
My recommendation would be to do a clean install of the example and see if that works and if that doesn't work then try to do it in a simulator or an online device to see if its related to your device.