Unity-Technologies / Unity-Technologies/com.unity.webrtc
[BUG]: android player and webrtc-internals bitrate mismatch
@karasusan is already working on this.
Since Apr 3, 2023.
- 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

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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.