Jump to content


Photo

Serenity for Android with Emby Server Support


  • Please log in to reply
69 replies to this topic

#21 kingargyle OFFLINE  

kingargyle

    Advanced Member

  • Members
  • 65 posts

Posted 09 November 2018 - 11:18 PM

Serenity for Android 2.0.0-M9 - Release Candidate

 

Well it has been a long journey, but I'm to the point where I have most of what is needed working again.  Latest release candidate can be found here:

https://github.com/N...s/tag/v2.0.0-M9

 

This primarily fixes some search issues on Amazon Fire TV devices.

 

The release candidate has been uploaded to the Beta channel on Google Play.   Amazon App Store will be updated later in the week.



#22 kingargyle OFFLINE  

kingargyle

    Advanced Member

  • Members
  • 65 posts

Posted 10 November 2018 - 02:44 PM

And 2.0.0 submitted to Google Play and is live now.   Amazon App Store should be live tomorrow unless they find issues with it.



#23 kingargyle OFFLINE  

kingargyle

    Advanced Member

  • Members
  • 65 posts

Posted 28 November 2018 - 05:54 PM

Serenity for Android 2.0.2 is rolling out to everyone now.   This is just a bug fix release with a few performance enhancements, and few crashes that were occuring for some uses when browsing the Seasons for a Series.   Also should have better handling of videos when the Home button or Back Button is pressed on the remote.  Videos should no longer play in the background.



#24 kingargyle OFFLINE  

kingargyle

    Advanced Member

  • Members
  • 65 posts

Posted 14 December 2018 - 10:01 PM

Version 2.0.3 is rolling out to Android TV and Fire TV devices.  This adds the ability to Manually set the server if it isn't auto discovered, fixes a crash on the main menu that some users were experiencing, and improves Direst Streaming support for some MKV files that were wrongly identified.



#25 CBers OFFLINE  

CBers

    Advanced Member

  • Moderators
  • 15396 posts
  • Local time: 04:10 PM
  • LocationKent, England.

Posted 15 December 2018 - 07:04 AM

@kingargyle - Just paid for and installed v2.0.3 onto my Shield, as I wanted to test something, but I can't get past the user selection screen - it just has a spinning circle. I only have 2 users, neither of which are hidden or have passwords.

I tried the listed servers, but couldn't get a list of users.

I tried entering the server details manually, but still couldn't get a list of servers.

Any suggestions please?

On a separate note, I think it would be an idea to have a Plex and Emby icon overplayed on the server name on the Server Selection screen, as I run both Plex and Emby, so it can be confusing.

Also, it might be nice to be able to give your "Preferred Server" a recognisable name as well.

Is there any way of editing or removing a server from the list?

Thanks.

#26 CBers OFFLINE  

CBers

    Advanced Member

  • Moderators
  • 15396 posts
  • Local time: 04:10 PM
  • LocationKent, England.

Posted 15 December 2018 - 08:54 AM

@kingargyle - This is in the server log when I the app tries to get a list of users:

 

2018-12-15 12:40:05.788 Info HttpServer: HTTP GET http://192.168.1.150:8988/system/Info/Public. UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-GB) WindowsPowerShell/5.1.17134.407
2018-12-15 12:40:05.788 Info HttpServer: HTTP Response 200 to 192.168.1.150. Time: 0ms. http://192.168.1.150:8988/system/Info/Public
2018-12-15 12:40:07.890 Info HttpServer: HTTP POST http://192.168.1.150:8988/Users/AuthenticateByName?format=json. UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-GB) WindowsPowerShell/5.1.17134.407
2018-12-15 12:40:07.891 Error UserManager: Error authenticating with provider Default
*** Error Report ***
Version: 3.6.0.77
Command line: C:\Users\Media\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
Operating system: Microsoft Windows NT 6.2.9200.0
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 4
Program data path: C:\Users\Media\AppData\Roaming\Emby-Server
Application directory: C:\Users\Media\AppData\Roaming\Emby-Server\system
System.Exception: System.Exception: Invalid username or password
   at Emby.Server.Implementations.Library.DefaultAuthenticationProvider.Authenticate(String username, String password, User resolvedUser)
   at Emby.Server.Implementations.Library.UserManager.AuthenticateWithProvider(IAuthenticationProvider provider, String username, String password, User resolvedUser)
