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

Player controller class to handle user actions. More...

#include <PlayerController.h>

Inheritance diagram for CPlayerController:
ISliderCallback KODI::ACTION::IActionListener

Public Member Functions

bool OnAction (const CAction &action) override
 Perform a player control action if appropriate.
 
void OnSliderChange (void *data, CGUISliderControl *slider) override
 Callback from the slider dialog.
 
- Public Member Functions inherited from ISliderCallback
virtual ~ISliderCallback ()=default
 
- Public Member Functions inherited from KODI::ACTION::IActionListener
virtual ~IActionListener ()=default
 

Static Public Member Functions

static CPlayerControllerGetInstance ()
 

Protected Member Functions

 CPlayerController ()
 
 CPlayerController (const CPlayerController &)=delete
 
CPlayerControlleroperator= (CPlayerController const &)=delete
 
 ~CPlayerController () override
 

Detailed Description

Player controller class to handle user actions.

Handles actions that are normally suited to fullscreen playback, such as altering subtitles and audio tracks, changing aspect ratio, subtitle placement, and placement of the video on screen.

Constructor & Destructor Documentation

◆ CPlayerController() [1/2]

CPlayerController::CPlayerController ( )
protected

◆ CPlayerController() [2/2]

CPlayerController::CPlayerController ( const CPlayerController & )
protecteddelete

◆ ~CPlayerController()

CPlayerController::~CPlayerController ( )
overrideprotecteddefault

Member Function Documentation

◆ GetInstance()

CPlayerController & CPlayerController::GetInstance ( )
static

◆ OnAction()

bool CPlayerController::OnAction ( const CAction & action)
overridevirtual

Perform a player control action if appropriate.

Parameters
actionthe action to perform.
Returns
true if the action is considered handled, false if it should be handled elsewhere.

Implements KODI::ACTION::IActionListener.

◆ OnSliderChange()

void CPlayerController::OnSliderChange ( void * data,
CGUISliderControl * slider )
overridevirtual

Callback from the slider dialog.

See also
CGUIDialogSlider

Implements ISliderCallback.

◆ operator=()

CPlayerController & CPlayerController::operator= ( CPlayerController const & )
protecteddelete

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