NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 2 3 4 5 … 93 Next »
Developing Android TV client

 
  • 0 Vote(s) - 0 Average
Developing Android TV client
fred250
Offline

Senior Member

Posts: 457
Threads: 10
Joined: Jul 2006
#1
2020-11-16, 01:40 PM (This post was last modified: 2020-11-16, 01:41 PM by fred250.)
I have started developing an Android TV client for NPVR. 
I wish it to have the native NPVR-GUI and playback controls/OSD as well as the option of using my custom playback controls and graphics. 
I’d like to support both NPVR4 and 5.

I choose Xamarin platform and using VLC (LibVLCSharp) for playback. VLC allows for excellent playback of many filetypes on Android, including MPEG2 without transcoding.  Smile
So, is there a guide on how to use the web-API correctly? Developing my previous clients I guessed a lot and examined Martins python scripts for methods etc. 
Now if I build something completely new, I wish to do it right and futureproof from the beginning bearing in mind targeting both NPVR4 and 5.

The basics up and running but... 
Currently having trouble with two things:

#1: login with pin. Don’t know if I’m missing a NPVR-setting or not Hashing correctly.
Gets sid and salt, but fails on login, need some (working) .net standard code for generating the MD5-hash.
 
#2: What are the correct steps and methods to call for using native playback controls and getting OSD to work? 
Example code?
 
/Fred
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,767
Threads: 954
Joined: May 2006
#2
2020-11-16, 02:34 PM
Good to see you back. There is no guide. I still guess a lot which is why I like python for adhoc testing. Just in case to respect the NextPVR license you either have to develop a free app or contact sub about a license. I dropped support for Emby because it is a commercial app.

For portability v4/v5 the best model is Kodi but it is xml https://github.com/kodi-pvr/pvr.nextpvr. All the interfaces should be JSON compatible if you add the application/json header or &format=json parameter but responses can be different.

The reference API fro guessing is sub's v5 web page js code.

For .netcore here is the jellyfin code https://github.com/jellyfin/jellyfin-plugin-nextpvr I didn't develop the Emby model used as the base but it has many API calls. The login logic is here https://github.com/jellyfin/jellyfin-plu...ice.cs#L85 It is not at all compatible with NEWA JSON but the login should work on both.

For UI client (what sub decided to call the NextPVR GUI) your existing code should be ok for v4/v5. I can't remember any changes for years. You talk about future proof sub has talked about rewriting the Window client. I'd also suggest looking at the SageTV mini client since it uses a similar mode to have the Sage framebuffer GUI with Android. control of a couple of libraries.

The faster Hauppauge UI used on the MVP and mvpmc is gone though which is too bad it still is pretty slick in comparison. In UI client pausing and navigating Live TV isn't supported. If you want this you would have to come up with a solution. What I allow in knewc UI client is the option of

When you say Android TV do you mean real Android TV or Android "TV" box? No Android TV and very few legitimate Android boxes need mpeg2 video support that would be more for phones which I've left to sub's app. VLC is probably better for esoteric file types if you think there is still a use case for the Video and Audio libraries.

For Android TV I started a Live Channels client but still await sub "ok "to move forward since I don't want to compete with his Android client. I use Exoplayer with its ffmpeg addon for mpeg2 and ac3 audio and I don't have any issues with our channels. I have the login in Java in that one if you neede it. The Exoplayer controls for Android are very wall documented.

If you'd like I can upload a version of Exoplayer with udp auto discovery and basic NextPVR Live TV if you want to see how direct play works for you. The apk should run on any of your boxes.

Martin
fred250
Offline

Senior Member

Posts: 457
Threads: 10
Joined: Jul 2006
#3
2020-11-16, 06:33 PM
Thanks Martin,

Lots of useful info.

/Fred
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Web Client: Slow with separate thread and date not obscured cncb 32 15,694 2016-10-10, 02:01 PM
Last Post: mvallevand
  How to tell when video playback has finished in web client? cncb 6 4,200 2015-09-29, 08:07 PM
Last Post: cncb
  How to get edl information for videos in a web client? fred250 27 10,464 2014-12-10, 12:39 AM
Last Post: fred250
  I want to start developing plugins...but how? OrenShapir 6 3,986 2014-11-18, 10:38 PM
Last Post: mvallevand
  Remote client logout timeout. mvallevand 2 2,504 2014-10-28, 12:55 AM
Last Post: mvallevand
  Tuner plugins and client id mvallevand 2 2,039 2013-07-03, 01:39 AM
Last Post: mvallevand
  Client - Tuner plugins mvallevand 53 13,406 2011-09-17, 07:19 PM
Last Post: mvallevand
  Anyone interested in developing a Skin Plugin? Hairy 13 4,923 2011-07-10, 04:13 PM
Last Post: mvallevand
  Webservice API to support Android App development Barsk 4 3,213 2010-10-19, 07:31 AM
Last Post: Barsk
  Client/server detection imilne 1 1,662 2010-08-08, 04:23 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode