#include "videoService.h" #include #include #include #include #include class MediaService { private: ImageService *imageService = nullptr; VideoService *videoService = nullptr; MediaType type; std::shared_ptr texture; std::shared_ptr sprite; std::shared_ptr window; int client_width = 0; int client_height = 0; public: MediaService(std::shared_ptr window, const std::string &filename, int width, int height); ~MediaService() { delete imageService; delete videoService; } std::shared_ptr GetSprite() { return sprite; } void Play(); };