Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update PVR API to v1.5.0 (pause/seek support for LiveTV streams)

  • Loading branch information...
commit a13c54582e78381829aa503f57d47f24804e347b 1 parent 9e7a5ba
@margro margro authored
Showing with 27 additions and 2 deletions.
  1. +22 −0 xbmc/xbmc_pvr_dll.h
  2. +5 −2 xbmc/xbmc_pvr_types.h
View
22 xbmc/xbmc_pvr_dll.h
@@ -513,6 +513,25 @@ extern "C"
unsigned int GetChannelSwitchDelay(void);
/*!
+ * Check if the backend support pausing the currently playing stream
+ * This will enable/disable the pause button in XBMC based on the return value
+ * @return false if the PVR addon/backend does not support pausing, true if possible
+ */
+ bool CanPauseStream();
+
+ /*!
+ * Check if the backend supports seeking for the currently playing stream
+ * This will enable/disable the rewind/forward buttons in XBMC based on the return value
+ * @return false if the PVR addon/backend does not support seeking, true if possible
+ */
+ bool CanSeekStream();
+
+ /*!
+ * @brief Notify the pvr addon that XBMC (un)paused the currently playing stream
+ */
+ void PauseStream(bool bPaused);
+
+ /*!
* Called by XBMC to assign the function pointers of this add-on to pClient.
* @param pClient The struct to assign the function pointers to.
*/
@@ -568,6 +587,9 @@ extern "C"
pClient->SignalStatus = SignalStatus;
pClient->GetLiveStreamURL = GetLiveStreamURL;
pClient->GetChannelSwitchDelay = GetChannelSwitchDelay;
+ pClient->CanPauseStream = CanPauseStream;
+ pClient->PauseStream = PauseStream;
+ pClient->CanSeekStream = CanSeekStream;
pClient->OpenRecordedStream = OpenRecordedStream;
pClient->CloseRecordedStream = CloseRecordedStream;
View
7 xbmc/xbmc_pvr_types.h
@@ -72,10 +72,10 @@ struct DemuxPacket;
#define PVR_STREAM_MAX_STREAMS 20
/* current PVR API version */
-#define XBMC_PVR_API_VERSION "1.4.0"
+#define XBMC_PVR_API_VERSION "1.5.0"
/* min. PVR API version */
-#define XBMC_PVR_MIN_API_VERSION "1.4.0"
+#define XBMC_PVR_MIN_API_VERSION "1.5.0"
#ifdef __cplusplus
extern "C" {
@@ -329,6 +329,9 @@ extern "C" {
void (__cdecl* DemuxFlush)(void);
DemuxPacket* (__cdecl* DemuxRead)(void);
unsigned int (__cdecl* GetChannelSwitchDelay)(void);
+ bool (__cdecl* CanPauseStream)(void);
+ void (__cdecl* PauseStream)(bool);
+ bool (__cdecl* CanSeekStream)(void);
} PVRClient;
#ifdef __cplusplus
Please sign in to comment.
Something went wrong with that request. Please try again.