2 * Copyright (C) 2023 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
12 #include "ServiceBroker.h"
13 #include "pvr/PVRManager.h"
14 #include "pvr/guilib/PVRGUIActionsPlayback.h"
15 #include "video/guilib/VideoPlayActionProcessor.h"
19 class CGUIPVRRecordingsPlayActionProcessor
: public VIDEO::GUILIB::CVideoPlayActionProcessorBase
22 explicit CGUIPVRRecordingsPlayActionProcessor(const std::shared_ptr
<CFileItem
>& item
)
23 : CVideoPlayActionProcessorBase(item
)
28 bool OnResumeSelected() override
30 m_item
->SetStartOffset(STARTOFFSET_RESUME
);
35 bool OnPlaySelected() override
44 CServiceBroker::GetPVRManager().Get
<PVR::GUI::Playback
>().PlayRecording(
45 *m_item
, false /* no resume check */);