You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
601 B
31 lines
601 B
#ifndef SCREEN_RECORDER_OBS_MANAGER_HPP
|
|
#define SCREEN_RECORDER_OBS_MANAGER_HPP
|
|
|
|
#include <list>
|
|
#include <glibmm/ustring.h>
|
|
#include <obs/obs.h>
|
|
|
|
using namespace Glib;
|
|
|
|
class OBSManager
|
|
{
|
|
public:
|
|
OBSManager();
|
|
virtual ~OBSManager();
|
|
ustring GetVersion();
|
|
void Initialize();
|
|
void Cleanup();
|
|
ustring GetPluginDir();
|
|
|
|
private:
|
|
ustring pluginDir = "/usr/lib/x86_64-linux-gnu/obs-plugins/";
|
|
std::list<ustring> plugins;
|
|
|
|
bool isInitialized = false;
|
|
obs_display_t *display = nullptr;
|
|
|
|
void loadPlugin(ustring name);
|
|
void loadPlugins();
|
|
};
|
|
|
|
#endif
|