kodi
VideoUtils.h
1 /*
2  * Copyright (C) 2022 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include <string>
12 
13 class CFileItem;
14 
15 namespace VIDEO_UTILS
16 {
24 std::string GetOpticalMediaPath(const CFileItem& item);
25 
30 bool IsAutoPlayNextItem(const CFileItem& item);
31 
36 bool IsAutoPlayNextItem(const std::string& content);
37 
39 {
40  bool isResumable{false}; // the playback of the item can be resumed
41  int64_t startOffset{0}; // a start offset
42  int partNumber{0}; // a part number
43 };
44 
50 ResumeInformation GetItemResumeInformation(const CFileItem& item);
51 
58 ResumeInformation GetStackPartResumeInformation(const CFileItem& item, unsigned int partNumber);
59 
60 } // namespace VIDEO_UTILS
Definition: VideoGUIUtils.cpp:370
Definition: VideoUtils.h:38
Represents a file on a share.
Definition: FileItem.h:102