Source: Emby.Server.Implementations
TargetSite: System.Threading.Tasks.Task`1[MediaBrowser.Controller.Authentication.ProviderAuthenticationResult] Authenticate(System.String, System.String, MediaBrowser.Controller.Entities.User)
   at Emby.Server.Implementations.Library.DefaultAuthenticationProvider.Authenticate(String username, String password, User resolvedUser)
   at Emby.Server.Implementations.Library.UserManager.AuthenticateWithProvider(IAuthenticationProvider provider, String username, String password, User resolvedUser)

2018-12-15 12:40:07.892 Info UserManager: Authentication request for Master has succeeded.
2018-12-15 12:40:07.892 Info SessionManager: Reissuing access token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2018-12-15 12:40:07.893 Info HttpServer: HTTP Response 200 to 192.168.1.150. Time: 2ms. http://192.168.1.150:8988/Users/AuthenticateByName?format=json
2018-12-15 12:40:07.931 Info HttpServer: HTTP GET http://192.168.1.150:8988/emby/users. UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-GB) WindowsPowerShell/5.1.17134.407
2018-12-15 12:40:07.931 Info HttpServer: HTTP Response 200 to 192.168.1.150. Time: 1ms. http://192.168.1.150:8988/emby/users
2018-12-15 12:40:08.074 Info HttpServer: HTTP GET http://192.168.1.150:8988/emby/Users/633f85ef4e0e4f45879c7e88469d0ff5/items?Fields=Tags&Recursive=true&SortBy=SortName&SortOrder=Ascending&IncludeItemTypes=Series. UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-GB) WindowsPowerShell/5.1.17134.407
2018-12-15 12:40:08.085 Info HttpServer: HTTP Response 200 to 192.168.1.150. Time: 11ms. http://192.168.1.150:8988/emby/Users/633f85ef4e0e4f45879c7e88469d0ff5/items?Fields=Tags&Recursive=true&SortBy=SortName&SortOrder=Ascending&IncludeItemTypes=Series
2018-12-15 12:40:08.983 Info HttpServer: HTTP GET http://192.168.1.150:8988/emby/Users/633f85ef4e0e4f45879c7e88469d0ff5/items?Recursive=true&SortBy=SeriesName,ParentIndexNumber,IndexNumber&SortOrder=Ascending&IncludeItemTypes=Episode&IsMissing=False&Filters=IsPlayed&MinDateLastSavedForUser=2018-12-08T12:40:08Z. UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-GB) WindowsPowerShell/5.1.17134.407
2018-12-15 12:40:08.984 Info HttpServer: HTTP Response 200 to 192.168.1.150. Time: 2ms. http://192.168.1.150:8988/emby/Users/633f85ef4e0e4f45879c7e88469d0ff5/items?Recursive=true&SortBy=SeriesName,ParentIndexNumber,IndexNumber&SortOrder=Ascending&IncludeItemTypes=Episode&IsMissing=False&Filters=IsPlayed&MinDateLastSavedForUser=2018-12-08T12:40:08Z
2018-12-15 12:40:09.171 Info HttpServer: HTTP GET http://192.168.1.150:8988/emby/Users/a08711a48b194896b8cc7961d7d28bae/items?Fields=Tags&Recursive=true&SortBy=SortName&SortOrder=Ascending&IncludeItemTypes=Series. UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-GB) WindowsPowerShell/5.1.17134.407
2018-12-15 12:40:09.216 Info HttpServer: HTTP Response 200 to 192.168.1.150. Time: 45ms. http://192.168.1.150:8988/emby/Users/a08711a48b194896b8cc7961d7d28bae/items?Fields=Tags&Recursive=true&SortBy=SortName&SortOrder=Ascending&IncludeItemTypes=Series
2018-12-15 12:40:09.929 Info HttpServer: HTTP GET http://192.168.1.150:8988/emby/Users/a08711a48b194896b8cc7961d7d28bae/items?Recursive=true&SortBy=SeriesName,ParentIndexNumber,IndexNumber&SortOrder=Ascending&IncludeItemTypes=Episode&IsMissing=False&Filters=IsPlayed&MinDateLastSavedForUser=2018-12-08T12:40:09Z. UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-GB) WindowsPowerShell/5.1.17134.407
2018-12-15 12:40:09.933 Info HttpServer: HTTP Response 200 to 192.168.1.150. Time: 4ms. http://192.168.1.150:8988/emby/Users/a08711a48b194896b8cc7961d7d28bae/items?Recursive=true&SortBy=SeriesName,ParentIndexNumber,IndexNumber&SortOrder=Ascending&IncludeItemTypes=Episode&IsMissing=False&Filters=IsPlayed&MinDateLastSavedForUser=2018-12-08T12:40:09Z
2018-12-15 12:47:59.554 Info App: Udp message sent to 192.168.1.246:47032
2018-12-15 12:47:59.554 Info App: Udp message sent to 192.168.1.246:47032
2018-12-15 12:47:59.555 Info App: Udp message sent to 192.168.1.246:47032
2018-12-15 12:47:59.555 Info App: Udp message sent to 192.168.1.246:47032

The Spinning Circle doesn't time out.

 

I can't get it to connect to my Plex server either.



#27 kingargyle OFFLINE  

kingargyle

    Advanced Member

  • Members
  • 65 posts

Posted 15 December 2018 - 03:02 PM

@kingargyle - This is in the server log when I the app tries to get a list of users:

 

2018-12-15 12:40:05.788 Info HttpServer: HTTP GET http://192.168.1.150:8988/system/Info/Public. UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-GB) WindowsPowerShell/5.1.17134.407
2018-12-15 12:40:05.788 Info HttpServer: HTTP Response 200 to 192.168.1.150. Time: 0ms. http://192.168.1.150:8988/system/Info/Public
2018-12-15 12:40:07.890 Info HttpServer: HTTP POST http://192.168.1.150:8988/Users/AuthenticateByName?format=json. UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-GB) WindowsPowerShell/5.1.17134.407
2018-12-15 12:40:07.891 Error UserManager: Error authenticating with provider Default
*** Error Report ***
Version: 3.6.0.77
Command line: C:\Users\Media\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
Operating system: Microsoft Windows NT 6.2.9200.0
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Processor count: 4
Program data path: C:\Users\Media\AppData\Roaming\Emby-Server
Application directory: C:\Users\Media\AppData\Roaming\Emby-Server\system
System.Exception: System.Exception: Invalid username or password
   at Emby.Server.Implementations.Library.DefaultAuthenticationProvider.Authenticate(String username, String password, User resolvedUser)
   at Emby.Server.Implementations.Library.UserManager.AuthenticateWithProvider(IAuthenticationProvider provider, String username, String password, User resolvedUser)
Source: Emby.Server.Implementations
TargetSite: System.Threading.Tasks.Task`1[MediaBrowser.Controller.Authentication.ProviderAuthenticationResult] Authenticate(System.String, System.String, MediaBrowser.Controller.Entities.User)
   at Emby.Server.Implementations.Library.DefaultAuthenticationProvider.Authenticate(String username, String password, User resolvedUser)
   at Emby.Server.Implementations.Library.UserManager.AuthenticateWithProvider(IAuthenticationProvider provider, String username, String password, User resolvedUser)

