39 virtual bool setup(SDL_Renderer* renderer,
const std::string& path,
int width,
int height) = 0;
Interface for a video player.
Definition ivideo_player.h:19
virtual void update()=0
Updates the video state.
virtual ~IVideoPlayer()=default
Destructor.
virtual void stop()=0
Stops the video playback.
virtual void play()=0
Starts video playback.
virtual void setVolume(float volume)=0
Sets the volume for the video's audio track.
virtual bool isPlaying() const =0
Checks if the video is currently playing.
virtual void setMute(bool mute)=0
Sets the mute state for the video's audio track.
virtual SDL_Texture * getTexture() const =0
Retrieves the current video texture.
virtual bool setup(SDL_Renderer *renderer, const std::string &path, int width, int height)=0
Sets up the video player.