mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-09-30 22:14:55 -07:00
95f10ed733
## Link to GitHub Issue or related Pull Request, if one exists #0 ## Description of change MSE method of streaming video needs the dimensions up front. This new api delivers that. Also provides an easier way to determine which screens are available and a way to discover port number. ## Testing See pending changes in substream project
25 lines
499 B
C++
25 lines
499 B
C++
#pragma once
|
|
|
|
#include <optional>
|
|
|
|
#include "api/module.h"
|
|
#include "api/request.h"
|
|
|
|
namespace api::modules {
|
|
|
|
extern std::optional<uint32_t> CAPTURE_QUALITY;
|
|
extern std::optional<uint32_t> CAPTURE_DIVIDE;
|
|
|
|
class Capture : public Module {
|
|
public:
|
|
Capture();
|
|
|
|
private:
|
|
|
|
// function definitions
|
|
void get_screens(Request &req, Response &res);
|
|
void get_jpg(Request &req, Response &res);
|
|
void get_streams(Request &req, Response &res);
|
|
};
|
|
}
|