Posts: 2
Joined: Nov 2016
Reputation:
0
Hello, I'm a C++ developer,
I would like to know if there is a way to use some sort of API to embed the kodi output from a DVB-T video channel to a Window control and How to handle the setup separately.
Thanks
Posts: 1,506
Joined: Nov 2013
Posts: 2
Joined: Nov 2016
Reputation:
0
Thanks ironic_monkey, so there are no API.
But do you know if exist some sample of using kodi structures and functions in a C++ project ?
Thanks
Posts: 1,506
Joined: Nov 2013
2016-11-15, 16:49
(This post was last modified: 2016-11-15, 16:51 by ironic_monkey.)
the only sample would be the kodi code. i think you will have a very very hard time extracting the player/pvr code as it has tentacles.. everywhere. so it would be a guide but not much more than that.
naturally there are APIs for interfacing with kodi, but there is no API to get output streams. it has always been add-ons feeding the core.
if you are serious about this, i would start with the PVR API
https://github.com/xbmc/xbmc/blob/master..._pvr_dll.h. note: this is the API of the pvr add-on itself (what kodi expects from the shared object). the mocking will be mocking of
https://github.com/xbmc/xbmc/blob/master...XBMC_pvr.h with friends. these are the callbacks add-on can do to kodi. implement dummies for the interface until you are able to load the shared objects. then start replacing mocks with appropriate implementations for the subset you need. it will be tedious work.
such an effort could easily be molded into a test framework for the add-ons so please do share the code if you start on this.