Helper class to gather all playback details for a file item. Usage: Construct with stack helper → call GatherPlaybackDetails() → retrieve results via getters.
More...
#include <ApplicationPlay.h>
Helper class to gather all playback details for a file item. Usage: Construct with stack helper → call GatherPlaybackDetails() → retrieve results via getters.
◆ GatherPlaybackDetailsResult
| Enumerator |
|---|
| RESULT_SUCCESS | |
| RESULT_ERROR | |
| RESULT_NO_PLAYLIST_SELECTED | |
◆ CApplicationPlay()
◆ GatherPlaybackDetails()
Gathers all details needed to play the given item. This includes resolving the item to get the item that actually shall be played, determining the player to be used and the player options.
- Parameters
-
| item | The file item to play |
| player | The default player to be used for playback |
| restart | A flag indicating whether file shall be played from the beginning, ignoring possibly existing resume points. |
- Returns
- the result
◆ GetPlayerOptions()
Get the player options for playback of the resolved item.
- Returns
- the options.
◆ GetResolvedItem()
| const CFileItem & CApplicationPlay::GetResolvedItem |
( |
| ) |
const |
|
inline |
Get the resolved item, that is to be used for playback.
- Returns
- the item.
◆ GetResolvedPlayer()
| const std::string & CApplicationPlay::GetResolvedPlayer |
( |
| ) |
const |
|
inline |
Get the player for playback of the resolved item.
- Returns
- the player.
The documentation for this class was generated from the following files: