kodi
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
CPlayerController Class Reference

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

#include <PlayerController.h>

Inheritance diagram for CPlayerController:
Inheritance graph
[legend]
Collaboration diagram for CPlayerController:
Collaboration graph
[legend]

Public Member Functions

bool OnAction (const CAction &action) override
 Perform a player control action if appropriate. More...
 
void OnSliderChange (void *data, CGUISliderControl *slider) override
 Callback from the slider dialog. More...
 

Static Public Member Functions

static CPlayerController & GetInstance ()
 

Protected Member Functions

 CPlayerController (const CPlayerController &)=delete
 
CPlayerController & operator= (CPlayerController const &)=delete
 

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.

Member Function Documentation

◆ 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.


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