2018-12-15 12:40:07.892 Info UserManager: Authentication request for Master has succeeded.
2018-12-15 12:40:07.892 Info SessionManager: Reissuing access token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2018-12-15 12:40:07.893 Info HttpServer: HTTP Response 200 to 192.168.1.150. Time: 2ms. http://192.168.1.150:8988/Users/AuthenticateByName?format=json
2018-12-15 12:40:07.931 Info HttpServer: HTTP GET http://192.168.1.150:8988/emby/users. UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-GB) WindowsPowerShell/5.1.17134.407
2018-12-15 12:40:07.931 Info HttpServer: HTTP Response 200 to 192.168.1.150. Time: 1ms. http://192.168.1.150:8988/emby/users
2018-12-15 12:40:08.074 Info HttpServer: HTTP GET http://192.168.1.150:8988/emby/Users/633f85ef4e0e4f45879c7e88469d0ff5/items?Fields=Tags&Recursive=true&SortBy=SortName&SortOrder=Ascending&IncludeItemTypes=Series. UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-GB) WindowsPowerShell/5.1.17134.407
2018-12-15 12:40:08.085 Info HttpServer: HTTP Response 200 to 192.168.1.150. Time: 11ms. http://192.168.1.150:8988/emby/Users/633f85ef4e0e4f45879c7e88469d0ff5/items?Fields=Tags&Recursive=true&SortBy=SortName&SortOrder=Ascending&IncludeItemTypes=Series
2018-12-15 12:40:08.983 Info HttpServer: HTTP GET http://192.168.1.150:8988/emby/Users/633f85ef4e0e4f45879c7e88469d0ff5/items?Recursive=true&SortBy=SeriesName,ParentIndexNumber,IndexNumber&SortOrder=Ascending&IncludeItemTypes=Episode&IsMissing=False&Filters=IsPlayed&MinDateLastSavedForUser=2018-12-08T12:40:08Z. UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-GB) WindowsPowerShell/5.1.17134.407
2018-12-15 12:40:08.984 Info HttpServer: HTTP Response 200 to 192.168.1.150. Time: 2ms. http://192.168.1.150:8988/emby/Users/633f85ef4e0e4f45879c7e88469d0ff5/items?Recursive=true&SortBy=SeriesName,ParentIndexNumber,IndexNumber&SortOrder=Ascending&IncludeItemTypes=Episode&IsMissing=False&Filters=IsPlayed&MinDateLastSavedForUser=2018-12-08T12:40:08Z
2018-12-15 12:40:09.171 Info HttpServer: HTTP GET http://192.168.1.150:8988/emby/Users/a08711a48b194896b8cc7961d7d28bae/items?Fields=Tags&Recursive=true&SortBy=SortName&SortOrder=Ascending&IncludeItemTypes=Series. UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-GB) WindowsPowerShell/5.1.17134.407
2018-12-15 12:40:09.216 Info HttpServer: HTTP Response 200 to 192.168.1.150. Time: 45ms. http://192.168.1.150:8988/emby/Users/a08711a48b194896b8cc7961d7d28bae/items?Fields=Tags&Recursive=true&SortBy=SortName&SortOrder=Ascending&IncludeItemTypes=Series
2018-12-15 12:40:09.929 Info HttpServer: HTTP GET http://192.168.1.150:8988/emby/Users/a08711a48b194896b8cc7961d7d28bae/items?Recursive=true&SortBy=SeriesName,ParentIndexNumber,IndexNumber&SortOrder=Ascending&IncludeItemTypes=Episode&IsMissing=False&Filters=IsPlayed&MinDateLastSavedForUser=2018-12-08T12:40:09Z. UserAgent: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-GB) WindowsPowerShell/5.1.17134.407
2018-12-15 12:40:09.933 Info HttpServer: HTTP Response 200 to 192.168.1.150. Time: 4ms. http://192.168.1.150:8988/emby/Users/a08711a48b194896b8cc7961d7d28bae/items?Recursive=true&SortBy=SeriesName,ParentIndexNumber,IndexNumber&SortOrder=Ascending&IncludeItemTypes=Episode&IsMissing=False&Filters=IsPlayed&MinDateLastSavedForUser=2018-12-08T12:40:09Z
2018-12-15 12:47:59.554 Info App: Udp message sent to 192.168.1.246:47032
2018-12-15 12:47:59.554 Info App: Udp message sent to 192.168.1.246:47032
2018-12-15 12:47:59.555 Info App: Udp message sent to 192.168.1.246:47032
2018-12-15 12:47:59.555 Info App: Udp message sent to 192.168.1.246:47032

