mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
df9d9d8673
## Link to GitHub Issue, if one exists n/a ## Description of change Allow the server to override client's quality options for screen mirroring. On Windows / Android versions (flutter-based) clients, this is already in the options of those apps. However, the iOS version lacks the quality options. ## Testing Tested with iOS and Windows clients.
24 lines
444 B
C++
24 lines
444 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);
|
|
};
|
|
}
|