Skip to content

[YT] Throttling of (60fps) streams #8238

@litetex

Description

@litetex

Checklist

  • I am able to reproduce the bug with the latest version.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

0.22.2 / dev

Steps to reproduce the bug

This is sometimes quite hard to reproduce reliable but I can reproduce it doing the following:

  1. Clearing all caches and stop the app
  2. Open a YT video with 60fps and quality >720p - it might work normally but let it run for at least 1min.
  3. Open another YT video with 60fps
  4. Notice that it (initially) loads forever and the network speed is at ~33kB/s.

I can reproduce the issue on multiple phones/emulators with the current released version (for 60fps video streams) and the current dev branch (happens on ALL video streams).

Expected behavior

No throttling occurs

Actual behavior

YT (video-only) streams are (initially) throttled to ~33kB/s = ~256kBit/s (suspicious number since this is exactly or very close to 2^8)

Screenshots/Screen recordings

Example video:
https://www.youtube.com/watch?v=hWihEDctPKA

Version 0.22.2

Huawei P20 lite:

Android studio network inspector with emulator:
grafik

Dev-Branch
Android emulator:
grafik

Affected Android/Custom ROM version

doesn't matter

Affected device model

doesn't matter

Additional information

After some digging down we believe that the problem is likely caused by a ExoPlayer bug or bad combination with YT:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue is related to a bugyoutubeService, https://www.youtube.com/

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions