Jump to content

Emby for android struggles to change network connections smoothly


darkassassin07
 Share

Recommended Posts

darkassassin07

I have noticed quite a bit lately that emby for android has a difficult time reconnecting to my server when my android device changes its network connection.

 

It's primarily when changing from lan to wan or vise versa, but I have also noticed it when going from a wifi connection thats on wan to mobile data (also wan ofc).

 

 

What I mean by this is I'll be browsing a library for example, the network will change maybe because I left/entered range of wifi, then the next thing I click on will just give me a never ending loading wheel until I close the app by removing it from recent apps then reopen it and reconnect to my server.

Anytime the network changes while emby is sitting in recent apps (whether I'm actively using it or not), when I come back to it I have to close and re-open it to make it useable again.

 

 

Android v8.0.0

Emby for android v3.0.51

  • Like 1
Link to comment
Share on other sites

Hi, it will reconnect just fine, but you may have to be patient and wait for it to time out while trying to connect to your local address first, and then try your remote address.

Link to comment
Share on other sites

darkassassin07

Hmm, guess I wasn't being patient enough. I feel like there is still a bit of room for improvement there, but it does eventually get there so it's not like it doesn't work at all.

 

Thanks luke :)

Link to comment
Share on other sites

  • 4 months later...
darkassassin07

Hey @@Luke, have you guys had anymore development into improving the re-connection time of the android (and I'd assume ios) app when changing networks?

 

A scenario I run into constantly:

 

Im connected to wifi, but external to my home network. The android app is open and connected to my server via the wan address, not actively playing but maybe looking at the details page of some bit of media or the server dash (whether the app is in the background or foreground doesn't seem to matter). I then lose wifi connection and automatically switch to mobile data. (I can also reconnect to the same wifi after the disconnect, the following results are the same)

 

From there the next response from the server (changing pages or trying to start playback for example) takes a minimum of 30sec. I assume this is the app first trying the lan address, waiting 30sec for it to timeout, then trying the wan address. When I know the network has changed it is almost always faster to close the app and start fresh.

 

 

 

If possible could this maybe be improved by trying both the lan and wan addresses simultaneously when a network change has been detected, using whichever one responds first, then if the lan address does endup responding after the wan address have it take priority?

 

Or possibly a way to have the apps use the external address exclusively (server-side setting). With my particular setup, the wan address always reaches my server whether the client is lan/wan. Using/waiting for the lan address is unnecessary. (in my case at least)

 

Just trying to throw out an idea or two. It's really annoying to deal with when you are regularly moving in/out of wifi range and frequently using the emby app while on wan access.

Link to comment
Share on other sites

darkassassin07

Hmm, maybe there is a bug with the way that's implemented then?

 

I've sat and timed it a few times now; the app always takes a full 30sec+ to load the next page after a network change. That seems like a consistent timeout period before trying the next address.

 

The web app however doesn't have this issue. It's able to recover as if nothing changed as it's consistently using the same address.

Link to comment
Share on other sites

  • 2 months later...
dominicp

Just wanted to chime in here. This is my number 1 frustration with the app right now. In general it works great. But, I can't get it to reconnect after a network change. My scenario typically goes like this:

 

1. Get in the car and pick music to listen to (still connected to wifi)

2. Drive away and loose wifi

3. Phone switches to cellular data and emby app stops playing (it will never reconnect in my experience)

4. Close emby app, reopen, and select music while trying not to die ;)

  • Like 1
Link to comment
Share on other sites

We don't have the automatic re-connection during playback at this stage, but it's something we can look to add. Thanks for the feedback.

Link to comment
Share on other sites

  • 1 year later...
MonKaiju

For me it does reconnect, not while playing media but otherwise, but it takes an incredibly long time, like the 30 seconds aforementioned. Not unusable but the fact that it's slower than closing and relaunching the app is annoying.

 

Emby overall is amazing and thanks for all the hard work! 🙏

Edited by MonKaiju
Link to comment
Share on other sites

Thanks for the feedback. We are constantly working on improving it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...