ASAPCabinetFE
 
Loading...
Searching...
No Matches
video_player_factory.h
Go to the documentation of this file.
1
10#ifndef VIDEO_PLAYER_FACTORY_H
11#define VIDEO_PLAYER_FACTORY_H
12
13#include "render/ivideo_player.h"
14#include <SDL2/SDL.h>
15#include <memory>
16#include <string>
17
22class IConfigService;
23
33public:
48 static std::unique_ptr<IVideoPlayer> createVideoPlayer(SDL_Renderer* renderer,
49 const std::string& path,
50 int width, int height,
51 IConfigService* configService);
52};
53
54#endif // VIDEO_PLAYER_FACTORY_H
Interface for configuration services (forward declaration).
Definition iconfig_service.h:30
Factory class for creating video player instances.
Definition video_player_factory.h:32
static std::unique_ptr< IVideoPlayer > createVideoPlayer(SDL_Renderer *renderer, const std::string &path, int width, int height, IConfigService *configService)
Creates a video player instance based on the configured backend.
Definition video_player_factory.cpp:34