Jellyfin-android: Playing music stutters when the app is in the background

Created on 23 Aug 2020  路  12Comments  路  Source: jellyfin/jellyfin-android

When i'm paying a song with jellyfin open in the background the song start to stutter (sounds like the song stops for a few milliseconds). As soon as i bring jellyfin to the foreground the song continues to play without any issues. Changing between background and foreground always results in this behavior.

Device: Pixel 2
OS: Android 10 (QQ3A.200805.001)
Jellyfin App: 2.0.0-rc2
Jellyfin Server: 10.6.2

bug upstream wontfix

Most helpful comment

Yeah, that's an issue with playing media in WebView. I couldn't reproduce it on my device, but it's definitely a thing. Long-term, we want to switch to a media player integrated into the OS.

All 12 comments

Yeah, that's an issue with playing media in WebView. I couldn't reproduce it on my device, but it's definitely a thing. Long-term, we want to switch to a media player integrated into the OS.

This exact issue started happening to me after my phone upgraded to Android 11 today. It was working flawlessly before when I was on Android 10.

Device: OnePlus 8 Pro (IN2025)
OS: Oxygen OS 11.IN11AA (Android 11)
Jellyfin App: 2.0.1
Jellyfin Server: 10.6.4

Same issue here with a Amazon Fire HD 10 tablet. Strange thing as a side note: as soon as I connect a bluetooth speaker to the tablet, no dropouts/stuttering sound happens. On other Android devices (MIUI 12) no issue at all.

I have the same issues with Nokia 6.2. I have tested to disable the battery optimization but no help there.

For now, the suggestion is to use another Jellyfin client that isn't in a web view. At some point music playback will be handled natively at which point these issues should disappear. I suggest either Gelli or Yatse for music playback.

+1 for Gelli.

The comment I made here applies to this issue as well, that's why I marked it as wontfix.

-1 for Gelli. It has track sorting issues and author has no time to fix it
It is useless for albums where order is important, for example for audiobooks.

-1 for Gelli. It has track sorting issues and author has no time to fix it
It is useless for albums where order is important, for example for audiobooks.

that and it keeps causing my whole Jellyfin server to crash: seems to happen when I'm driving which suggests if there's an unstable connection it just screws everything up. Might go back to emby for music for now until there's a usable android client.

I have yet to see any issue reported for server crashes due to Gelli, so of course the problem isn't fixed yet. That being said, I only know of one other instance in two years of a client crashing the server (Kodi) and it was quickly resolved. Not only that, but obviously a client should never be able to crash the server, so if you opened an issue on the main repository with logs (it wouldn't be a Gelli issue because the server should never crash from clients) I'm sure it would be high priority.

I have yet to see any issue reported for server crashes due to Gelli, so of course the problem isn't fixed yet. That being said, I only know of one other instance in two years of a client crashing the server (Kodi) and it was quickly resolved. Not only that, but obviously a client should never be able to crash the server, so if you opened an issue on the main repository with logs (it wouldn't be a Gelli issue because the server should never crash from clients) I'm sure it would be high priority.

I'll see if I can reproduce it, the server didn't completely crash though, it was looping through some error and nothing could connect to it, but forgot what the error was. But I'll check this out tomorrow.

Same issue pixel 3a Android 11

Just want to mention that Yatse doesn't support Jellyfin (audio)books, so yatse is not a good workaround for the stutter/crash problem if you want to listen to audiobooks. It doesn't attempt to look at "Book" media library type.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Orybon picture Orybon  路  4Comments

vegedb picture vegedb  路  6Comments

sheckandar picture sheckandar  路  3Comments

Aerion picture Aerion  路  3Comments

idittansikte picture idittansikte  路  6Comments