#endif
public:
virtual RESULT startTimeshift()=0;
- virtual RESULT stopTimeshift()=0;
+ virtual RESULT stopTimeshift(bool switchToLive=true)=0;
virtual int isTimeshiftActive()=0;
/* this essentially seeks to the relative end of the timeshift buffer */
return 0;
}
-RESULT eDVBServicePlay::stopTimeshift()
+RESULT eDVBServicePlay::stopTimeshift(bool switchToLive=true)
{
if (!m_timeshift_enabled)
return -1;
- switchToLive();
+ if (switchToLive)
+ switchToLive();
m_timeshift_enabled = 0;
// iTimeshiftService
RESULT startTimeshift();
- RESULT stopTimeshift();
+ RESULT stopTimeshift(bool switchToLive=true);
int isTimeshiftActive();
RESULT activateTimeshift();