Jump to content

Fire TV using Emby Connect and multiple users


Doonga
Go to solution Solved by ebr,

Recommended Posts

Doonga

For reference:

Emby Connect user: User 1

Managed user: User 2 (no Emby connect account on the user tab)

 

I signed into a Fire TV with Emby connect, selected User 2 on my server, entered their password and then chose "Automatically sign in with this user." User 2's name shows up on the settings screen as the person who it will connect as.

 

At the point on the dashboard I see in the active devices: Amazon AFTB and the user shown is User 2 (That's correct.) Also on the Fire TV I see the user as User 2 (also good.)

 

If I exit out of Emby on the Fire TV and then load it again, I see on the dashboard: Amazon AFTB User 1 (not correct). On the Fire TV I see the user as User 2 (good....but)

 

The problem is that anything played at this point shows up in User 1's history. I noticed this while using User 1's account on a different device and suddenly seeing partially played stuff that User 2 was watching at the same point in time. So on the server side it seems like it's getting confused about who is actually using the Fire TV at a given time.

 

The sign out button on the Fire TV at this point says User 2, if I sign out, then sign in again as User 2 then the dashboard shows the correct user as well as the Fire TV.

 

So to recap, when signing in with connect after the first login, no matter what user is saved the server will always see the connection as the primary Emby connect user even if the client shows a different user.

 

To be honest I'm not sure if this is specific to the Fire TV or not, it's just how I was able to reproduce it.

 

If I manually connect without Emby connect it works as expected.

Edited by Doonga
Link to comment
Share on other sites

It sounds like everything on the FTV side is displaying as expected but the server, for some reason is confused - is that correct?

 

But, also, I'm confused by this statement:

 

 

 

I signed into a Fire TV with Emby connect, selected User 2 on my server, entered their password

 

If you sign in with Emby Connect, there should be no user selection or password entry...

 

Can you explain exactly what happened here?

Link to comment
Share on other sites

Doonga

It sounds like everything on the FTV side is displaying as expected but the server, for some reason is confused - is that correct?

Yes that sums it up.

 

But, also, I'm confused by this statement:

 

 

If you sign in with Emby Connect, there should be no user selection or password entry...

 

Can you explain exactly what happened here?

Sure, I started Emby, it came up with the screen to enter the pin. I went to emby.media/pin and entered it. The site said it was accepted. Then the Fire TV just sat there for awhile with the next button highlighted. I figured after a minute or so that I was supposed to click Next, so I did. Then I was presented with a list of users and then did what I posted in my first post.

Edited by Doonga
Link to comment
Share on other sites

If you got a list of users after hitting Next then something went wrong connecting with Connect.

 

Can you please clear data on the app and then do the Connect thing again and, when you get the list of users there will be a "Send logs" button on the row under them.  Please select that and send the log.  Then tell me you've done it here.  Thx.

Link to comment
Share on other sites

Doonga

Ok I just recreated and sent in the logs.

 

Also when I clicked Next, it took 30 or so seconds to go to the next screen.

Link to comment
Share on other sites

Also when I clicked Next, it took 30 or so seconds to go to the next screen.

 

Something is timing out...  I'll look at the logs.  Thx.

Link to comment
Share on other sites

Your server is only available on https over port 443?

 

It is a remote server (not on the local network)?

Link to comment
Share on other sites

Doonga

Yes correct, it's remote from the Fire TV's location. I publish it as https on 443 as the remote port.

Link to comment
Share on other sites

Maybe Luke can help me here.  What it looks like to me is Connect is attempting to connect on the local address instead of the remote one and that is timing out.  Luke, is that how it should work?

I/System.out(15064): Response received from: https://connect.mediabrowser.tv/service/user?id=XXXX
I/System.out(15064): Getting connect servers
I/System.out(15064): Adding request to queue: https://connect.mediabrowser.tv/service/servers?userId=XXXX
I/System.out(15064): Response received from: https://connect.mediabrowser.tv/service/servers?userId=XXXX
I/System.out(15064): Server discovery timed out waiting for response.
I/System.out(15064): Found 0 servers
I/System.out(15064): Looping through server list
I/System.out(15064): Testing local device network connection
I/System.out(15064): Android device is connected to a network
I/System.out(15064): Adding request to queue: http://192.168.1.20:8096/emby/system/info/public?format=json
I/System.out(15064): VolleyError com.android.volley.TimeoutError: null

Link to comment
Share on other sites

yes it tries manual first (if supplied), then local, then remote. then if they all fail it returns an error.

Link to comment
Share on other sites

Isn't that going to make it take forever to connect in the most-often used scenario for Connect (remote)?

 

I don't see this behavior when I use Connect so I'm not what sure is different (other than the https and custom port).

Link to comment
Share on other sites

  • Solution

Hallelujah.

 

Doonga, with your help here I think I have finally tracked down this Connect issue.  It is related to only having a single server available via Connect which I have never had and that's why I couldn't reproduce it.

 

If you are not in the beta program, please join it so that you can test with the next beta.  Also, maybe we'll get lucky and this will solve your "wrong user" issue as well.

Link to comment
Share on other sites

Doonga

We got the Fire TV enrolled last night and the test version was pushed. Looked like it was still 1.1.90, so once it gets whatever the next version is I'll give it a shot. I'm only at that location on the weekends so I won't be able to play with it again until then. We definitely launched the version with the giant TEST banner going across the icon.

 

If worse comes to worse I can bring one of my Shields with me and try it with that since they are already in the beta.

Edited by Doonga
Link to comment
Share on other sites

Okay.  You will probably need to start over to see the fix for the Connect login.  Clear data or log out of Connect and then try the Connect setup again.

 

This time, you should not see a user screen but, instead, be sent directly to the library for the Connect user.

Link to comment
Share on other sites

Doonga

Will do, I'll report back when I'm there again and have a chance to test.

Link to comment
Share on other sites

Doonga

It worked! When I log in with connect, I go straight to the main Emby screen. If I choose logout <my username>, it exits the app which makes sense to me since I'm logged in with connect which is tied directly to one user.

 

I then chose log out of connect which put me back to the user select screen. That's good, the whole reason I was using connect was to avoid having to type in my server connection information manually. I selected the user I wanted, then signed in and set it to auto-login with that account. The server dashboard showed the correct user in all cases.

 

I'd call this fixed! Thanks very much!

Link to comment
Share on other sites

rcarteraz

I wonder if this is the same reason I can't connect via the fire tv via connect. Should I try the beta as well or has that already released?

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
×
×
  • Create New...