PVR API changes (add-on authors: read this!)

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Closed
x-cimo Offline
Senior Member
Posts: 121
Joined: Oct 2012
Reputation: 0
Post: #46
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
find
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 2,274
Joined: Feb 2009
Reputation: 29
Location: Heerlen, The Netherlands
Post: #47
no, this is not the right place for questions or bugs

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 2,274
Joined: Feb 2009
Reputation: 29
Location: Heerlen, The Netherlands
Post: #48
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

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find
piotrasd Offline
Senior Member
Posts: 249
Joined: Aug 2009
Reputation: 11
Post: #49
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)
find
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 2,274
Joined: Feb 2009
Reputation: 29
Location: Heerlen, The Netherlands
Post: #50
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.

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find
piotrasd Offline
Senior Member
Posts: 249
Joined: Aug 2009
Reputation: 11
Photo  RE: PVR API changes (add-on authors: read this!)
Post: #51
SORRY for delate post
(This post was last modified: 2013-11-09 20:22 by piotrasd.)
find
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 2,274
Joined: Feb 2009
Reputation: 29
Location: Heerlen, The Netherlands
Post: #52
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.

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find
janbar Offline
Posting Freak
Posts: 902
Joined: Sep 2012
Reputation: 49
Location: France
Post: #53
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. :/
(This post was last modified: 2015-03-08 14:58 by janbar.)
find
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 2,274
Joined: Feb 2009
Reputation: 29
Location: Heerlen, The Netherlands
Post: #54
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.

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find
xhaggi Offline
Team-Kodi Developer
Posts: 645
Joined: Jul 2012
Reputation: 23
Post: #55
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/f8...d6b9c65b6f
pull request: https://github.com/xbmc/xbmc/pull/6685
(This post was last modified: 2015-03-17 10:28 by xhaggi.)
find
xhaggi Offline
Team-Kodi Developer
Posts: 645
Joined: Jul 2012
Reputation: 23
Post: #56
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/f1...247b55a354
pull request: https://github.com/xbmc/xbmc/pull/6333
(This post was last modified: 2015-03-17 10:28 by xhaggi.)
find
FernetMenta Offline
Team-Kodi Developer
Posts: 6,190
Joined: Jul 2010
Reputation: 140
Location: Munich
Post: #57
New API change: https://github.com/xbmc/xbmc/pull/8896

Real-time streams need special treatment because buffers won't fill once playback was started.
find
FernetMenta Offline
Team-Kodi Developer
Posts: 6,190
Joined: Jul 2010
Reputation: 140
Location: Munich
Post: #58
New API change for Addons having their own demuxer: https://github.com/xbmc/xbmc/pull/9290
find
FernetMenta Offline
Team-Kodi Developer
Posts: 6,190
Joined: Jul 2010
Reputation: 140
Location: Munich
Post: #59
API Change: https://github.com/xbmc/xbmc/pull/10985

Signature of function SeekTime was changes, parameter time form int to double. Addon authors who have implemented this function are requested to check their addons.
I only did the necessary changes to make them build again.
find
Thread Closed