You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The audio is the same when playing the video in the "foreground".
Actual behavior
The audio is compressed and has notable artefacts.
Screenshots/Screen recordings
No response
Logs
No response
Affected Android/Custom ROM version
Android 11 / Lineage 18.1
Affected device model
Sony Xperia XA2 Ultra
Additional information
This only happens when using data AND in background mode. If I play a video with mobile data the audio is fine. When using WiFi the audio is fine in both cases.
It happens regardless of the preferred audio format in the settings.
I have no data usage restrictions on this app.
It seems the audio is 48 kbps M4A or 50 kbps Opus, since I tried downloading something with those settings and it sounded just like that.
I've only observed this behaviour on Youtube videos.
The text was updated successfully, but these errors were encountered:
After taking a look at the code, I now understand that if the resolution when on mobile data is limited at all, the most compact audio stream will be chosen. IMO this is a bad choice since, even if you set the limit to 1080p60, you will get the worst audio. Also, audio-only playback shouldn't be tied to the resolution limit, or at least not like how it is now.
Maybe ListHelper.getDefaultAudioFormat could be adapted to account for a new settings item for bitrate (that would change according to the default format)?
A simpler option is making it so getDefaultAudioFormat gets the most compact audio if the resolution limit is set at a certain resolution or lower, 480p would work well IMO, given that 720p is "HD".
I think I could do the first one, although I've never participated in such a big project and it's my first time seeing Android code 😅
Checklist
Affected version
0.22.1
Steps to reproduce the bug
Expected behavior
The audio is the same when playing the video in the "foreground".
Actual behavior
The audio is compressed and has notable artefacts.
Screenshots/Screen recordings
No response
Logs
No response
Affected Android/Custom ROM version
Android 11 / Lineage 18.1
Affected device model
Sony Xperia XA2 Ultra
Additional information
This only happens when using data AND in background mode. If I play a video with mobile data the audio is fine. When using WiFi the audio is fine in both cases.
It happens regardless of the preferred audio format in the settings.
I have no data usage restrictions on this app.
It seems the audio is 48 kbps M4A or 50 kbps Opus, since I tried downloading something with those settings and it sounded just like that.
I've only observed this behaviour on Youtube videos.
The text was updated successfully, but these errors were encountered: