Support for Android OS native TIF (TV Input Framework)?
Added by Magnus Hedlund over 8 years ago
Appently from Android 5.0 (API level 21) the OS have an integrated TV Input Framework (TIF) with built-in tuner input support.
Wondering if it would be possible to add support for Android TIF into Tvheadend to access TV tuners when running on Android?
http://source.android.com/devices/tv/
http://developer.android.com/training/tv/tif/index.html
https://developer.android.com/reference/android/media/tv/package-summary.html
https://github.com/googlesamples/androidtv-sample-inputs
Point is it would be very nice have Tvheadend accessing TV tuners through Android TIF when running nativly on Android.
Replies (2)
RE: Support for Android OS native TIF (TV Input Framework)? - Added by Magnus Hedlund over 8 years ago
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?
RE: Support for Android OS native TIF (TV Input Framework)? - Added by Magnus Hedlund over 8 years ago
Jaroslav Kysela wrote:
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."