Feature #3622
open
All mentioned links are for Android Java applications. We need to know the support of the MPEG-TS input through NDK (Native Development Kit) APIs.
Jaroslav Kysela wrote:
All mentioned links are for Android Java applications. We need to know the support of the MPEG-TS input through NDK (Native Development Kit) APIs.
As I understand it you can access Android's Javi API interfaces with NDK applications too, just see Kodi/XBMC which is a C++ application that also uses the NDK. The Kodi development team have developed wrappers for JNI (Java Native Interface) to access functions and features that are made for Android Java applications. See:
https://github.com/xbmc/xbmc/tree/master/tools/android/packaging/xbmc/src/org/xbmc/kodi
Maybe it is possible to add a JNI wrapper for each of the TIF (TV Input Framework) objects?
Or are you saying that Google have made it impossible to NDK applications to access and use TIF (TV Input Framework)? If so then maybe there are possibly different workarounds for using Tvheadend on the Android OS? Like perhaps interface at a different layer?
I don't know. If Google has API for C language which we can use as input for MPEG-TS, then we can add it as the source.
I asked the same question to a VDR developer and got the answer that:
"in order to add support for Android TIF to VDR you will need to write a plugin that implements a class derived from cDevice.
You could use the existing 'rpihddevice' plugin as a starting point ( see https://projects.vdr-developer.org/git/vdr-plugin-rpihddevice.git ).
This plugin implements support for the Raspberry Pi."
It's different thing - audio/video decoder / presenter. I'm talking about MPEG-TS input to get data from tuners on android devices (if the don't follow the linux standard: linux dvbapi).
Maybe there are some points which are not clear.
TV Input Framework is a Android TV Framework where you can write a client app for a Android TV device (e.g. NexusPlayer or NVIDIA Shield TV) which is using a tv-server-backend like Tvheadend or VDR.
Similar the PVR addons for Kodi (pvr hts client). This Android TV client app can then connect to the tv-server-backend and receiving all the needed information like EPG, channel-icons, streaming-url, etc.
For TV Input Framework on Android TV you need a ...:
1. ... client like Nexus Player or NVIDIA Shield TV with a client app which uses the Android TV Input Framework and then are be used in the Google app "Live Channels" (uses integrated ExoPlayer) or a seperate/own app.
2. ... server like Tvheadend or VDR (of course local or remote) which has the role of a tv backend server and is understanding the requests from the client app.
I believe this old one can be closed.
There is already an android tv plugin exactly for what's being requested here.
Owners of Android TV Sony's are pretty happy with it.
I just I started testing it this week with a Xiaomi Box 4K that comes with Android TV and it's working ok but still a lot to implement & fix.
Some discussion here:
https://tvheadend.org/boards/5/topics/21407
Plugin github here:
https://github.com/kiall/android-tvheadend
Also available in: Atom
PDF