You.i Engine
YiVideoPlayerStateManager.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. All rights reserved.
2 #ifndef _YI_VIDEO_PLAYER_STATE_MANAGER_H
3 #define _YI_VIDEO_PLAYER_STATE_MANAGER_H
4 
6 #include "signal/YiSignal.h"
7 #include "utility/YiString.h"
8 
43 {
44 public:
47 
90 
95 
96 private:
97  void SetMediaState(CYIAbstractVideoPlayer::MEDIA_STATE ePlayerState);
98  void SetPlaybackState(CYIAbstractVideoPlayer::PLAYBACK_STATE eReadyState);
99 
100  void StateErrorOccured(const CYIString &errorMessage);
101 
102  CYIString PlayerStateToString(CYIAbstractVideoPlayer::PlayerState ePlayerState) const;
103 
105 
106  CYIAbstractVideoPlayer *m_pPlayer;
107  mutable CYIMutex m_stateMutex;
108 };
109 
114 #endif //_YI_VIDEO_PLAYER_STATE_MANAGER_H
PLAYBACK_STATE
Definition: YiAbstractVideoPlayer.h:78
MEDIA_STATE
Definition: YiAbstractVideoPlayer.h:65
Definition: YiMutex.h:110
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:35
CYIAbstractVideoPlayer::PlayerState GetPlayerState() const
A class which manages the various media and playback states of the CYIAbstractVideoPlayer.
Definition: YiVideoPlayerStateManager.h:42
An abstract video player that provides a basic interface that all subclasses must implement...
Definition: YiAbstractVideoPlayer.h:55
Definition: YiAbstractVideoPlayer.h:88
CYIVideoPlayerStateManager(CYIAbstractVideoPlayer *pPlayer)
Definition: YiSignalHandler.h:174
virtual ~CYIVideoPlayerStateManager()