Unity-Technologies / Unity-Technologies/com.unity.webrtc

[BUG]: audio latency - android to windows insertedSamplesForDeceleration

Open
#788 4 comments 0 reactions 1 assignee View on GitHub

@karasusan is already working on this.

Since Jul 29, 2022.

bug issued
Dominant language
Assembly
Stars
852
Forks
238
PR merge metrics
No merged PRs in 30d

Description

Package version

2.4.0-exp.8

Environment
* OS: Windows and Android
* Unity version:2019.4.39f1
Steps To Reproduce
  1. launch a Windows and Android webrtc client in the same room
  2. periodically check for RTCInboundRTPStreamStats on "audio" streams
  3. track removedSamplesForAcceleration and insertedSamplesForDeceleration on both android and windows every few seconds
  4. mute and unmute the microphone a bunch of times, but keep streaming
  5. observe the audio latency from android to windows increases to over a second, at the same time insertedSamplesForDeceleration increases past the number of samples per second of the audio stream.
  6. also observe that removedSamplesForAcceleration remains at zero on windows, while it occasionally increases on android.
Current Behavior

The stream only decelerates when streaming android to windows, resulting in a lot of extra latency, that only increases.

Expected Behavior

Nonzero removedSamplesForAcceleration, eventually, when streaming android to windows.

Anything else?

Screenshot 2022-07-29 153531

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.