Skip to content

Video lag and delayed audio on React Native (mobile) when using WiFi, but works fine on mobile data and web #325

@Vashkarjya

Description

@Vashkarjya

Describe the bug

When using the LiveKit React Native SDK on a mobile device connected to WiFi, the video stream lags significantly and audio is delayed. When speaking, the voice reaches the remote participant with noticeable delay.

This issue only occurs on mobile devices connected to WiFi. The same setup works normally in the following cases:

On the web client

On mobile devices using mobile data (4G/5G)

The issue appears consistently across multiple WiFi networks, so it does not seem to be specific to a single router or network.

To Reproduce

Steps to reproduce the behavior:

Join a LiveKit room using the React Native app.

Ensure the device is connected to WiFi.

Start a video call between two participants.

Observe the video stream and audio timing.

Video appears laggy and audio from the speaker reaches the remote user with delay.

Expected behavior

Video and audio should be smooth and near real-time, similar to:

Web client performance

Mobile performance when connected to mobile data

There should be no significant lag or delay in video rendering or audio transmission when connected to WiFi.

Device Info:

(tested on multiple devices)

OS: iOS / Android (React Native)

Dependencies Info (please reference your package-lock.json or yarn.lock file, not just your package.json):

  • @livekit/react-native:
  • livekit-client:
  • react-native-webrtc:

Additional context

Issue happens only on mobile WiFi

Does not happen on web

Does not happen when using mobile data

Tested across multiple WiFi networks

Video becomes laggy and audio arrives late to remote users

Might me an server issue also but can tell us if any configuration can done fix this

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions