diff options
| author | manuel <manuel@mausz.at> | 2017-08-15 17:40:26 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2017-08-15 17:40:26 +0200 |
| commit | 86b22151f0758311fd146ff508e7254337414bc1 (patch) | |
| tree | fdd6ca46ba57b7f063740541c034ce60c7cdd0c5 /xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h | |
| parent | 4c3251ec645c8b71820dab7e51e612e5919d4e75 (diff) | |
| download | kodi-pvr-build-86b22151f0758311fd146ff508e7254337414bc1.tar.gz kodi-pvr-build-86b22151f0758311fd146ff508e7254337414bc1.tar.bz2 kodi-pvr-build-86b22151f0758311fd146ff508e7254337414bc1.zip | |
sync with upstream
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h index 11e39f8..3dbf1c8 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/xbmc_pvr_dll.h | |||
| @@ -410,14 +410,6 @@ extern "C" | |||
| 410 | long long LengthLiveStream(void); | 410 | long long LengthLiveStream(void); |
| 411 | 411 | ||
| 412 | /*! | 412 | /*! |
| 413 | * Switch to another channel. Only to be called when a live stream has already been opened. | ||
| 414 | * @param channel The channel to switch to. | ||
| 415 | * @return True if the switch was successful, false otherwise. | ||
| 416 | * @remarks Required if bHandlesInputStream or bHandlesDemuxing is set to true. Return false if this add-on won't provide this function. | ||
| 417 | */ | ||
| 418 | bool SwitchChannel(const PVR_CHANNEL& channel); | ||
| 419 | |||
| 420 | /*! | ||
| 421 | * Get the signal status of the stream that's currently open. | 413 | * Get the signal status of the stream that's currently open. |
| 422 | * @param signalStatus The signal status. | 414 | * @param signalStatus The signal status. |
| 423 | * @return True if the signal status has been read successfully, false otherwise. | 415 | * @return True if the signal status has been read successfully, false otherwise. |
| @@ -434,12 +426,24 @@ extern "C" | |||
| 434 | PVR_ERROR GetDescrambleInfo(PVR_DESCRAMBLE_INFO* descrambleInfo); | 426 | PVR_ERROR GetDescrambleInfo(PVR_DESCRAMBLE_INFO* descrambleInfo); |
| 435 | 427 | ||
| 436 | /*! | 428 | /*! |
| 437 | * Get the stream URL for a channel from the backend. Used by the MediaPortal add-on. | 429 | * Get the stream properties for a channel from the backend. |
| 438 | * @param channel The channel to get the stream URL for. | 430 | * @param[in] channel The channel to get the stream properties for. |
| 439 | * @return The requested URL. | 431 | * @param[inout] properties in: an array for the properties to return, out: the properties required to play the stream. |
| 440 | * @remarks Optional, and only used if bHandlesInputStream is set to true. Return NULL if this add-on won't provide this function. | 432 | * @param[inout] iPropertiesCount: in the size of the properties array, out: the number of properties returned. |
| 433 | * @return PVR_ERROR_NO_ERROR if the stream is available. | ||
| 434 | * @remarks Required if PVR_ADDON_CAPABILITIES::bSupportsTV or PVR_ADDON_CAPABILITIES::bSupportsRadio are set to true and PVR_ADDON_CAPABILITIES::bHandlesInputStream is set to false. In this case the implementation must fill the property PVR_STREAM_PROPERTY_STREAMURL with the URL Kodi should resolve to playback the channel. Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. | ||
| 435 | */ | ||
| 436 | PVR_ERROR GetChannelStreamProperties(const PVR_CHANNEL* channel, PVR_NAMED_VALUE* properties, unsigned int* iPropertiesCount); | ||
| 437 | |||
| 438 | /*! | ||
| 439 | * Get the stream properties for a recording from the backend. | ||
| 440 | * @param[in] channel The recording to get the stream properties for. | ||
| 441 | * @param[inout] properties in: an array for the properties to return, out: the properties required to play the stream. | ||
| 442 | * @param[inout] iPropertiesCount: in the size of the properties array, out: the number of properties returned. | ||
| 443 | * @return PVR_ERROR_NO_ERROR if the stream is available. | ||
| 444 | * @remarks Required if PVR_ADDON_CAPABILITIES::bSupportsRecordings is set to true and the add-on does not implement recording stream functions (OpenRecordedStream, ...). In this case your implementation must fill the property PVR_STREAM_PROPERTY_STREAMURL with the URL Kodi should resolve to playback the recording. Return PVR_ERROR_NOT_IMPLEMENTED if this add-on won't provide this function. | ||
| 441 | */ | 445 | */ |
| 442 | const char* GetLiveStreamURL(const PVR_CHANNEL& channel); | 446 | PVR_ERROR GetRecordingStreamProperties(const PVR_RECORDING* recording, PVR_NAMED_VALUE* properties, unsigned int* iPropertiesCount); |
| 443 | 447 | ||
| 444 | /*! | 448 | /*! |
| 445 | * Get the stream properties of the stream that's currently being read. | 449 | * Get the stream properties of the stream that's currently being read. |
| @@ -537,14 +541,6 @@ extern "C" | |||
| 537 | //@} | 541 | //@} |
| 538 | 542 | ||
| 539 | /*! | 543 | /*! |
| 540 | * Delay to use when using switching channels for add-ons not providing an input stream. | ||
| 541 | * If the add-on does provide an input stream, then this method will not be called. | ||
| 542 | * Those add-ons can do that in OpenLiveStream() if needed. | ||
| 543 | * @return The delay in milliseconds. | ||
| 544 | */ | ||
| 545 | unsigned int GetChannelSwitchDelay(void); | ||
| 546 | |||
| 547 | /*! | ||
| 548 | * Check if the backend support pausing the currently playing stream | 544 | * Check if the backend support pausing the currently playing stream |
| 549 | * This will enable/disable the pause button in XBMC based on the return value | 545 | * This will enable/disable the pause button in XBMC based on the return value |
| 550 | * @return false if the PVR addon/backend does not support pausing, true if possible | 546 | * @return false if the PVR addon/backend does not support pausing, true if possible |
| @@ -638,6 +634,11 @@ extern "C" | |||
| 638 | void OnPowerSavingDeactivated(); | 634 | void OnPowerSavingDeactivated(); |
| 639 | 635 | ||
| 640 | /*! | 636 | /*! |
| 637 | * Get stream times. Intermediate, will be moved to inputstream | ||
| 638 | */ | ||
| 639 | PVR_ERROR GetStreamTimes(PVR_STREAM_TIMES *times); | ||
| 640 | |||
| 641 | /*! | ||
| 641 | * Called by XBMC to assign the function pointers of this add-on to pClient. | 642 | * Called by XBMC to assign the function pointers of this add-on to pClient. |
| 642 | * @param ptr The struct to assign the function pointers to. | 643 | * @param ptr The struct to assign the function pointers to. |
| 643 | */ | 644 | */ |
| @@ -695,11 +696,10 @@ extern "C" | |||
| 695 | pClient->toAddon.SeekLiveStream = SeekLiveStream; | 696 | pClient->toAddon.SeekLiveStream = SeekLiveStream; |
| 696 | pClient->toAddon.PositionLiveStream = PositionLiveStream; | 697 | pClient->toAddon.PositionLiveStream = PositionLiveStream; |
| 697 | pClient->toAddon.LengthLiveStream = LengthLiveStream; | 698 | pClient->toAddon.LengthLiveStream = LengthLiveStream; |
| 698 | pClient->toAddon.SwitchChannel = SwitchChannel; | ||
| 699 | pClient->toAddon.SignalStatus = SignalStatus; | 699 | pClient->toAddon.SignalStatus = SignalStatus; |
| 700 | pClient->toAddon.GetDescrambleInfo = GetDescrambleInfo; | 700 | pClient->toAddon.GetDescrambleInfo = GetDescrambleInfo; |
| 701 | pClient->toAddon.GetLiveStreamURL = GetLiveStreamURL; | 701 | pClient->toAddon.GetChannelStreamProperties = GetChannelStreamProperties; |
| 702 | pClient->toAddon.GetChannelSwitchDelay = GetChannelSwitchDelay; | 702 | pClient->toAddon.GetRecordingStreamProperties = GetRecordingStreamProperties; |
| 703 | pClient->toAddon.CanPauseStream = CanPauseStream; | 703 | pClient->toAddon.CanPauseStream = CanPauseStream; |
| 704 | pClient->toAddon.PauseStream = PauseStream; | 704 | pClient->toAddon.PauseStream = PauseStream; |
| 705 | pClient->toAddon.CanSeekStream = CanSeekStream; | 705 | pClient->toAddon.CanSeekStream = CanSeekStream; |
| @@ -733,6 +733,6 @@ extern "C" | |||
| 733 | pClient->toAddon.OnSystemWake = OnSystemWake; | 733 | pClient->toAddon.OnSystemWake = OnSystemWake; |
| 734 | pClient->toAddon.OnPowerSavingActivated = OnPowerSavingActivated; | 734 | pClient->toAddon.OnPowerSavingActivated = OnPowerSavingActivated; |
| 735 | pClient->toAddon.OnPowerSavingDeactivated = OnPowerSavingDeactivated; | 735 | pClient->toAddon.OnPowerSavingDeactivated = OnPowerSavingDeactivated; |
| 736 | pClient->toAddon.GetStreamTimes = GetStreamTimes; | ||
| 736 | }; | 737 | }; |
| 737 | }; | 738 | }; |
| 738 | |||
