Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Weird data in onnewBitrate

未关闭
#1,990 9 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
15/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
android, kotlin

调研方向

Start from the BitrateAdapter wiring in onNewBitrate and adapter.adaptBitrate, then find where BitrateChecker computes the reported bitrate and whether it reads any throughput or dropped-packet signal. Reproduce by streaming while throttling the network with Network Link Conditioner (1 Mbit/s with 10% loss, then 100% loss) and logging the values passed to onNewBitrate. Done means the reported bitrate drops under these conditions, or the maintainer confirms the expected behaviour.

由索引模型根据 Issue 内容生成。

描述

Hi.

I'm trying to make sure my app is working well in bad network conditions. I'm using a BitrateAdapter connected in onNewBitrate, like the example (calling adapter.adaptBitrate from onNewBitrate).

I'm using an XCode tool from Apple, called Network Link Conditioner, where I can simulate different types of connections. When switching to a "bad network" profile that limits to 1mbit/s and 10% packetloss, webbrowsing becomes really slow and switching to a "100% loss" profile it stops completely. But in both those situations, onNewBitrate keeps reporting a "good" bitrate and doesn't seem to care that the network is bad.

The backend I'm connecting to does stop receiving packets when the limiting profiles are active, so the limiter is working, it just doesn't seem like BitrateChecker actually detects the lack of throughput. I also get no dropped packets reported from the streamer.

I'm thinking perhaps I'm missing something in the setup, but since onNewBitrate reports the "wrong" values, I don't really know what I could do differently.

主要语言
Kotlin
星标
3k
派生
946
平均合并
4 天 6 小时
30 天内合并 PR
9

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pedroSG94/RootEncoder 的其他 Issue

查看 pedroSG94/RootEncoder 的全部 Issue

相似的 Issue

更多 Kotlin Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。