Kodi Community Forum
PVR API changes (add-on authors: read this!) - Printable Version

+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Add-ons (/forumdisplay.php?fid=26)
+---- Forum: PVR (/forumdisplay.php?fid=136)
+---- Thread: PVR API changes (add-on authors: read this!) (/showthread.php?tid=97764)

Pages: 1 2 3 4


RE: PVR API changes (add-on authors: read this!) - x-cimo - 2012-11-14 04:33

Not sure if this is the right place, but I`m working on a plugin that use the XBMC GetInfoBooleans, and the
Pvr.IsPlayingTv is working properly however the Pvr.IsPlayingRecording always return false.

Thanks


RE: PVR API changes (add-on authors: read this!) - opdenkamp - 2012-11-14 19:49

no, this is not the right place for questions or bugs


RE: PVR API changes (add-on authors: read this!) - opdenkamp - 2012-12-20 02:59

minor change: in the add-on xml, a line must be present to check API compatibility, so add-ons can be installed from a repository properly:
PHP Code:
<requires>
  <
import addon="xbmc.pvr" version="1.6.0"/>
</
requires



RE: PVR API changes (add-on authors: read this!) - piotrasd - 2013-05-21 23:03

Hi
There is any chance extend functionality ?

actual API i very limited.

now special we this feel when we somethig want create, some changes in skin, widget etc. and in actual API we connot find for this special Call
and we must create some extra service, script etc :/

what i mean:
[Image: _pvr_infobar.jpg]

On this info bar for show TP freq, FEC, pol. we need create extra service wich will be extract this data from channels list becuase API dont delivery this Sad

second Example:
If we have 1 tuner DVB-S2 and watch some channel - tuner is LOCKED to one TP - and we can watch other programs from this same TP (example when recoding is active) but now there is no possibility LIST/show wich channels we can play in this same time .. because also info about TP is not delivery - so now we can only try One by One for cheking wich working :/
If this info API will delivery then easy we can sort channels - or list channels wich actual will be work (when recording is active, or if second client watch something)


RE: PVR API changes (add-on authors: read this!) - opdenkamp - 2013-05-24 11:06

please create a topic with your proposition(s) for changes, don't post them here. this topic is about actual changes that have been implemented.


RE: PVR API changes (add-on authors: read this!) - piotrasd - 2013-11-09 20:21

SORRY for delate post


RE: PVR API changes (add-on authors: read this!) - opdenkamp - 2015-03-06 22:53

Right, let's get this thread going again. The following things have been changed in pvr api version 1.9.5:

PVR_RECORDING struct has a new field, which can be used to link EPG tags to recordings.
PHP Code:
unsigned int iEpgEventId/*!< @brief (optional) EPG event id associated with this recording */ 
this field replaces the strRecordingId field in the EPG_TAG struct.

Setting this ID from the add-on will allow users to play a recording from the timeline and from the channels window.

libXBMC_gui.h has been replaced by libKODI_guilib.h, and all member names have been changed to match the new name.
For the add-ons not using any of this: change the name of the included file, and change XBMC_GUI_API_VERSION to KODI_GUILIB_API_VERSION, and XBMC_GUI_MIN_API_VERSION to KODI_GUILIB_MIN_API_VERSION in your code.


RE: PVR API changes (add-on authors: read this!) - janbar - 2015-03-08 13:57

Hi Lars, something is broken since API 1.9.5: non flattened view of recordings does not show any recording. Until commit 8d9754b1205124e6ded1f0395570a5223a6f148a it was ok. :/


RE: PVR API changes (add-on authors: read this!) - opdenkamp - 2015-03-10 20:06

This thread is to announce API changes, not to ask for help or report bugs, so making this thread read-only (for you ;-)). Please create a new thread to report bugs.


RE: PVR API changes (add-on authors: read this!) - xhaggi - 2015-03-17 10:22

2015-03-16: New property for PVR_CHANNEL_GROUP

API Version: 1.9.6

PHP Code:
unsigned int iPosition/*!< @brief (optional) sort position of the group (0 indicates that the backend doesn't support sorting of groups) */ 

git commit: https://github.com/xhaggi/xbmc/commit/f84b479df448093dfc254c5993f836d6b9c65b6f
pull request: https://github.com/xbmc/xbmc/pull/6685


RE: PVR API changes (add-on authors: read this!) - xhaggi - 2015-03-17 10:23

2015-03-16: New properties for EPG_TAG

API Version: 1.9.6

PHP Code:
const char strOriginalTitle/*!< @brief (optional) originaltitle */
const char strCast;          /*!< @brief (optional) cast */
const char strDirector;      /*!< @brief (optional) director */
const char strWriter;        /*!< @brief (optional) writer */
int iYear;                     /*!< @brief (optional) year */
const char strIMDBNumber;    /*!< @brief (optional) IMDBNumber */ 

git commit: https://github.com/xhaggi/xbmc/commit/f12b14090233a890506ef3588ea9ae247b55a354
pull request: https://github.com/xbmc/xbmc/pull/6333