PVR recording methods
To transfer available recordings of the PVR backend and to allow possible playback.
Recordings parts in interface:
Copy this to your project and extend with your parts or leave functions complete away where not used or supported.
Header parts:
Source parts:
Modules | |
Group header include | |
Group source include | |
|
inlinevirtual |
To get amount of recording present on backend.
[in] | deleted | if set return deleted recording (called if supportsRecordingsUndelete set to true) |
[out] | amount | The total amount of recordings on the backend |
|
inlinevirtual |
Request the list of all recordings from the backend, if supported.
Recording entries are added to Kodi by calling TransferRecordingEntry() on the callback.
[in] | deleted | if set return deleted recording (called if supportsRecordingsUndelete set to true) |
[out] | results | List of available recordings with class PVRRecording becomes transferred with class PVRRecordingsResultSet and given to Kodi |
The following table contains values that can be set with class PVRRecording :
Name | Type | Set call | Get call | Usage |
---|---|---|---|---|
Recording id | std::string | SetRecordingId | GetRecordingId | required to set |
Title | std::string | SetTitle | GetTitle | required to set |
Episode name | std::string | SetEpisodeName | GetEpisodeName | optional |
Series number | int | SetSeriesNumber | GetSeriesNumber | optional |
Episode number | int | SetEpisodeNumber | GetEpisodeNumber | optional |
Year | int | SetYear | GetYear | optional |
Directory | std::string | SetDirectory | GetDirectory | optional |
Plot outline | std::string | SetPlotOutline | GetPlotOutline | optional |
Plot | std::string | SetPlot | GetPlot | optional |
Genre description | std::string | SetGenreDescription | GetGenreDescription | optional |
Channel name | std::string | SetChannelName | GetChannelName | optional |
Icon path | std::string | SetIconPath | GetIconPath | optional |
Thumbnail path | std::string | SetThumbnailPath | GetThumbnailPath | optional |
Fanart path | std::string | SetFanartPath | GetFanartPath | optional |
Recording time | time_t | SetRecordingTime | GetRecordingTime | optional |
Duration | int | SetDuration | GetDuration | optional |
Priority | int | SetPriority | GetPriority | optional |
Lifetime | int | SetLifetime | GetLifetime | optional |
Genre type | int | SetGenreType | GetGenreType | optional |
Genre sub type | int | SetGenreSubType | GetGenreSubType | optional |
Play count | int | SetPlayCount | GetPlayCount | optional |
Last played position | int | SetLastPlayedPosition | GetLastPlayedPosition | optional |
Is deleted | bool | SetIsDeleted | GetIsDeleted | optional |
EPG event id | unsigned int | SetEPGEventId | GetEPGEventId | optional |
Channel unique id | int | SetChannelUid | GetChannelUid | optional |
Channel type | PVR_RECORDING_CHANNEL_TYPE | SetChannelType | GetChannelType | optional |
First aired | std::string | SetFirstAired | GetFirstAired | optional |
Flags | std::string | SetFlags | GetFlags | optional |
Size in bytes | std::string | SetSizeInBytes | GetSizeInBytes | optional |
Client provider unique identifier | int | SetClientProviderUid | GetClientProviderUid | optional |
Provider name | std::string | SetProviderlName | GetProviderName | optional |
Example:
|
inlinevirtual |
Delete a recording on the backend.
[in] | recording | The class PVRRecording to delete. |
|
inlinevirtual |
Undelete a recording on the backend.
[in] | recording | The class PVRRecording to undelete. |
|
inlinevirtual |
Delete all recordings permanent which in the deleted folder on the backend.
|
inlinevirtual |
Rename a recording on the backend.
[in] | recording | The class PVRRecording to rename, containing the new name. |
|
inlinevirtual |
Set the lifetime of a recording on the backend.
[in] | recording | The class PVRRecording to change the lifetime for. recording.iLifetime contains the new lieftime value. |
|
inlinevirtual |
Set the play count of a recording on the backend.
[in] | recording | The class PVRRecording to change the play count. |
[in] | count | Play count. |
|
inlinevirtual |
Set the last watched position of a recording on the backend.
[in] | recording | The class PVRRecording. |
[in] | lastplayedposition | The last watched position in seconds |
|
inlinevirtual |
Retrieve the last watched position of a recording on the backend.
[in] | recording | The class PVRRecording. |
[out] | position | The last watched position in seconds |
|
inlinevirtual |
Retrieve the edit decision list (EDL) of a recording on the backend.
[in] | recording | The class PVRRecording. |
[out] | edl | The function has to write the EDL into this array. |
The following table contains values that can be set with class PVREDLEntry :
Name | Type | Set call | Get call | Usage |
---|---|---|---|---|
Start time | int64_t | SetStart | GetStart | required to set |
End time | int64_t | SetEnd | GetEnd | required to set |
Type | PVR_EDL_TYPE | SetType | GetType | required to set |
|
inlinevirtual |
Retrieve the size of a recording on the backend.
[in] | recording | The recording to get the size in bytes for. |
[out] | size | The size in bytes of the recording |
|
inlinevirtual |
Get the stream properties for a recording from the backend.
[in] | recording | The class PVRRecording to get the stream properties for. |
[out] | properties | The properties required to play the stream. |
"inputstream.adaptive.manifest_update_parameter"
.Example:
|
inlinevirtual |
Call one of the recording related menu hooks (if supported).
Supported class PVRMenuhook instances have to be added in constructor()
, by calling AddMenuHook() on the callback.
[in] | menuhook | The hook to call. |
[in] | item | The selected recording item for which the hook was called. |
The following table contains values that can be set with class PVRMenuhook :
Name | Type | Set call | Get call | Usage |
---|---|---|---|---|
This hook's identifier | unsigned int | SetHookId | GetHookId | required to set |
Localized string Identifier | unsigned int | SetLocalizedStringId | GetLocalizedStringId | required to set |
Category of menu hook | PVR_MENUHOOK_CAT | SetCategory | GetCategory | required to set |
|
inline |
Callback to Kodi Function
Display a notification in Kodi that a recording started or stopped on the server.
[in] | recordingName | The name of the recording to display |
[in] | fileName | The filename of the recording |
[in] | on | True when recording started, false when it stopped |
|
inline |
Callback to Kodi Function
Request Kodi to update it's list of recordings.