#include <Bookmark.h>
◆ EType
| Enumerator |
|---|
| STANDARD | |
| RESUME | |
| EPISODE | |
◆ CBookmark()
◆ AddToPositions()
| void CBookmark::AddToPositions |
( |
const CBookmark & | bookmark, |
|
|
std::vector< std::chrono::milliseconds > & | positions ) |
|
static |
Add a bookmark to the provided list.
- Parameters
-
| [in] | bookmark | the bookmark |
| [in] | positions | list of bookmark start timestamps |
- Todo
- use a std::set instead?
◆ BookmarksToPositions()
| std::vector< std::chrono::milliseconds > CBookmark::BookmarksToPositions |
( |
const VECBOOKMARKS & | bookmarks | ) |
|
|
static |
Create a list of the start timestamps of the standard bookmarks from the provided list.
- Parameters
-
| [in] | bookmarks | list of bookmarks |
- Returns
- list of bookmarks' start timestamp
◆ GetBookmarksForFile()
| bool CBookmark::GetBookmarksForFile |
( |
const std::string & | filePath, |
|
|
VECBOOKMARKS & | bookmarks, |
|
|
std::vector< EType > | types ) |
|
static |
Retrieve bookmarks for the file.
- Parameters
-
| [in] | filePath | file |
| [in,out] | bookmarks | list of bookmarks |
| [in] | types | types of bookmark to retrieve |
- Returns
- true for success, false otherwise
◆ HasSavedPlayerState()
| bool CBookmark::HasSavedPlayerState |
( |
| ) |
const |
returns true if this bookmark has a stored serialized player state
- Returns
- true if playerState is not empty.
◆ IsPartWay()
| bool CBookmark::IsPartWay |
( |
| ) |
const |
returns true if this bookmark is part way through the video file
- Returns
- true if both totalTimeInSeconds and timeInSeconds are positive.
◆ IsSet()
| bool CBookmark::IsSet |
( |
| ) |
const |
returns true if this bookmark has been set.
- Returns
- true if totalTimeInSeconds is positive.
◆ Reset()
| void CBookmark::Reset |
( |
| ) |
|
◆ episodeNumber
| long CBookmark::episodeNumber |
◆ partNumber
| long CBookmark::partNumber |
◆ player
| std::string CBookmark::player |
◆ playerState
| std::string CBookmark::playerState |
◆ seasonNumber
| long CBookmark::seasonNumber |
◆ thumbNailImage
| std::string CBookmark::thumbNailImage |
◆ timeInSeconds
| double CBookmark::timeInSeconds |
◆ totalTimeInSeconds
| double CBookmark::totalTimeInSeconds |
◆ type
The documentation for this class was generated from the following files: