Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CApplicationPlay Class Reference

#include <ApplicationPlay.h>

Inheritance diagram for CApplicationPlay:
IApplicationComponent

Static Public Member Functions

static bool ResolvePath (CFileItem &item)
 Resolves a vfs dynpath to an actual file path.
 
static bool ResolveStack (CFileItem &item, std::string &player, const std::shared_ptr< CApplicationStackHelper > &stackHelper, bool &bRestart)
 Extracts a specific playable part from a stack://.
 
static void GetOptionsAndUpdateItem (CFileItem &item, CPlayerOptions &options, const std::shared_ptr< CApplicationStackHelper > &stackHelper, bool bRestart)
 Determines if there is a resume point for the item and updates the player options accordingly Also resolves a removable media path if needed.
 
static bool GetPlaylistIfDisc (CFileItem &item, CPlayerOptions &options, const std::string &player, const std::unique_ptr< CServiceManager > &serviceManager)
 If the item is a bluray that has not been played before and simple menu is enabled, then prompt user to select playlist.
 
static void DetermineFullScreen (const CFileItem &item, CPlayerOptions &options, const std::shared_ptr< CApplicationStackHelper > &stackHelper)
 Determine if playback should go fullscreen based on media type and settings.
 

Additional Inherited Members

- Public Member Functions inherited from IApplicationComponent
virtual ~IApplicationComponent ()=default
 

Member Function Documentation

◆ DetermineFullScreen()

void CApplicationPlay::DetermineFullScreen ( const CFileItem & item,
CPlayerOptions & options,
const std::shared_ptr< CApplicationStackHelper > & stackHelper )
static

Determine if playback should go fullscreen based on media type and settings.

Parameters
itemThe CFileItem
optionsThe player options to update with the outcome (options.fullscreen)
stackHelperThe initialised application stack helper

◆ GetOptionsAndUpdateItem()

void CApplicationPlay::GetOptionsAndUpdateItem ( CFileItem & item,
CPlayerOptions & options,
const std::shared_ptr< CApplicationStackHelper > & stackHelper,
bool bRestart )
static

Determines if there is a resume point for the item and updates the player options accordingly Also resolves a removable media path if needed.

Parameters
itemThe CFileItem
optionsThe player options to update
stackHelperThe initialised application stack helper
bRestartSet to true if playback should restart from beginning

◆ GetPlaylistIfDisc()

bool CApplicationPlay::GetPlaylistIfDisc ( CFileItem & item,
CPlayerOptions & options,
const std::string & player,
const std::unique_ptr< CServiceManager > & serviceManager )
static

If the item is a bluray that has not been played before and simple menu is enabled, then prompt user to select playlist.

Parameters
itemThe CFileItem for disc
optionsThe player options to update
playerThe player that to be used for playback (reset if stack resolved)
serviceManagerThe initialised service manager
Returns
false if user cancels playlist selection, true otherwise

◆ ResolvePath()

bool CApplicationPlay::ResolvePath ( CFileItem & item)
static

Resolves a vfs dynpath to an actual file path.

Parameters
itemThe CFileItem to resolve
Returns
true if resolved successfully, false otherwise

◆ ResolveStack()

bool CApplicationPlay::ResolveStack ( CFileItem & item,
std::string & player,
const std::shared_ptr< CApplicationStackHelper > & stackHelper,
bool & bRestart )
static

Extracts a specific playable part from a stack://.

Parameters
itemThe CFileItem for the stack
playerThe player that to be used for playback (reset if stack resolved)
stackHelperThe initialised application stack helper
bRestartSet to true if playback should restart from beginning
Returns
true if resolved successfully, false otherwise

The documentation for this class was generated from the following files: