You.i Engine
YiVideoPlayerStateManager.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. 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 
9 #include <mutex>
10 
45 {
46 public:
49 
92 
97 
98 private:
99  void SetMediaState(CYIAbstractVideoPlayer::MediaState playerState);
100  void SetPlaybackState(CYIAbstractVideoPlayer::PlaybackState readyState);
101 
102  void StateErrorOccured(const CYIString &errorMessage);
103 
104  CYIString PlayerStateToString(CYIAbstractVideoPlayer::PlayerState playerState) const;
105 
107 
108  CYIAbstractVideoPlayer *m_pPlayer;
109  mutable std::mutex m_stateMutex;
110 };
111 
116 #endif //_YI_VIDEO_PLAYER_STATE_MANAGER_H
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
A class which manages the various media and playback states of the CYIAbstractVideoPlayer.
Definition: YiVideoPlayerStateManager.h:44
An abstract video player that provides a basic interface that all subclasses must implement...
Definition: YiAbstractVideoPlayer.h:56
Definition: YiAbstractVideoPlayer.h:99
PlaybackState
Definition: YiAbstractVideoPlayer.h:89
CYIVideoPlayerStateManager(CYIAbstractVideoPlayer *pPlayer)
Definition: YiSignalHandler.h:175
CYIAbstractVideoPlayer::PlayerState GetPlayerState() const
MediaState
Definition: YiAbstractVideoPlayer.h:76
virtual ~CYIVideoPlayerStateManager()