Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
CPlayerUtils Class Reference

#include <PlayerUtils.h>

Static Public Member Functions

static bool IsItemPlayable (const CFileItem &item)
 
static void AdvanceTempoStep (const std::shared_ptr< CApplicationPlayer > &appPlayer, TempoStepChange change)
 
static std::vector< std::string > GetPlayersForItem (const CFileItem &item)
 Get the players available for the given file item.
 
static bool HasItemMultiplePlayers (const CFileItem &item)
 Check whether multiple players are available for the given item.
 

Member Function Documentation

◆ AdvanceTempoStep()

void CPlayerUtils::AdvanceTempoStep ( const std::shared_ptr< CApplicationPlayer > & appPlayer,
TempoStepChange change )
static

◆ GetPlayersForItem()

std::vector< std::string > CPlayerUtils::GetPlayersForItem ( const CFileItem & item)
static

Get the players available for the given file item.

Parameters
itemThe item
Returns
the players
Todo
CPlayerCoreFactory and classes called from there do not handle dyn path correctly.

◆ HasItemMultiplePlayers()

bool CPlayerUtils::HasItemMultiplePlayers ( const CFileItem & item)
static

Check whether multiple players are available for the given item.

Parameters
itemThe ite.
Returns
True if multiple players are available, false otherwise

◆ IsItemPlayable()

bool CPlayerUtils::IsItemPlayable ( const CFileItem & item)
static
Todo
add more types on demand.

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