Nice work! You've achieved the holy grail of iptv simple client.
All you need to do is to create builds for a few dozen Kodi versions, devices and operating system combinations.
I managed to get it working on Ubuntu 16.04 but it needed a few extras.
This is my experience so far:
Kodi needs to be checked out with the Krypton branch.
It needs to be built too with all the dependencies to build it.
Folllow the ubuntu readme then the linux readme in xbmc/docs.
cmake needs upgrading manually or it can't extract zlib from the tar.gz file in depends.
I followed these instructions:
https://askubuntu.com/a/865294
The xbmc-pvr-iptvsimple project name needs to be renamed to pvr.iptvsimple to follow the build instructions.
The cmake command needs to be the one from the Krypton branch. The one in the readme.md is for Leia.
https://github.com/kodi-pvr/pvr.iptvsimple/tree/Krypton
The PVRScheduler spins at 100% cpu unless you add in a sleep() into the while loop like this:
https://github.com/primaeval/xbmc-pvr-ip...b71930dR89
Python addons can run executables from the Android data/data folder if the permissions are changed to executable by the kodi user.
I've done that in my IPTV Recorder addon.
At that very least you might be able to launch ffmpeg via rpc through a python addon if it can't be done in the c pvr addon.
https://github.com/primaeval/plugin.vide...in.py#L387
https://github.com/primaeval/plugin.vide...in.py#L401
My current IPTV Recorder ffmpeg settings use a simple ts container to reduce cpu to a minimum.
I also found a few ffmpeg parameters that deal with bad stream connections that might be useful for you.
https://github.com/primaeval/plugin.vide...in.py#L612