You.i Engine
CYIAbstractVideoPlayer::MediaPlaybackControlsInterface::ControlsHandler Class Reference

Detailed Description

An interface which allows applications to intercept and handle media playback controls.

In order to handle media playback controls, applications must extend this class, override some or all of its functions, and call SetControlsHandler.

See also
SetControlsHandler

#include <player/YiAbstractVideoPlayer.h>

Public Member Functions

virtual ~ControlsHandler ()=default
 
virtual void OnPlay (CYIAbstractVideoPlayer *pPlayer)
 
virtual void OnPause (CYIAbstractVideoPlayer *pPlayer)
 
virtual void OnSeek (CYIAbstractVideoPlayer *pPlayer, uint64_t positionMs)
 
virtual void OnStop (CYIAbstractVideoPlayer *pPlayer)
 
virtual void OnClosedCaptionsEnabled (CYIAbstractVideoPlayer *pPlayer, bool enabled)
 

Constructor & Destructor Documentation

◆ ~ControlsHandler()

virtual CYIAbstractVideoPlayer::MediaPlaybackControlsInterface::ControlsHandler::~ControlsHandler ( )
virtualdefault

Member Function Documentation

◆ OnClosedCaptionsEnabled()

virtual void CYIAbstractVideoPlayer::MediaPlaybackControlsInterface::ControlsHandler::OnClosedCaptionsEnabled ( CYIAbstractVideoPlayer pPlayer,
bool  enabled 
)
virtual

Receives a captioning enabled operation.

◆ OnPause()

virtual void CYIAbstractVideoPlayer::MediaPlaybackControlsInterface::ControlsHandler::OnPause ( CYIAbstractVideoPlayer pPlayer)
virtual

Receives a pause operation.

◆ OnPlay()

virtual void CYIAbstractVideoPlayer::MediaPlaybackControlsInterface::ControlsHandler::OnPlay ( CYIAbstractVideoPlayer pPlayer)
virtual

Receives a play operation.

◆ OnSeek()

virtual void CYIAbstractVideoPlayer::MediaPlaybackControlsInterface::ControlsHandler::OnSeek ( CYIAbstractVideoPlayer pPlayer,
uint64_t  positionMs 
)
virtual

Receives a seek operation.

◆ OnStop()

virtual void CYIAbstractVideoPlayer::MediaPlaybackControlsInterface::ControlsHandler::OnStop ( CYIAbstractVideoPlayer pPlayer)
virtual

Receives a stop operation.


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