The Spinning Circle doesn't time out.

 

I can't get it to connect to my Plex server either.

 

 

For Plex you'll need to disable HTTPS and multi-user support.  If you have Plex Pass it will have issues connecting as well.   Unfortunately, there isn't really a good documented API on Plex so I had to reverse engineer a lot of things.

 

 

On Emby do you have it setup to require a PIN or Password for user profile authentication?   Also it looks like instead of port 8096, you have your Emby running on 8988.   I know that right now, the emby client is only looking for things on 8096 by default.   If you can try with emby server on port 8096 that will help in figuring things out.

 

Also, if you could, please open a bug on the project's site, we can try to work it out and get a fix in the next maintenance release.

 

https://github.com/N...roid/issues/new


Edited by kingargyle, 15 December 2018 - 03:03 PM.


#28 CBers OFFLINE  

CBers

    Advanced Member

  • Moderators
  • 15396 posts
  • Local time: 04:10 PM
  • LocationKent, England.

Posted 15 December 2018 - 03:43 PM

OK, I'll get an issue raised.

Yes, I use port 8988. Why does the app ask for a port if you're ignoring it?

I'll change to 8096 as a test and update the issue once raised.

The app seems to find the servers OK, just doesn't return the user list to select from. My users don't have passwords or Pins.

#29 CBers OFFLINE  

CBers

    Advanced Member

  • Moderators
  • 15396 posts
  • Local time: 04:10 PM
  • LocationKent, England.

Posted 15 December 2018 - 03:44 PM

https://github.com/N...roid/issues/414

#30 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 134563 posts
  • Local time: 11:10 AM

Posted 15 December 2018 - 05:26 PM

