- Tutorials:
timeShift Provides API to the TimeShift subsystem.
Operation on TimeShift states such as timeShift.EnterTimeShift
, timeShift.ExitTimeShift
, etc.
takes effect only if playback was started with solution "extTimeShift
".
Methods
(static) SetTimeShiftFolder(folderPath)
Set path to folder where TimeShift files will be located.
Parameters:
Name | Type | Description |
---|---|---|
folderPath |
string | path to timeShift working folder, entry folder must have name "records" in path |
(static) SetMaxDuration(duration)
Set maximum size of TimeShift window in seconds.
Parameters:
Name | Type | Description |
---|---|---|
duration |
number | window duration in seconds |
(static) EnterTimeShift()
Enter TimeShift mode.
In this mode trick mode commands like pause, resume, seek is allowed.
(static) ExitTimeShift()
Exit from TimeShift mode and return to real-time mode.
All temporary files will be removed.
(static) ExitTimeShiftAndSave(path, name)
Exit from TimeShift mode and save current TimeShift buffer via PVR.
Parameters:
Name | Type | Description |
---|---|---|
path |
string | path to location where recording will be saved |
name |
string | name of the recording |
(static) ExitTimeShiftAndSaveDuration(path, name, duration)
Exit from TimeShift, stop playback and save TimeShift buffer via PVR with possibility to continue recording.
Parameters:
Name | Type | Description |
---|---|---|
path |
string | path to location where recording will be saved |
name |
string | name of the recording |
duration |
number | in second for how log PVR should continue to save stream into specified recording task |
(static) SetSlidingMode(onOff)
Set sliding TimeShift mode which defines what happens after reaching the left boundary of TimeShift buffer in paused mode.
By default sliding mode is disabled on start of each playback.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
onOff |
boolean | possible values:
|