Jellyfin Forum
Stops playing sound when screen locks - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Stops playing sound when screen locks (/t-stops-playing-sound-when-screen-locks)



Stops playing sound when screen locks - Peter - 2024-06-25

Hi,

I just started using Jellyfin but Jellyfin stops playing mp3's when the screen locks.
When playing a mp4, the screen will not lock.

I'm using an Iphone (iOS Version: 17.5.1) and Jellyfin app Version 10.9.6

I've tried the following settings:
- Settings-General-Background App Refresh --> on, Jellyfin itself is not listed.
- Settings-Battery-Low Power Mode --> off.
- Within the Jellyfin app-Settings-Keep Screen Awake --> on.

Tried also to logon via a Web Browser (Safari and Chrome), unfortunately same issue when the screen locks, Jellyfin via browser stops playing.

When Setting-Display & Brightness-Auto-Lock --> never, Jellyfin keeps playing but to preserve the battery it would be great if it is possible to turn the screen off.

Is there any other setting that I missed or is it not possible using an Iphone?

Thank you in advance!


RE: Stops playing sound when screen locks - Efficient_Good_5784 - 2024-06-25

On the Android app, there's a client setting for "background audio" meant for videos, but I assume it also works to allow audio-only files to be played in the background.

Does the iPhone app have that setting? Try enabling it.


RE: Stops playing sound when screen locks - pixel24 - 2024-06-26

Quote:On the Android app, there's a client setting for "background audio"

Interesting. I have exactly this problem on both an Android and an iOS phone.

@Peter: I don't currently have access to the iOS device because it is being used by a friend. Did the setting resolve the issue for you?


RE: Stops playing sound when screen locks - Peter - 2024-06-26

Hi,

No, I cannot find the setting "Background Audio".
I've added a screenshot, hopefully it is visible.


RE: Stops playing sound when screen locks - theguymadmax - 2024-06-26

Use Finamp, a dedicated Jellyfin music player. Background playing is not an issue.


RE: Stops playing sound when screen locks - Peter - 2024-06-26

Hi @theguymadmax,

I've tried Finamp as well, but I'm unable to connect.

When I populate the Server URL, like this: https://111.222.333.444:8096 and the right username and password:
Error
ClientException with SocketException: Connection refused (OS Error: Connection refused, erno = 61), address = 111.222.333.444, port = 55555, uri=https://111.222.333.444:8096/Users/AuthenticateByName


When I populate the Server URL, like this: https://mydomainname.xxx and the right username and password:
Error
Could not fetch the response for POST https://mydomainname.xxx/Users/ AuthenticateByName.
Status code: 403, error: Error processing request


RE: Stops playing sound when screen locks - theguymadmax - 2024-06-26

(2024-06-26, 01:43 PM)Peter Wrote: Hi @theguymadmax,

I've tried Finamp as well, but I'm unable to connect.

When I populate the Server URL, like this: https://111.222.333.444:8096 and the right username and password:
Error
ClientException with SocketException: Connection refused (OS Error: Connection refused, erno = 61), address = 111.222.333.444, port = 55555, uri=https://111.222.333.444:8096/Users/AuthenticateByName


When I populate the Server URL, like this: https://mydomainname.xxx and the right username and password:
Error
Could not fetch the response for POST https://mydomainname.xxx/Users/ AuthenticateByName.
Status code: 403, error: Error processing request

When I logged on for the first time I got the same error when I tried to connect from my external ip. I'm pretty sure I was using the right credentials. Well about the 4th time it finally connected. Don't know what I did different.

External server:
https://mydomainname.xxx  - correct

Internal server: try using http instead of https
http:// 111.222.333.444:8096


RE: Stops playing sound when screen locks - TheDreadPirate - 2024-06-26

If you aren't using the Finamp beta, consider doing so. It is at a point where it is stable and pretty much feature complete.

https://forum.jellyfin.org/t-announcing-finamp-s-redesign-beta

But if you want to stick with the official android app, read my post in this thread.

https://forum.jellyfin.org/t-jellyfin-android-app-disconnecting?pid=21120#pid21120

It lists all the settings that you may need to double check in Android to allow for unrestricted battery and data usage in the background.


RE: Stops playing sound when screen locks - Peter - 2024-06-26

I tried to login several times without success, same error :-(.

Finally, I thought about the "Maximum number of simultaneous user sessions" (Edit User - Profile - Maximum number of simultaneous user sessions) setting, which was set to 1 and I had already a Jellyfin session open. Increased the "Maximum number of simultaneous user sessions" setting and I was able to login.
Now, when the screen locks or when using another app simultaneously, Finamp (mp3) keeps playing :-).

Thank you all for your suggestions, especially @theguymadmax !