A dummy implementation of the IVideoPlayer interface for testing and debugging. More...
#include <dummy_player.h>
Public Member Functions | |
DummyVideoPlayer () | |
Constructor for DummyVideoPlayer. Initializes the playing state to false. | |
~DummyVideoPlayer () override | |
Destructor. Logs the destruction of the dummy player. | |
bool | setup (SDL_Renderer *renderer, const std::string &path, int width, int height) override |
DUMMY: Sets up the video player. Logs the setup parameters and always returns true. | |
void | play () override |
DUMMY: Starts video playback. Sets m_isPlaying to true and logs the action. | |
void | stop () override |
DUMMY: Stops the video playback. Sets m_isPlaying to false and logs the action. | |
void | update () override |
DUMMY: Updates the video state. Logs an update message if the video is playing. | |
SDL_Texture * | getTexture () const override |
DUMMY: Retrieves the current video texture. Always returns nullptr as no actual texture is created. | |
bool | isPlaying () const override |
DUMMY: Checks if the video is currently playing. Returns the internal m_isPlaying state. | |
void | setVolume (float volume) override |
DUMMY: Sets the volume for the video's audio track. Logs the desired volume. | |
void | setMute (bool mute) override |
DUMMY: Sets the mute state for the video's audio track. Logs the mute state. | |
![]() | |
virtual | ~IVideoPlayer ()=default |
Destructor. | |
A dummy implementation of the IVideoPlayer interface for testing and debugging.
This class provides a basic implementation of the IVideoPlayer interface, primarily printing log messages to the console to indicate method calls and simulate state changes. It does not perform actual video rendering or audio playback.
|
inlineoverridevirtual |
DUMMY: Retrieves the current video texture. Always returns nullptr as no actual texture is created.
Implements IVideoPlayer.
|
inlineoverridevirtual |
DUMMY: Checks if the video is currently playing. Returns the internal m_isPlaying state.
Implements IVideoPlayer.
|
inlineoverridevirtual |
DUMMY: Starts video playback. Sets m_isPlaying to true and logs the action.
Implements IVideoPlayer.
|
inlineoverridevirtual |
DUMMY: Sets the mute state for the video's audio track. Logs the mute state.
mute | True to mute, false to unmute. |
Implements IVideoPlayer.
|
inlineoverridevirtual |
DUMMY: Sets up the video player. Logs the setup parameters and always returns true.
renderer | Ignored. |
path | Logs the path. |
width | Logs the width. |
height | Logs the height. |
Implements IVideoPlayer.
|
inlineoverridevirtual |
DUMMY: Sets the volume for the video's audio track. Logs the desired volume.
volume | The desired volume. |
Implements IVideoPlayer.
|
inlineoverridevirtual |
DUMMY: Stops the video playback. Sets m_isPlaying to false and logs the action.
Implements IVideoPlayer.
|
inlineoverridevirtual |
DUMMY: Updates the video state. Logs an update message if the video is playing.
Implements IVideoPlayer.