What params are you passing to login?



#31 CBers OFFLINE  

CBers

    Advanced Member

  • Moderators
  • 15396 posts
  • Local time: 04:10 PM
  • LocationKent, England.

Posted 15 December 2018 - 05:43 PM

What params are you passing to login?

 
I assume that's to @kingargyle ?

For the record, I am running Emby Beta server, v3.6.0.77.

#32 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 134563 posts
  • Local time: 11:10 AM

Posted 15 December 2018 - 05:44 PM

Yes that's to him.



#33 kingargyle OFFLINE  

kingargyle

    Advanced Member

  • Members
  • 65 posts

Posted 15 December 2018 - 08:10 PM

What params are you passing to login?

 

@Luke

 

The issue appears to be in retrieving the list of users if I'm understanding the issue correctly.

 

I do a fetch of All Public Users:

 

@get("/emby/Users/Public")
fun allPublicUsers(): Call<List<PublicUserInfo>>

 

Then use the list returned to display the users.

 

Once a list of users is available and a user profile is selected, I authenticate by passing in an empty string for the MD5 Hash, and the user name.  Both password fields are filled with an Empty String as well.

 

This works with my 3.3.0 server version.  I need to install a development server and test with the latest version in case things have changed.



#34 kingargyle OFFLINE  

kingargyle

    Advanced Member

  • Members
  • 65 posts

Posted 15 December 2018 - 08:32 PM

OK, I'll get an issue raised.

Yes, I use port 8988. Why does the app ask for a port if you're ignoring it?

I'll change to 8096 as a test and update the issue once raised.

The app seems to find the servers OK, just doesn't return the user list to select from. My users don't have passwords or Pins.

 

I'm making a change to correctly configure the server port based on the information that is found during the server discovery.   I just never had a user that had the server on a different port besides 32400 for plex, or 8096 for Emby.  I'll try and get a test APK for you to try in the next day or so.


  • CBers likes this

#35 kingargyle OFFLINE  

kingargyle

    Advanced Member

  • Members
  • 65 posts

Posted 15 December 2018 - 08:55 PM

I'm able to replicate the issue on Emby Server 3.6.x...  I'm getting a date deserialization issue when retrieving the users.

 

The date format is coming in as:  2018-12-16T00:44:01.1498328+00:00

 

Where as in past Emby Servers it was coming in as: yyyy-MM-dd'T'HH:mm:ss.SSSSSSS'Z'



#36 CBers OFFLINE  

CBers

    Advanced Member

  • Moderators
  • 15396 posts
  • Local time: 04:10 PM
  • LocationKent, England.

Posted 16 December 2018 - 05:16 AM

Thanks for the update @kingargyle.

Luke - are you able to assist above?

#37 kingargyle OFFLINE  

kingargyle

    Advanced Member

  • Members
  • 65 posts

Posted 16 December 2018 - 10:37 AM

Thanks for the update @kingargyle.

Luke - are you able to assist above?

 

I actually made a change in Serenity to handle both date formats.   I'll have a new test build up in a bit.


  • CBers likes this

#38 kingargyle OFFLINE  

kingargyle

    Advanced Member

  • Members
  • 65 posts

Posted 16 December 2018 - 10:50 AM

Serenity for Android 2.1.0-M1 is available to download:

 

This is a potential 2.0.4 release, as it fixes an issue with accessing Emby Server 3.6.x.  Users of 3.6.x are encouraged to give this a test and report back any additional bugs that you encounter.

 

https://github.com/N...s/tag/v2.1.0-M1


  • CBers likes this

#39 CBers OFFLINE  

CBers

    Advanced Member

  • Moderators
  • 15396 posts
  • Local time: 04:10 PM
  • LocationKent, England.

Posted 16 December 2018 - 01:03 PM

I actually made a change in Serenity to handle both date formats. I'll have a new test build up in a bit.


Connection now works fine against the beta server.

Having issues with playback of certain content, but there is a new ISSUE that has been raised by @kingargyle.

https://github.com/N...roid/issues/415

#40 FrostByte OFFLINE  

FrostByte

    Advanced Member

  • ForumMod
  • 4139 posts
  • Local time: 11:10 AM
  • LocationThe UP

Posted 16 December 2018 - 01:21 PM

Will this app trigger HDR when playing reencoded 4K video with the black bars cropped?  There appears to be a problem with ATV and a height of anything < 2160 pixels 


Edited by FrostByte, 16 December 2018 - 01:24 PM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users