This message was deleted.
# cloud
s
This message was deleted.
n
room config
Copy code
const [room] = useState(() =>
      new Room({
        adaptiveStream: { pixelDensity: 'screen' },
        audioCaptureDefaults: {
          autoGainControl: true,
          echoCancellation: true,
          noiseSuppression: true,
        },
        videoCaptureDefaults: {
          facingMode: 'user',
          resolution: VideoPresets43.h720.resolution
        },
        publishDefaults: { 
          simulcast: true,
          videoSimulcastLayers: [VideoPresets43.h540, VideoPresets43.h720]
        },
        reconnectPolicy: {
          nextRetryDelayInMs: (context): number | null => {
            if (context.retryCount > 10) {
              return null
            }

            console.log(`retrying connection: retries: ${context.retryCount} sec: ${context.elapsedMs/1000} `)
            return 3000 //retry every 3 seconds
          }
        },
        disconnectOnPageLeave: true,
      }
  ));
package.json
Copy code
"@livekit/react-native": "^1.0.0",
"react-native-webrtc": "^111.0.0",
the project was tested quite throughly few days back, and was working for us
also mobile video is not reflected in web session. web video is received in mobile.
d
can you share links to a couple of example sessions? how is the mobile device connected (network/carrier) can you share device model as well? it's abnormal to be reconnecting so frequently. We have heard a couple of reports re: connectivity with react native but have not able to identify any issues.
on the same device, if you start a session via meet.livekit.io, do you see similar issues?
n
one of the sessions.
Copy code
<https://cloud.livekit.io/projects/p_1q9m81ky6p4/sessions/RM_4DGrq2RwZowk>
<https://cloud.livekit.io/projects/p_1q9m81ky6p4/sessions/RM_UtAKNyhuS2sS>
I am on same device as before. • Redmi note 10 pro [ android 13 miui 14 ], 8gb RAM. • samsung android a14 5g • samsung tablet [ will check on model version ] Wifi network on fibre internet 100mbps stable speed, latency ~1ms. [ single digit milliseconds ]
d
This session does not look like it has any reconnects. You would see
PARTICIPANT_RESUMED
events in case it does reconnect.
in any case, I do see some errors in the client logs. it's possibly related to the reconnects. we'll take a look. CC: @eager-raincoat-52616
n
Copy code
<https://cloud.livekit.io/projects/p_1q9m81ky6p4/sessions/RM_cCGWPJsayQ8S>
just came home and tried a livekit session, same error. my home wifi
e
can you provide logs from adb logcat?
n
speed test result from my wifi
<https://www.speedtest.net/result/14670216812>
this is error log from morning from react native console. will share from adb too
e
react native console omits log messages that come from native code, so will need adb logs