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

[BUG]: android player and webrtc-internals bitrate mismatch

Open
#891 5 comments 0 reactions 1 assignee View on GitHub

@karasusan is already working on this.

Since Apr 3, 2023.

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

Description

Package version

3.0.0-pre.4

Environment
* OS: Windows 10
* Unity version: 2021.3.14
* Browser: chrome
Steps To Reproduce

I'm trying to limit peer connection bandwidth on Android app. I'm calling this code on RTCRtpSender

var parameters = sender.GetParameters();
                
foreach (var encoding in parameters.encodings)
{
     encoding.minBitrate = 50000;
     encoding.maxBitrate = 100000;
     encoding.maxFramerate = 5;
}

My setup: I'm using OpenVidu server and sending stream from Android phone to chrome browser.

Current Behavior

bitrate

In chrome://webrtc-internals I can see that stream bitrate averages about 100kb/s

Android phone is connected to Android Studio. In network inspector I can see that actual traffic from device averages about 30KB/s

Expected Behavior

Android player respects bitrate limits.

Anything else?

I have also tried to reproduce this exact scenario with mixedreality-webrtc package. In this case Android player was respecting bitrate limits.

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.